/* Kit commun des sites High Ducks. Chaque site redéfinit --fond, --encre, --accent, --accent-2 dans son :root. */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --fond: #0e0f12; --encre: #f4f1ea; --accent: #2fbf7f; --accent-2: #f5a623;
  --titre: 'Anton', Impact, sans-serif; --texte: 'Space Grotesk', system-ui, sans-serif;
  --gouttiere: clamp(1rem, 5vw, 4rem); --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.05rem/1.6 var(--texte); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.conteneur { width: min(100% - 2 * var(--gouttiere), var(--max)); margin-inline: auto; }

/* Typo : gros titres condensés, presque affiche. */
.titre-xxl { font: 400 clamp(3.2rem, 11vw, 10rem)/.88 var(--titre); text-transform: uppercase; letter-spacing: -.01em; margin: 0; }
.titre-xl { font: 400 clamp(2.4rem, 6.5vw, 5.5rem)/.92 var(--titre); text-transform: uppercase; margin: 0 0 .4em; }
.surtitre { font: 700 .8rem/1 var(--texte); letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
.contour { -webkit-text-stroke: .035em currentColor; -webkit-text-fill-color: transparent; }   /* le trait garde la couleur du texte */
.chapo { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 34ch; }

/* Boutons */
.cta { display: inline-flex; align-items: center; gap: .6em; padding: 1em 1.6em; border-radius: 999px; background: var(--accent); color: var(--fond);
  font: 700 1rem/1 var(--texte); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; transition: transform .2s, box-shadow .2s; border: 0; cursor: pointer; }
.cta:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 0 -2px var(--accent-2); }
.cta:focus-visible, .lien:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
.cta--fantome { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px currentColor; }
.cta--fantome:hover { box-shadow: inset 0 0 0 2px currentColor, 0 10px 0 -2px var(--accent); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem var(--gouttiere); background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: blur(10px); }
.nav__logo { display: flex; align-items: center; gap: .7rem; font: 400 1.4rem/1 var(--titre); text-transform: uppercase; text-decoration: none; }
.nav__logo img { width: 42px; height: 42px; }
.nav__liens { display: flex; gap: clamp(.8rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav__liens a { text-decoration: none; }
.nav__liens a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav__liens { display: none; } }

/* Sections */
.section { position: relative; padding-block: clamp(4rem, 10vw, 8rem); }
.section--accent { background: var(--accent); color: var(--fond); }
.section--accent .surtitre { color: var(--fond); }
.section--accent .cta { background: var(--fond); color: var(--encre); }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }

/* LA section signature : texte + CTA à gauche, Scaul à droite, coupé au bassin sur le bas de la section
   et qui déborde par le haut sur la section précédente. --deborde règle le débordement (35 % par défaut). */
.section-scaul { position: relative; isolation: auto; container-type: inline-size; }
.section-scaul .conteneur { position: relative; z-index: 2; }
.section-scaul__texte { max-width: min(36rem, 55%); }
.section-scaul__img { position: absolute; z-index: 3; right: var(--gouttiere); bottom: 0; width: auto; pointer-events: none;
  /* boîte = image exacte (pas de object-fit), donc translateY(--coupe) tombe pile sur la ligne de coupe */
  height: min(100% + var(--deborde, 35%), 48cqw / var(--ratio, 1)); transform: translateY(calc(var(--coupe, 0) * 100%));
  filter: drop-shadow(-18px 0 30px rgb(0 0 0 / .25)); }
/* --coupe : part de l'image sous la ligne de coupe du corps (la main dépasse sur la section suivante) ; --ratio : largeur / hauteur */
.section-scaul__img[src*="scaul-salut"] { --coupe: calc(76 / 699); --ratio: calc(794 / 699); }
.section-scaul__img[src*="scaul-cookie"] { --ratio: calc(705 / 563); }
@media (max-width: 720px) {
  .section-scaul { padding-bottom: 0; }
  .section-scaul__texte { max-width: none; }
  .section-scaul__img { position: relative; right: auto; height: auto; width: 78%; transform: none;
    margin: 2rem 0 calc(-78% * var(--coupe, 0) / var(--ratio, 1)) auto; }
}


/* Cartes */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.2rem; }
.carte { position: relative; padding: 1.6rem; border-radius: 1.4rem; background: color-mix(in srgb, var(--encre) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--encre) 14%, transparent); text-decoration: none; transition: transform .25s, background .25s; overflow: hidden; }
a.carte:hover { transform: translateY(-6px) rotate(-.6deg); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.carte h3 { font: 400 1.9rem/1 var(--titre); text-transform: uppercase; margin: .6rem 0; }
.carte img { height: 9rem; width: auto; margin: -.4rem 0 .4rem auto; object-fit: contain; }
.pastille { display: inline-block; padding: .3em .8em; border-radius: 999px; font: 700 .72rem/1 var(--texte); letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent-2); color: #111; }

/* Pied de page */
.pied { padding: 3rem var(--gouttiere) 6rem; border-top: 1px solid color-mix(in srgb, var(--encre) 15%, transparent); font-size: .9rem; }
.pied__ligne { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.pied a { text-decoration: none; opacity: .8; } .pied a:hover { opacity: 1; color: var(--accent); }
.lien { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Bandeau cookies (cookies.js) */
.bandeau-cookies { position: fixed; z-index: 100; inset: auto 1rem 1rem; max-width: 34rem; margin-left: auto; padding: 1.3rem; border-radius: 1.2rem;
  background: #fffaf2; color: #1b1b1b; box-shadow: 0 20px 60px rgb(0 0 0 / .35); display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.bandeau-cookies img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; }
.bandeau-cookies p { margin: 0; font-size: .92rem; line-height: 1.45; }
.bandeau-cookies strong { font-family: var(--titre); font-weight: 400; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }
.bandeau-cookies__choix { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.bandeau-cookies button { flex: 1 1 auto; padding: .75em 1em; border-radius: 999px; border: 2px solid #1b1b1b; background: #fff; color: #1b1b1b;
  font: 700 .85rem/1 var(--texte); cursor: pointer; }
.bandeau-cookies button:hover { background: #1b1b1b; color: #fff; }
.bandeau-cookies button.maman { flex-basis: 100%; background: #f7a13b; border-color: #f7a13b; color: #1b1b1b; }
.bandeau-cookies button.maman:hover { background: #3e7fc3; border-color: #3e7fc3; color: #fff; }
