/* Vêt'Familles : charte reprise des cartes d'Hélène et de la maquette du 17/10.
   Les couleurs de texte passent AA (≥ 4,5:1) sur leur fond. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* Marque */
  --canard: #075e68;
  --canard-fonce: #0b3d44;
  --teal: #187880;
  --creme: #f7f2e2;
  --menthe: #d6eee7;
  --jaune: #ffca28;
  --orange: #ff9a36;
  --blanc: #ffffff;

  /* Les 7 familles : teinte du cadre (décor) et version foncée (texte) */
  --je-sais-tout-cadre: #f6d33c;
  --je-sais-tout: #8a6200;
  --radin-cadre: #9a6cc0;
  --radin: #6b3d8f;
  --bizarre-cadre: #f08a2a;
  --bizarre: #b5480f;
  --negligent-cadre: #8ccf4a;
  --negligent: #3f7a1f;
  --consciencieux-cadre: #4fc3dc;
  --consciencieux: #1b6f8a;
  --hyper-stresse-cadre: #ef6a6a;
  --hyper-stresse: #b3202f;
  --cool-cadre: #5fcfc4;
  --cool: #146e72;

  --titre: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --etroite: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --texte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 14px;
  --gouttiere: 16px;
  --ombre-carte: 0 14px 30px rgb(11 61 68 / 0.22);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--canard);
  background: var(--creme);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--titre); font-weight: 400; line-height: 1.02; color: var(--canard-fonce); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur--etroit { max-width: 760px; }

.evitement {
  position: absolute; left: var(--gouttiere); top: -100px; z-index: 10;
  padding: 10px 16px; background: var(--canard); color: var(--creme); border-radius: 8px;
}
.evitement:focus { top: 10px; }

.a-completer { background: #fff3c4; color: #6b4e00; padding: 0 6px; border-radius: 4px; }

/* Boutons et liens */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  font-family: var(--etroite); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 12px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton--canard { background: var(--canard); color: var(--creme); }
.bouton--canard:hover { box-shadow: 0 6px 14px rgb(7 94 104 / 0.3); }
.bouton--jaune { background: var(--jaune); color: var(--canard-fonce); font-size: 1.4rem; padding: 12px 30px; box-shadow: 0 4px 0 #e0a800; }
.bouton--jaune:hover { box-shadow: 0 6px 0 #e0a800; }
.patte { width: 1.1em; height: 1.1em; flex: none; }

.lien-fleche {
  display: inline-flex; gap: 10px; align-items: center;
  font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  cursor: pointer;
}
.lien-fleche span { display: inline-block; transition: transform 0.15s ease; }

/* Traits décoratifs de part et d'autre des titres */
.traits {
  display: inline-block; width: 0.9em; height: 0.9em; vertical-align: middle;
  background: url("../img/deco/traits-canard.svg") center / contain no-repeat;
  transform: scaleX(-1);
}
.traits--droite { transform: none; }

/* En-tête */
.entete { background: var(--creme); border-bottom: 3px solid var(--teal); }
.entete__ligne { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.marque {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--titre); font-size: 1.4rem; color: var(--canard); margin-right: auto;
}
.marque img { width: 38px; height: 38px; }
.marque--creme { color: var(--creme); }
.nav { display: none; }
.nav ul { display: flex; gap: 36px; }
.nav a { font-family: var(--etroite); font-weight: 700; font-size: 1.2rem; text-decoration: none; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.entete .bouton { font-size: 1.1rem; padding: 8px 14px; gap: 8px; }
.entete__ligne { gap: 10px; }

/* Hero */
.hero { padding: 32px 0 48px; }
.hero__grille { display: grid; gap: 40px; }
.surtitre {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--etroite); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); margin: 14px 0 22px; letter-spacing: -0.01em; }
.souligne {
  background: url("../img/deco/soulignement-jaune.svg") left 92% / 100% 0.32em no-repeat;
  padding-bottom: 0.06em;
}
.hero__description { font-size: 1.2rem; max-width: 26em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 28px 0 24px; }
.signature { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; }
.signature .patte { color: var(--teal); width: 26px; height: 26px; }

.hero__visuel {
  position: relative;
  aspect-ratio: 1 / 0.95;
  max-width: 640px; width: 100%; margin-inline: auto;
  background: url("../img/deco/forme-menthe-hero.svg") center 60% / 104% auto no-repeat;
}
.hero__carte { position: absolute; border-radius: 3.5% / 2.5%; filter: drop-shadow(var(--ombre-carte)); }
.hero__carte--centre { width: 48%; left: 26%; top: 2%; z-index: 2; transform: rotate(-2deg); }
.hero__carte--gauche { width: 38%; left: -1%; top: 14%; transform: rotate(-11deg); }
.hero__carte--droite { width: 38%; right: -1%; top: 13%; transform: rotate(9deg); }
.bulle {
  position: absolute; z-index: 3; right: -2%; top: -4%;
  width: 34%; aspect-ratio: 320 / 180;
  display: grid; place-items: center; text-align: center;
  padding: 0 8% 6%;
  font-family: var(--etroite); font-weight: 700; font-size: clamp(1rem, 3.6vw, 1.4rem); line-height: 1.05;
  color: var(--canard-fonce);
  background: url("../img/deco/bulle-orange.svg") center / contain no-repeat;
  transform: rotate(5deg);
}

/* Bandeau */
.bandeau { background: var(--canard); color: var(--creme); }
.bandeau__liste { display: grid; gap: 0; padding-block: 12px; }
.bandeau li {
  display: flex; align-items: center; gap: 18px; padding: 14px 0;
  font-family: var(--titre); font-size: 1.6rem; line-height: 1.05;
}
.bandeau li + li { border-top: 1px solid rgb(247 242 226 / 0.25); }
.bandeau svg { width: 56px; height: 56px; flex: none; }

/* Familles */
.familles { padding: 56px 0 40px; text-align: center;
  background:
    url("../img/deco/patte-menthe.svg") 4% 18% / 34px no-repeat,
    url("../img/deco/patte-menthe.svg") 94% 10% / 30px no-repeat,
    url("../img/deco/patte-menthe.svg") 96% 30% / 38px no-repeat;
}
.titre-section { font-size: clamp(2rem, 7vw, 3.4rem); }
.familles .titre-section { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 18em; margin-inline: auto; }
.familles .titre-section .traits { display: none; }
@media (min-width: 768px) {
  .saut { display: block; }
  .familles .titre-section .traits { display: inline-block; }
}
.familles .titre-section .traits { flex: none; width: 0.8em; height: 0.8em; }
.familles__intro { margin: 12px auto 36px; font-size: 1.2rem; color: var(--canard-fonce); }

.cartes {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gouttiere) 24px; margin-inline: calc(-1 * var(--gouttiere));
  scrollbar-width: thin;
}
.carte { flex: 0 0 72%; scroll-snap-align: center; }
.carte img { width: 100%; filter: drop-shadow(0 10px 18px rgb(11 61 68 / 0.2)); }
.carte__legende { margin-top: 12px; font-size: 1.2rem; font-weight: 700; }
.carte--je-sais-tout .carte__legende { color: var(--je-sais-tout); }
.carte--radin .carte__legende { color: var(--radin); }
.carte--bizarre .carte__legende { color: var(--bizarre); }
.carte--negligent .carte__legende { color: var(--negligent); }
.carte--consciencieux .carte__legende { color: var(--consciencieux); }
.carte--hyper-stresse .carte__legende { color: var(--hyper-stresse); }
.carte--cool .carte__legende { color: var(--cool); }

.familles__suite summary { list-style: none; margin: 8px auto 0; font-size: 1.1rem; }
.familles__suite summary::-webkit-details-marker { display: none; }
.familles__suite[open] summary { margin-bottom: 24px; }
.familles__suite[open] summary span { transform: rotate(90deg); }

/* Cadeau */
.cadeau { padding: 40px 0 64px; }
.cadeau__panneau {
  position: relative; display: grid; gap: 20px; align-items: center;
  background: var(--menthe); border-radius: 22px; padding: 32px 24px 0;
}
.cadeau h2 { font-size: clamp(2rem, 7vw, 2.8rem); }
.cadeau__texte { display: grid; gap: 18px; justify-items: start; }
.cadeau__texte p { color: var(--canard-fonce); }
.cadeau__illustration { width: min(100%, 360px); justify-self: center; margin-top: 8px; }

/* Commande */
.commande { padding: 56px 0; background: var(--blanc); }
.commande__grille { display: grid; gap: 32px; }
.prix { margin: 16px 0 20px; font-family: var(--titre); font-size: 1.8rem; color: var(--canard-fonce); }
.commande__infos { display: grid; gap: 10px; }
.commande__infos li { padding-left: 28px; position: relative; }
.commande__infos li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px;
  background: url("../img/deco/patte-menthe.svg") center / contain no-repeat;
}
.commande__widget { min-height: 200px; }
.commande__widget esport-shop-widget { display: block; }
.commande__attente { padding: 24px; text-align: center; color: var(--canard-fonce); }
.commande__merci--annule { background: var(--creme); }
.commande__merci {
  margin-bottom: 24px; padding: 20px 24px; border-radius: var(--rayon);
  background: var(--menthe); color: var(--canard-fonce); font-weight: 600;
}

/* Histoire */
.histoire { padding: 56px 0; }
.histoire__grille { display: grid; gap: 24px; justify-items: center; }
.histoire__grille img { width: 120px; }
.histoire p { margin-top: 14px; max-width: 36em; color: var(--canard-fonce); }

/* FAQ */
.faq { padding: 0 0 64px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid rgb(7 94 104 / 0.25); }
.faq details:last-of-type { border-bottom: 1px solid rgb(7 94 104 / 0.25); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 18px 0; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--titre); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--canard-fonce); }

/* Pied de page */
.pied { background: var(--canard); color: var(--creme); padding: 40px 0; font-size: 1rem; }
.pied__grille { display: grid; gap: 18px; }
.pied ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { text-underline-offset: 4px; }
.pied .a-completer { color: #6b4e00; }
.pied__copyright { opacity: 0.85; }

/* Tablette */
@media (min-width: 768px) {
  :root { --gouttiere: 32px; }
  .marque { font-size: 1.75rem; }
  .marque img { width: 44px; height: 44px; }
  .entete .bouton { font-size: 1.15rem; padding: 8px 18px; }
  .cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; gap: 36px; overflow: visible; padding: 8px 0 24px; margin: 0; }
  .familles__suite .cartes { grid-template-columns: repeat(4, minmax(0, 240px)); gap: 28px; }
  .carte:nth-child(odd) img { transform: rotate(-2deg); }
  .carte:nth-child(even) img { transform: rotate(2deg); }
  .cadeau__panneau { grid-template-columns: auto 1fr; padding: 36px 40px 0; column-gap: 40px; }
  .cadeau__illustration { grid-column: 1 / -1; }
  .commande__grille { grid-template-columns: 1fr 1fr; align-items: start; }
  .histoire__grille { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 40px; }
  .histoire__grille img { width: 160px; }
}

/* Ordinateur */
@media (min-width: 900px) {
  .nav { display: block; margin-right: 24px; }
  .bandeau__liste { grid-template-columns: repeat(3, 1fr); padding-block: 22px; }
  .bandeau li { padding: 4px 24px; justify-content: center; }
  .bandeau li + li { border-top: 0; border-left: 1px solid rgb(247 242 226 / 0.3); }
  .pied__grille { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .pied__copyright { grid-column: 1 / -1; }
  .hero { padding: 40px 0 56px; }
  .hero__grille { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; }
  .cadeau__panneau { grid-template-columns: auto minmax(0, 1fr) 300px; padding: 28px 0 28px 40px; min-height: 150px; }
  .cadeau h2 { max-width: 10.5em; padding-right: 32px; border-right: 2px solid var(--canard); }
  .cadeau__illustration { grid-column: auto; width: 300px; margin: -70px 0 -28px; align-self: end; }
}
