/* ============================================================
   Site responsive : tout est fluide.
   - La taille de base (html) grandit/rétrécit avec l'écran
     (≈17 px sur petit mobile, ≈23 px sur ordinateur, jusqu'à ≈30 px sur 4K).
   - Les largeurs sont en rem : tout le site suit cette taille.
   - Aucune mise en page ne dépend d'un appareil précis.
   - La police Jost n'est plus chargée ici (ancien @import) mais dans le <head>
     de chaque page, avec <link rel="preconnect"> : l'affichage démarre plus vite.
   ============================================================ */
:root {
  --page-w: 41.5rem;   /* largeur max du contenu */
  --text-w: 35.5rem;   /* largeur max des textes */
  --form-w: 31rem;     /* largeur max des formulaires */
  --pad: clamp(14px, 4vw, 24px);
  --ink: #1a1a1a;
  --beige: #ddc9a4;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  font-size: clamp(106%, calc(96% + 0.64vw), 144.5%);
}
@media (min-width: 1600px) { html { font-size: clamp(144.5%, calc(68% + 0.76vw), 190%); } }

body {
  overflow-x: hidden;
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: #ffffff; color: var(--ink);
  font-family: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400; text-align: center; line-height: 1.6;
  overflow-wrap: break-word;
}
/* height: auto = une image garde toujours ses proportions, même si on change sa largeur */
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Logo */
header { width: 100%; max-width: var(--page-w); margin: 0 auto; animation: fadeIn 1.6s ease-out both; }
.logo-link { display: block; line-height: 0; }
.logo { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 566; object-fit: cover; }

/* Bloc central */
main {
  width: 100%; max-width: var(--page-w); margin: 0 auto; padding: 40px var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  animation: fadeIn 1.8s ease-out both;
}

/* Drapeaux */
.lang { display: flex; gap: 14px; }
.lang a { display: block; line-height: 0; border-radius: 3px; opacity: 0.55; transition: opacity 0.25s ease, transform 0.25s ease; }
.lang a:hover, .lang a:focus-visible, .lang a[aria-current="page"] { opacity: 1; }
.lang img { display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.2); }

/* Navigation : les liens passent à la ligne automatiquement */
.menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 1.1rem; }
.menu a {
  text-decoration: none; font-size: 0.85rem; letter-spacing: 0.15em;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.menu a:hover, .menu a:focus-visible, .menu a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Boutons */
.btn {
  display: inline-block; max-width: 100%; padding: 0.6rem 1.4rem; border: 1px solid var(--ink);
  color: var(--ink); background: #ffffff; font: inherit; font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.15em; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: #ffffff; }

/* Titres et textes */
h1, h2 { text-wrap: balance; }
h1.title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); }
h2.title { margin: 0; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.3em; }
.prose { max-width: var(--text-w); }
.prose p { margin: 0 0 1.4em; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.note { font-size: 0.9rem; opacity: 0.75; margin: 0; }

/* Formulaires */
form.request { width: 100%; max-width: var(--form-w); text-align: left; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; letter-spacing: 0.08em; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; padding: 0.5rem 0.6rem; border: 1px solid var(--ink); border-radius: 0;
  background: #ffffff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field input[type="date"] { min-height: 2.8em; }
.field textarea { min-height: 7rem; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 4px; }
.choices label { display: flex; align-items: center; gap: 8px; font-size: 1rem; letter-spacing: 0; cursor: pointer; }
.choices input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
form.request .btn { align-self: center; margin-top: 8px; }
/* Champ piège anti-spam (honeypot) : invisible pour les humains */
.hp { position: absolute; left: -9999px; }

/* Boutique */
.shop { width: 100%; display: flex; flex-direction: column; gap: 48px; }
.item { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.item a.cover { display: block; line-height: 0; width: 100%; max-width: 18rem; transition: transform 0.25s ease; }
.item img { display: block; width: 100%; height: auto; }
.item h2 { margin: 0; font-size: 1.05rem; font-weight: 400; letter-spacing: 0.15em; }
.item p { margin: 0; max-width: 31rem; }

/* Pied de page : coordonnées en texte + icônes */
.site-footer { width: 100%; }
/* Coordonnées sous les icônes : WhatsApp et mail, chacun avec son icône (comme la page contact).
   Elles restent côte à côte si la place le permet, sinon l'une passe sous l'autre.
   white-space: nowrap = un numéro ou une adresse ne sont jamais coupés en deux lignes. */
.footer-contact {
  margin: 0; padding: 0 var(--pad) 2rem; font-size: 0.85rem; letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.8rem 1.8rem;
}
.footer-contact a { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; text-decoration: none; }
.footer-contact a span { border-bottom: 1px solid transparent; transition: border-color 0.25s ease; }
.footer-contact a:hover span, .footer-contact a:focus-visible span { border-bottom-color: var(--ink); }
.footer-contact img { display: block; width: 1.5rem; height: 1.5rem; flex: none; }

/* Bande du bas : les 5 icônes tiennent toujours sur une ligne */
.badge {
  --gap: 16px; --count: 4;
  --size: min(2.8rem, calc((100vw - 40px - (var(--count) - 1) * var(--gap)) / var(--count)));
  display: flex; justify-content: center; align-items: center; gap: var(--gap);
  padding: 24px 20px; background: #ffffff;
}
.badge a { display: block; flex: none; line-height: 0; transition: transform 0.25s ease; }
.badge img { display: block; width: var(--size) !important; height: var(--size) !important; object-fit: contain; }

/* Effets de survol uniquement sur les appareils qui ont une souris */
@media (hover: hover) {
  .lang a:hover { transform: scale(1.08); }
  .item a.cover:hover { transform: scale(1.02); }
  .badge a:hover { transform: scale(1.06); }
}

/* Écrans tactiles : zones de toucher agrandies (≈ 40-44 px) sans changer l'apparence.
   Une zone invisible (::after) déborde autour des liens trop petits. */
@media (pointer: coarse) {
  .menu a, .lang a, .footer-contact a { position: relative; }
  .menu a::after { content: ""; position: absolute; inset: -0.25rem -0.4rem; }
  .lang a::after { content: ""; position: absolute; inset: -10px -6px; }
  .footer-contact a::after { content: ""; position: absolute; inset: -0.45rem -0.4rem; }
}

/* Page kit de presse : le PDF s'affiche directement, plus large que la colonne centrale */
.pdf-viewer {
  display: block; width: min(calc(100vw - 2 * var(--pad)), 64rem);
  height: 85vh; height: 85dvh; min-height: 30rem; border: 1px solid var(--ink); background: #ffffff;
}


/* Kit de presse sur mobile : pages du PDF dessinées une par une (voir pdf-viewer.js) */
.pdf-pages { width: min(calc(100vw - 2 * var(--pad)), 64rem); display: flex; flex-direction: column; gap: 12px; }
.pdf-pages[hidden], .pdf-viewer[hidden] { display: none; }
.pdf-pages canvas { display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: #ffffff; }

/* Page contact */
.direct { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; font-size: 1.2rem; max-width: 100%; }
.direct a { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; max-width: 100%; text-align: left; }
.direct a span { border-bottom: 1px solid transparent; transition: border-color 0.25s ease; min-width: 0; overflow-wrap: anywhere; }
.direct a:hover span, .direct a:focus-visible span { border-bottom-color: var(--ink); }
.direct img { display: block; width: 2.4rem; height: 2.4rem; flex: none; }

/* Photo de la page contact : même largeur que le logo (colonne max de la page, sans marge) */
.contact-photo { width: 100%; max-width: var(--page-w); margin: 0 auto 24px; line-height: 0; }
.contact-photo img { display: block; width: 100%; height: auto; }

/* Page concert : texte et formulaire sur fond blanc, sans photo de fond */
.live-wrap {
  width: 100%;
  max-width: calc(var(--text-w) + 2 * var(--pad));
  display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px var(--pad);
}

/* Page présentation : la photo est collée au bord gauche de l'écran ; le beige part
   de la photo, s'arrête en haut et en bas de la photo, et va jusqu'au bord droit de l'écran. */
.presentation {
  display: grid; grid-template-columns: minmax(0, min(42.5%, 28rem)) minmax(0, 1fr); align-items: stretch;
  margin: 24px 0;
  background: var(--beige);
}
.presentation img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.presentation .prose {
  max-width: 34rem; width: 100%; margin-inline: auto; text-align: left; align-self: center;
  padding: 40px clamp(20px, 4vw, 56px);
}
/* Quand la place manque, la photo passe au-dessus du texte */
@media (max-width: 820px) {
  .presentation { grid-template-columns: minmax(0, 1fr); }
  .presentation img { height: auto; }
  .presentation .prose { padding: 28px 20px; }
}

/* Page de remerciement : texte à côté de la photo, qui passe dessous si la place manque */
.thanks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 40px; width: 100%; }
.thanks .prose { flex: 1 1 14rem; min-width: 0; margin: 0; text-align: left; }
.thanks-img { display: block; flex: none; width: 11.25rem; max-width: 100%; height: auto; }
@media (max-width: 600px) { .thanks .prose { text-align: center; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  header, main { animation: none; }
  .btn, .lang a, .badge a, .item a.cover, .menu a, .footer-contact a { transition: none; }
}
