/* Police du logo */
@font-face { font-family: 'Bozart'; src: url('../fonts/bozart.ttf') format('truetype'); font-display: swap; }

:root {
  /* Palette */
  --nuit:       #141c2b;
  --marine:     #26365a;
  --clair:      #ece7dc;
  --clair-chaud: #d8c6a3; /* crème chaude, limite du réglage de teinte */

  /* Nuances */
  --texte:       rgba(236, 231, 220, .8);
  --nuit-voile:  rgba(20, 28, 43, .6);
  --nuit-dense:  rgba(20, 28, 43, .94);
  --clair-doux:  rgba(236, 231, 220, .35);
  --clair-trait: rgba(236, 231, 220, .12);
  --ombre:       rgba(0, 0, 0, .45);
  --ombre-douce: rgba(0, 0, 0, .22);

  --largeur: 1052px;
  --gouttiere: 24px;
  --espace: 24px;
  /* Marge alignée sur la colonne de contenu */
  --bord: max(var(--gouttiere), calc((100vw - var(--largeur)) / 2));
}

/* Teinte de la crème réglable (--creme de 0 à 1, administration) */
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --clair: color-mix(in srgb, #ece7dc, var(--clair-chaud) calc(var(--creme, 0) * 100%)); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ---------- Navigation en points ---------- */
.points {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; gap: 18px;
}
.points a { position: relative; display: block; width: 14px; height: 14px; }
.points a::before {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--clair-doux); border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--nuit-voile);
  transition: inset .25s, background .25s, border-color .25s;
}
.points a:hover::before { background: var(--clair); }
.points a.actif::before { inset: -2px; background: var(--marine); border-color: var(--clair); }
.point-nom {
  position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; pointer-events: none; opacity: 0;
  font-family: 'Luckiest Guy', cursive; letter-spacing: 1px; font-size: .95rem; color: var(--clair);
  background: var(--nuit-dense); padding: 5px 10px 3px; border-radius: 8px;
  transition: opacity .2s, transform .2s;
}
.points a:hover .point-nom, .points a:focus-visible .point-nom { opacity: 1; transform: translate(0, -50%); }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--texte);
  background: var(--nuit);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Fond ---------- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 78% 18%, rgba(236, 231, 220, .08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 12% 85%, rgba(236, 231, 220, .05), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 45%, rgba(8, 11, 18, .75) 100%),
    url('../img/fond.jpg') center / cover no-repeat,
    var(--nuit);
}
/* Grain */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: var(--grain, .3); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-.3'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-.3'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-.3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Grain masqué sur les vidéos (js/main.js) */
  -webkit-mask: var(--trous-grain, none); -webkit-mask-composite: xor;
  mask: var(--trous-grain, none); mask-composite: exclude;
}

/* Animation terminée (js/main.js) */
.js .fini { animation: none !important; opacity: 1 !important; }
.js .trace.fini { stroke-dashoffset: 0 !important; }

/* Logo tagué en fond (js/main.js) */
.tag-fond {
  position: fixed; left: 50%; bottom: 4vh; z-index: -1; pointer-events: none;
  width: min(80vw, 900px); opacity: 0; transition: opacity .15s;
  transform: translateX(-50%) rotate(-8deg); will-change: transform;
}
.tag-fond.visible { opacity: .035; }
html[data-tag="non"] .tag-fond { display: none; }

html[data-grain="non"] body::after { display: none; }

/* Vignette */
.vignette {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 50% 50%, transparent 50%, var(--ombre) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Barre de navigation ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--bord);
  transition: background .3s, box-shadow .3s, transform .35s ease, opacity .35s ease;
}
.barre.pleine { background: var(--nuit-dense); box-shadow: 0 2px 20px var(--ombre); backdrop-filter: blur(6px); }
/* Masquée sur l'accueil */
.barre.cachee { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.barre-logo img { height: 44px; width: auto; }
.menu { display: flex; gap: 28px; }
.menu a {
  font-family: 'Luckiest Guy', cursive; letter-spacing: 1px; font-size: 1.1rem;
  color: var(--clair); text-decoration: none; position: relative;
}
/* Trait au survol (js/soulignes.js) */
.souligne-menu { position: absolute; left: 0; bottom: -9px; overflow: visible; pointer-events: none; color: var(--clair); }
.souligne-menu .crayon { stroke-width: 2.2; }
.souligne-menu .trace { stroke-dashoffset: 1; transition: stroke-dashoffset .35s cubic-bezier(.4,0,.2,1); }
.menu a:hover .souligne-menu .trace,
.menu a:focus-visible .souligne-menu .trace { stroke-dashoffset: 0; }
.menu-reseaux { display: flex; gap: 10px; align-items: center; }
.reseau {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--clair); color: var(--marine); transition: background .2s, transform .2s;
}
.menu a.reseau { color: var(--marine); }
.menu a.reseau:hover { color: var(--clair); }
.reseau:hover { background: var(--marine); color: var(--clair); transform: rotate(-8deg) scale(1.08); }
.reseau svg { width: 20px; height: 20px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger svg { display: block; width: 32px; height: 26px; overflow: visible; }
.burger path {
  fill: none; stroke: var(--clair); stroke-width: 2.6; stroke-linecap: round; filter: url(#tremble-moyen);
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.burger .croix, .burger[aria-expanded="true"] .lignes { display: none; }
.burger[aria-expanded="true"] .croix { display: inline; }
.burger:hover path { stroke: var(--clair); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--espace);
  padding: 90px var(--bord) 70px;
}
.hero-logo { width: 100%; max-width: 520px; filter: drop-shadow(0 8px 20px var(--ombre)); }
.accroche {
  font-family: 'Caveat', cursive; font-size: 2rem; color: var(--clair);
  margin: 10px 0 var(--espace); --rot: -3deg; transform: rotate(var(--rot)); transform-origin: left center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: nowrap; }
.hero-actions .bouton { white-space: nowrap; }

/* Flèche de défilement */
.defiler {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--clair); opacity: .7; text-decoration: none; transition: opacity .2s, color .2s;
}
.defiler:hover { opacity: 1; color: var(--clair); }
.defiler svg { width: 28px; height: 28px; }

.photo-annotee { position: relative; margin-top: 90px; }
.photo-annotee .fleches { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--clair); }
.photo-annotee .fleches .crayon { stroke-width: .6; filter: url(#tremble-fin); }
.etiquette {
  position: absolute; font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.7rem; line-height: 1;
  color: var(--clair); white-space: nowrap; text-shadow: 0 2px 6px var(--ombre);
  left: var(--x); top: calc(var(--y) - 1em - 6px);
  transform: translateX(var(--tx, -50%)) rotate(var(--r, -4deg));
}
.e-tito    { --x: 0;   --y: -10%; --tx: 0; }
.e-mathieu { --x: 50%; --y: -12%; }
.e-toti    { --x: 92%; --y: -10%; }
.hero-photo img {
  width: 100%; max-height: 75vh; object-fit: contain; object-position: bottom;
  /* Fondu vers le bas */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 98%);
}


/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; cursor: pointer;
  font-family: 'Luckiest Guy', cursive; font-size: 1.15rem; letter-spacing: 1px;
  color: var(--marine); background: var(--clair); text-decoration: none;
  padding: 12px 26px 9px; border: 3px solid var(--marine); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--nuit);
  transition: transform .15s, box-shadow .15s;
}
.bouton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--clair); }
.bouton-contour { background: transparent; color: var(--clair); border-color: var(--clair); }
.bouton-contour:hover { color: var(--marine); }
.bouton-petit { font-size: .95rem; padding: 8px 16px 6px; }
/* Bouton dessiné (js/soulignes.js) */
.bouton.crayonne { position: relative; isolation: isolate; background: transparent; border-color: transparent; box-shadow: none; }
.bouton.crayonne:hover { box-shadow: none; }
.contour-crayon { position: absolute; left: -4.5px; top: -4.5px; z-index: -1; overflow: visible; pointer-events: none; color: var(--marine); }
.contour-crayon .dessin { filter: url(#tremble-cadre); }
.contour-crayon .fond { fill: var(--clair); }
.contour-crayon .ombre { fill: var(--nuit); transition: fill .15s; }
.contour-crayon .crayon { stroke-width: 2.6; filter: none; }
.bouton-contour .contour-crayon { color: var(--clair); }
.bouton-contour .contour-crayon .fond { fill: transparent; }
/* Bouton contour : ombre remplacée par un trait décalé */
.bouton-contour .contour-crayon .ombre { fill: none; stroke: var(--nuit); stroke-width: 2.6; transition: stroke .15s; }
.bouton-contour.crayonne:hover .contour-crayon .ombre { fill: none; stroke: var(--clair); }
.bouton.crayonne:hover .contour-crayon .ombre { fill: var(--clair); }

/* ---------- Sections ---------- */
.section {
  padding: 60px var(--bord) 20px;
}
.titre {
  font-family: 'Bozart', 'Luckiest Guy', cursive; font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--clair);
  -webkit-text-stroke: 2px var(--marine);
  text-shadow: 4px 4px 0 var(--marine), 6px 6px 0 var(--ombre);
  transform: rotate(-1.5deg); transform-origin: left center; display: inline-block; margin-bottom: var(--espace);
  line-height: 1.5;
}
.intro { max-width: 640px; font-size: 1.1rem; margin-bottom: var(--espace); }
.texte-trio { white-space: pre-line; }
.trio-reseaux { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.lien-reseau {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; color: var(--clair); transition: color .2s;
}
.lien-reseau .reseau { width: 34px; height: 34px; }
.lien-reseau:hover { color: var(--clair); }
.lien-reseau:hover .reseau { background: var(--marine); color: var(--clair); transform: rotate(-8deg) scale(1.08); }

/* ---------- Traits ---------- */
.crayon { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: url(#tremble); }
.trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
.titre { position: relative; padding-bottom: 14px; }
/* Soulignement (js/soulignes.js) */
.titre .souligne { position: absolute; overflow: visible; pointer-events: none; color: var(--clair); }
.papier .titre .souligne { color: var(--marine); }
.titre .souligne .crayon { stroke-width: 2.5; }

/* ---------- Papier déchiré ---------- */
.ombre-papier { filter: drop-shadow(0 4px 3px var(--ombre)) drop-shadow(0 18px 20px var(--ombre)); }
/* Ombre légère : copie floue et décalée de la forme déchirée (flou fixe, calculé une fois) */
.ombre-papier.leger { filter: none; position: relative; isolation: isolate; }
.ombre-flou, .ombre-haut { position: absolute; z-index: -1; pointer-events: none; filter: blur(3px); will-change: transform; }
.ombre-flou { inset: 0; transform: translateY(6px); opacity: .45; }
.ombre-flou > div, .ombre-haut > div { position: absolute; inset: 0; background: #000; }
.ombre-flou > div { clip-path: var(--dechire); }
/* Ombre du haut : à l'intérieur du papier, sous le bord déchiré */
.ombre-haut { left: 0; right: 0; top: -20px; height: 70px; opacity: .4; }
.ombre-haut > div { clip-path: var(--ombre-haut); }
.ombre-papier.leger > .papier {
  position: relative; isolation: isolate;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"), var(--clair);
}
.section.papier {
  margin: 40px 0; padding-top: 80px; padding-bottom: 115px;
}
/* Aspect papier */
.papier {
  color: var(--marine);
  background:
    linear-gradient(to bottom, var(--ombre) 0, transparent 22px),
    linear-gradient(to bottom, var(--ombre-douce) 0, transparent 90px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    var(--clair);
}
.papier .intro { color: var(--marine); font-weight: 600; }
.papier .lien-reseau { color: var(--marine); }
.papier .lien-reseau .reseau { background: var(--marine); color: var(--clair); }
.papier .lien-reseau:hover { color: var(--nuit); }
.papier .lien-reseau:hover .reseau { background: var(--nuit); color: var(--clair); }

/* ---------- Dates ---------- */
.dates { list-style: none; display: grid; gap: 14px; }
.date {
  display: flex; align-items: center; gap: 22px;
  background: var(--nuit-voile); border-left: 5px solid var(--clair);
  border-radius: 12px; padding: 16px 22px;
}
.date-jour { text-align: center; min-width: 60px; line-height: 1; }
.date-jour .j { display: block; font-family: 'Luckiest Guy', cursive; font-size: 2.2rem; color: var(--clair); }
.date-jour .m { text-transform: uppercase; font-weight: 800; font-size: .8rem; letter-spacing: 1px; }
.date-infos { flex: 1; display: flex; flex-direction: column; }
.date-infos strong { color: var(--clair); font-size: 1.15rem; }
.date-infos small { font-weight: 400; color: var(--texte); font-size: .85rem; }
.date-privee { border-left-color: var(--clair-doux); }
.date-privee strong { font-style: italic; color: var(--texte); }

.passees { margin-top: var(--espace); }
.passees .si-ouvert, .passees[open] > summary .si-ferme { display: none; }
.passees[open] > summary .si-ouvert { display: inline; }
.passees-contenu {
  overflow: hidden;
  padding: 0 12px 12px; margin: 0 -12px -12px;
}
.passees-annee { font-family: 'Luckiest Guy', cursive; letter-spacing: 1px; color: var(--clair); margin-top: 14px; }
.passees .passees { margin-top: 18px; }
.passees > summary {
  cursor: pointer; font-family: 'Caveat', cursive; font-size: 1.6rem; color: var(--clair);
  list-style: none; display: inline-block;
}
.passees > summary::-webkit-details-marker { display: none; }
.passees > summary::before { content: '▸ '; color: var(--clair); display: inline-block; transition: transform .2s; }
.passees[open] > summary::before { transform: rotate(90deg); }
.dates-passees { margin-top: 12px; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: start; }
.dates-passees .date { opacity: .65; padding: 10px 16px; gap: 16px; border-left-width: 3px; }
/* Ouverture en cascade */
.passees[open] > .passees-contenu > .dates-passees .date { animation: date-arrive .45s cubic-bezier(.2,1.2,.4,1) both; animation-delay: var(--d, 0s); }
@keyframes date-arrive { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: .65; transform: none; } }
@media (prefers-reduced-motion: reduce) { .passees[open] > .passees-contenu > .dates-passees .date { animation: none; } }
.dates-passees .date-jour .j { font-size: 1.6rem; }
.dates-passees .date-infos strong { font-size: 1rem; }
.dates-passees .date-infos span { font-size: .9rem; }

.date-infos { min-width: 0; }
/* Ville : lien Google Maps */
.ville-carte { color: inherit; text-decoration: none; }
.ville-carte:hover { color: var(--clair); }
/* Bouton : texte sur ordinateur, icône sur mobile */
.bouton-lien { flex: none; }
.bouton-lien svg:not(.contour-crayon) { display: none; width: 20px; height: 20px; }
.date > .bouton-lien { margin-left: auto; }

/* Carte dépliable */
.date-depliable { display: block; padding: 0; }
.date-resume { display: flex; align-items: center; gap: 22px; padding: 16px 22px; cursor: pointer; list-style: none; user-select: none; }
.date-resume * { cursor: pointer; }
.date-resume::-webkit-details-marker { display: none; }
.date-resume .bouton-lien { margin-left: auto; }
.date-plus { padding: 0 22px 16px 104px; overflow: hidden; }
.date-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; }
.date-etiquette { font-weight: 800; font-size: .85rem; color: var(--clair); }
.date-adresse svg { align-self: center; }
.date:not(.date-depliable) { cursor: default; }
.date-adresse { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--clair); text-underline-offset: 3px; }
.date-adresse svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--clair); }
.date-adresse:hover { color: var(--clair); }
.dates-passees .date-depliable { padding: 0; }
.dates-passees .date-resume { padding: 10px 16px; gap: 16px; }
.dates-passees .date-plus { padding: 0 16px 12px 92px; font-size: .9rem; }

/* Cartes dessinées (js/soulignes.js) */
.date.crayonne { position: relative; isolation: isolate; background: transparent; border-left-color: transparent; }
.cadre-crayon { position: absolute; left: -9px; top: -9px; z-index: -1; overflow: visible; pointer-events: none; }
.cadre-crayon .dessin { filter: url(#tremble-cadre); }
.cadre-crayon .fond { fill: var(--nuit-voile); }
.cadre-crayon .contour { color: var(--clair); filter: none; }

/* ---------- Vidéos ---------- */
.videos { display: flex; flex-wrap: wrap; gap: var(--espace); }
.video {
  width: 100%; max-width: 800px; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden; background: var(--nuit);
  border: 3px solid var(--clair); box-shadow: 6px 6px 0 var(--marine);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.papier .video { border-color: var(--marine); box-shadow: 6px 6px 0 var(--ombre); }

/* ---------- Contact ---------- */
/* Accroche mobile */
.accroche-mobile { display: none; }
.contact-accroche { font-family: 'Caveat', cursive; font-size: 1.9rem; line-height: 1.2; color: var(--clair); }
.coordonnees {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  gap: 12px 28px;
}
.coord-ligne {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 1.05rem; color: var(--clair); transition: color .2s;
}
.coord-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--clair); color: var(--marine);
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.coord-ico svg { width: 17px; height: 17px; }
.coord-qui { font-weight: 400; font-size: .9rem; color: var(--texte); }
.coord-ligne:hover { color: var(--clair); }
.coord-ligne:hover .coord-ico { background: var(--marine); color: var(--clair); }

/* ---------- Pied ---------- */
.pied {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 60px var(--bord) 0; padding: 24px 0 30px;
  border-top: 1px solid var(--clair-trait);
  font-size: .85rem; opacity: .7;
}
.pied-logo { width: 90px; }

/* ---------- Écran moyen ---------- */
@media (max-width: 1000px) {
  .menu { gap: 20px; }
  .accroche { font-size: 1.6rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  :root { --gouttiere: 26px; --espace: 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions .bouton { font-size: clamp(.8rem, 4vw, 1.15rem); padding: 10px 12px 7px; }
  .etiquette { font-size: 1.15rem; }
  .photo-annotee { margin-top: 70px; }
  .photo-annotee .fleches .crayon { stroke-width: .5; }
  .section.papier { padding-top: 60px; padding-bottom: 90px; }
  .coordonnees { flex-direction: column; align-items: flex-start; }
  .points, .defiler { display: none; }
  .dates-passees { grid-template-columns: 1fr; }
  .burger { display: block; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--nuit-dense);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .menu.ouvert { max-height: 300px; }
  .menu a { padding: 14px var(--gouttiere); border-top: 1px solid var(--clair-trait); }
  .souligne-menu { display: none; }
  .menu .menu-reseaux { padding: 14px var(--gouttiere); gap: 14px; border-top: 1px solid var(--clair-trait); }
  .menu a.reseau { padding: 0; border-top: 0; }
  .menu.ouvert { max-height: 360px; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  /* Accueil mobile */
  .hero { display: flex; flex-direction: column; justify-content: center; }
  .hero-photo { order: 1; }
  .hero-texte { order: 2; position: relative; z-index: 2; margin-top: -36%; }
  .hero-logo { width: 72%; margin: 0 auto; }
  .accroche:not(.accroche-mobile) { display: none; }
  .titre { font-size: clamp(1.5rem, calc((100vw - 64px) / 10), 2.4rem); }
  .accroche-mobile { display: block; font-size: 1.35rem; line-height: 1.35; text-align: center; --rot: -2deg; transform: rotate(var(--rot)); transform-origin: center; margin: 10px 0 0; }
  .hero-actions { margin-top: 16px; justify-content: center; }
  .section { padding-top: 44px; padding-bottom: 12px; }
  .pied { margin-top: 40px; }
  .date { flex-wrap: wrap; gap: 14px; padding: 14px 16px; }
  .date-resume { gap: 14px; padding: 14px 16px; }
  .date-plus { padding: 0 16px 16px; }
  .bouton-lien { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; }
  .bouton-lien svg:not(.contour-crayon) { display: block; }
  .bouton-lien .texte-lien { display: none; }
}

/* ---------- Accueil ordinateur ---------- */
@media (min-width: 701px) {
  .hero {
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    padding: 6px var(--bord) 24px; text-align: center;
    --photo: min(64vh, 880px, 100vw - 120px);
  }
  .hero-photo { order: 1; width: var(--photo); }
  .photo-annotee { margin-top: calc(var(--photo) * .12 + 1.4rem); }
  .hero-photo img { max-height: none; }
  .hero-texte {
    order: 2; position: relative; z-index: 2;
    margin-top: calc(var(--photo) * -.5);
    display: flex; flex-direction: column; align-items: center;
  }
  .hero-logo { width: min(600px, 40vw, 54vh); margin: 0 auto; }
  .accroche {
    font-size: clamp(1.4rem, 3vh, 2.1rem); line-height: 1.25; max-width: 1000px; text-align: center;
    --rot: -2deg; transform: rotate(var(--rot)); transform-origin: center; margin: 12px 0 0;
  }
  .hero-actions { margin-top: 2.6vh; justify-content: center; gap: 20px; }
  .hero-actions .bouton { font-size: clamp(1.15rem, 2.2vh, 1.5rem); padding: 14px 32px 11px; }
  .etiquette { font-size: clamp(1.7rem, 3.2vh, 2.3rem); }
}
@media (min-width: 701px) and (max-height: 820px) {
  .defiler { display: none; }
}

/* ---------- Animations (si JS et sans reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Accueil */
  .js .hero-logo     { animation: arrivee .9s .2s cubic-bezier(.2,1.4,.4,1) both; }
  .js .accroche      { animation: glisse-accroche .7s .6s cubic-bezier(.2,1,.3,1) both; }
  .js .hero-actions .bouton { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
  .js .hero-actions .bouton:nth-child(1) { animation-delay: .85s; }
  .js .hero-actions .bouton:nth-child(2) { animation-delay: .95s; }
  .js .hero-photo    { animation: monte .9s .35s cubic-bezier(.2,1,.3,1) both; }
  .js .points        { animation: fondu .6s 1.1s both; }
  .js .defiler       { animation: fondu .6s 1.3s both, rebond 2s 1.9s ease-in-out infinite; }

  /* Sections */
  .js .section .titre,
  .js .section .intro,
  .js .dates:not(.dates-passees) .date,
  .js .section > .passees,
  .js .video,
  .js .coordonnees > *,
  .js .trio-reseaux > * { opacity: 0; }

  .js .section.visible .titre { animation: titre-arrive .7s cubic-bezier(.2,1.5,.4,1) both; }
  .js .section.visible .intro { animation: monte-court .6s .2s ease-out both; }
  .js .section.visible .dates:not(.dates-passees) .date {
    animation: glisse-gauche .6s cubic-bezier(.2,1,.3,1) both;
    animation-delay: calc(.25s + var(--i, 0) * .09s);
  }
  .js .section.visible > .passees { animation: fondu .6s .5s both; }
  .js .section.visible .video { animation: zoom .8s .25s cubic-bezier(.2,1,.3,1) both; }
  .js .section.visible .coordonnees > * { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
  .js .section.visible .coordonnees > :nth-child(1) { animation-delay: .25s; }
  .js .section.visible .coordonnees > :nth-child(2) { animation-delay: .38s; }
  .js .section.visible .trio-reseaux > * { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
  .js .section.visible .trio-reseaux > :nth-child(1) { animation-delay: .45s; }
  .js .section.visible .trio-reseaux > :nth-child(2) { animation-delay: .58s; }

  /* Tracés */
  .js .trace { stroke-dashoffset: 1; }
  .js .section .souligne .trace { stroke-dashoffset: 1; }
  .js .section.visible .souligne .trace { animation: trace .8s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d, .55s); }
  .js .section .souligne.fixe .trace { animation: none; stroke-dashoffset: 0; }
  .js .hero .contour-crayon.fixe .trace { animation: none; stroke-dashoffset: 0; }
  /* Boutons des concerts */
  .js .section.visible .contour-crayon .trace { animation: trace .8s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d, .9s); }
  .js .section .contour-crayon.fixe .trace { animation: none; stroke-dashoffset: 0; }
  .js .section .cadre-crayon .trace { stroke-dashoffset: 1; }
  .js .section.visible .cadre-crayon .trace { animation: trace .8s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d, .55s); }
  .js .section .cadre-crayon.fixe .trace { animation: none; stroke-dashoffset: 0; }
  .js .hero .trace { animation: trace .8s cubic-bezier(.4,0,.2,1) forwards; animation-delay: var(--d, 1.5s); }
  .js .etiquette { animation: ecrit .5s both; animation-delay: var(--d, 1.3s); }

  /* Bouton menu */
  .burger path { animation: trace .3s cubic-bezier(.4,0,.2,1) both; animation-delay: var(--d, 0s); stroke-dashoffset: 1; }

  /* Grain animé (réglable ; fixe sur mobile par défaut) */
  html:not([data-grain-anime="non"]) body::after { animation: grain .9s steps(1) infinite; }
  @media (hover: none), (max-width: 700px) { html:not([data-grain-anime]) body::after { animation: none; } }
}

@keyframes descend      { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes glisse-gauche { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes glisse-accroche { from { opacity: 0; transform: translateX(-30px) rotate(var(--rot)); } to { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes monte        { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes monte-court  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop          { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes fondu        { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom         { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes titre-arrive { from { opacity: 0; transform: rotate(-14deg) scale(.5); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes rebond       { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }

/* ---------- Mentions légales ---------- */
.retour {
  font-family: 'Luckiest Guy', cursive; letter-spacing: 1px; font-size: 1.05rem;
  color: var(--clair); text-decoration: none; transition: color .2s;
}
.retour:hover { color: var(--clair); }
.legal { padding-top: 110px; }
.legal > * { max-width: 760px; }
.legal h2 {
  font-family: 'Luckiest Guy', cursive; font-weight: 400; letter-spacing: 1px;
  font-size: 1.3rem; color: var(--clair); margin: 32px 0 8px;
}
.legal p, .legal ul { margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--clair); text-underline-offset: 3px; }
.legal a:hover { color: var(--clair); }
.legal-maj { margin-top: 32px; font-size: .9rem; opacity: .7; }
.pied a { color: inherit; text-underline-offset: 3px; }
.pied a:hover { color: var(--clair); }
@keyframes arrivee      { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes trace        { to { stroke-dashoffset: 0; } }
@keyframes ecrit        { from { opacity: 0; transform: translateX(var(--tx, -50%)) rotate(var(--r, -4deg)) translateY(8px); } to { opacity: 1; transform: translateX(var(--tx, -50%)) rotate(var(--r, -4deg)); } }
@keyframes grain {
  0%   { background-position: 0 0; }
  10%  { background-position: -40px -60px; }
  20%  { background-position: -90px 30px; }
  30%  { background-position: 50px -80px; }
  40%  { background-position: -30px 70px; }
  50%  { background-position: -70px 10px; }
  60%  { background-position: 80px 40px; }
  70%  { background-position: 20px -30px; }
  80%  { background-position: -60px -90px; }
  90%  { background-position: 60px 80px; }
}
