/*
Theme Name: Les Merveilles de Barbara
Theme URI: https://createur-de-site-internet-pas-cher.com/
Author: Les Merveilles de Barbara
Description: Thème pour créateur de sites internet : accueil avec carrousel de réalisations et page Tarifs.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: merveilles-barbara
*/

:root {
  --prune: #3b1d4a;
  --prune-fonce: #24102f;
  --or: #d9a441;
  --or-clair: #f3d58e;
  --creme: #fbf6ee;
  --blanc: #ffffff;
  --encre: #2a2230;
  --gris: #6f6577;
  --trait: #e8dfd2;
  --rayon: 18px;
  --ombre: 0 14px 40px rgba(59, 29, 74, .14);
  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--prune); }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; color: var(--prune-fonce); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.conteneur { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.sur-titre { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #a8761a; margin-bottom: 14px; }
.entete-section { max-width: 660px; margin-bottom: 40px; }
.entete-section.centre { margin-inline: auto; text-align: center; }
.entete-section p { color: var(--gris); }
.screen-reader-text { position: absolute; left: -9999px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--texte); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton-or { background: var(--or); color: var(--prune-fonce); box-shadow: 0 8px 22px rgba(217, 164, 65, .35); }
.bouton-or:hover { background: var(--or-clair); }
.bouton-prune { background: var(--prune); color: var(--blanc); }
.bouton-prune:hover { background: var(--prune-fonce); }
.bouton-contour { border-color: currentColor; color: inherit; background: transparent; }

/* En-tête */
.site-entete { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.site-entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marque { font-family: var(--titre); font-size: 1.25rem; font-weight: 600; color: var(--prune-fonce); text-decoration: none; line-height: 1.1; }
.marque span { color: #a8761a; font-style: italic; }
.marque img { max-height: 52px; width: auto; }
.navigation ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.navigation a { text-decoration: none; font-weight: 500; color: var(--encre); }
.navigation a:hover, .navigation .current-menu-item > a { color: #a8761a; }
.navigation a.bouton, .navigation a.bouton:hover { color: var(--blanc); }
.bascule-menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bascule-menu span { display: block; width: 24px; height: 2px; background: var(--prune-fonce); margin: 5px 0; }

/* Héros */
.heros { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% -10%, #6a3a80 0%, transparent 60%), linear-gradient(160deg, var(--prune) 0%, var(--prune-fonce) 100%); color: var(--blanc); }
.heros .conteneur { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.heros h1 { color: var(--blanc); max-width: 15ch; }
.heros h1 em { color: var(--or-clair); font-style: italic; }
.heros .accroche { font-size: 1.15rem; max-width: 54ch; color: #e6d9ec; margin-bottom: 30px; }
.heros .sur-titre { color: var(--or-clair); }
.heros-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.heros-etoile { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: .14; pointer-events: none; }
.atouts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: #e6d9ec; font-size: .95rem; }
.atouts li::before { content: "✦ "; color: var(--or); }

/* Carrousel */
.realisations { background: var(--blanc); }
.carrousel { position: relative; }
.carrousel-piste {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; margin: 0; list-style: none; scrollbar-width: none;
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carte-site { flex: 0 0 min(420px, 84%); scroll-snap-align: start; }
.carte-site a { display: block; text-decoration: none; color: inherit; background: var(--creme); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.carte-site a:hover { transform: translateY(-5px); box-shadow: var(--ombre); }
.barre-navigateur { display: flex; gap: 6px; padding: 11px 14px; background: #efe6d8; }
.barre-navigateur i { width: 10px; height: 10px; border-radius: 50%; background: #d3c5b0; }
.miniature { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #efe6d8, #e3d5ea); overflow: hidden; }
.miniature img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.carte-site .infos { padding: 18px 20px 20px; }
.carte-site h3 { margin-bottom: 4px; }
.carte-site .domaine { font-size: .88rem; color: var(--gris); word-break: break-all; }
.carte-site .voir { display: inline-block; margin-top: 10px; font-weight: 600; color: #a8761a; font-size: .95rem; }
.carrousel-commandes { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fleches { display: flex; gap: 10px; }
.fleche { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--trait); background: var(--blanc); color: var(--prune-fonce); font-size: 1.2rem; cursor: pointer; transition: background .15s, color .15s; }
.fleche:hover { background: var(--prune); color: var(--blanc); }
.points { display: flex; gap: 8px; }
.points button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: #d9cdbc; cursor: pointer; }
.points button[aria-current="true"] { background: var(--or); width: 26px; border-radius: 999px; }

/* Grilles de cartes */
.grille { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.carte { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; }
.carte .numero { font-family: var(--titre); font-size: 2rem; color: var(--or); line-height: 1; margin-bottom: 12px; display: block; }
.carte p { color: var(--gris); margin: 0; }

/* Tarifs */
.entete-page { background: linear-gradient(160deg, var(--prune) 0%, var(--prune-fonce) 100%); color: var(--blanc); text-align: center; padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 12vw, 150px); }
.entete-page h1 { color: var(--blanc); }
.entete-page p { color: #e6d9ec; max-width: 56ch; margin-inline: auto; }
.entete-page .sur-titre { color: var(--or-clair); }
.formules { margin-top: clamp(-110px, -8vw, -64px); padding-top: 0; }
.grille-formules { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.formule { position: relative; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--trait); border-radius: 22px; padding: 34px 28px; box-shadow: var(--ombre); }
.formule.vedette { border: 2px solid var(--or); }
.badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--or); color: var(--prune-fonce); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.formule .resume { color: var(--gris); font-size: .95rem; min-height: 3.2em; }
.prix { font-family: var(--titre); font-size: 3rem; font-weight: 600; color: var(--prune-fonce); line-height: 1; margin: 10px 0 4px; }
.prix small { font-family: var(--texte); font-size: .95rem; font-weight: 500; color: var(--gris); }
.prix-note { font-size: .85rem; color: var(--gris); margin-bottom: 22px; }
.formule ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.formule li { padding: 9px 0 9px 28px; border-top: 1px solid var(--trait); position: relative; font-size: .97rem; }
.formule li::before { content: "✓"; position: absolute; left: 2px; color: #a8761a; font-weight: 700; }
.formule .bouton { width: 100%; }

.options { background: var(--blanc); }
.tableau-defilant { overflow-x: auto; border: 1px solid var(--trait); border-radius: var(--rayon); }
.tableau-options { width: 100%; border-collapse: collapse; min-width: 480px; }
.tableau-options th, .tableau-options td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--trait); }
.tableau-options tr:last-child td { border-bottom: 0; }
.tableau-options th { background: var(--creme); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.tableau-options td:last-child, .tableau-options th:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--prune-fonce); }

.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #a8761a; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--gris); padding-bottom: 18px; margin: 0; }

/* Appel à l'action + pied */
.appel { background: linear-gradient(160deg, var(--prune) 0%, var(--prune-fonce) 100%); color: var(--blanc); text-align: center; }
.appel h2 { color: var(--blanc); }
.appel p { color: #e6d9ec; max-width: 52ch; margin: 0 auto 28px; }
.site-pied { background: var(--prune-fonce); color: #cbbbd3; padding: 34px 0; font-size: .92rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-pied a { color: var(--or-clair); text-decoration: none; }

/* Contenu standard */
.contenu { max-width: 780px; }
.contenu h2 { margin-top: 1.4em; }

/* Mobile */
@media (max-width: 820px) {
  .bascule-menu { display: block; }
  .navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--creme); border-bottom: 1px solid var(--trait); padding: 12px 16px 20px; }
  .navigation.ouverte { display: block; }
  .navigation ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .heros-etoile { width: 200px; }
  .carrousel-commandes { flex-direction: row-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
