/* Défis Pirate Perpignan — feuille de style du site.
   Base commune + trois variantes de mise en page (body.v-a, .v-b, .v-c).
   Couleurs relevées sur le site et la charte : rouge #A83622, bordeaux #7C1520, moutarde #E8A613. */

@font-face { font-family: "Anton"; src: url("/fonts/Anton-400.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Montserrat"; src: url("/fonts/Montserrat-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Polices de repli calées sur les proportions d'Anton et de Montserrat (Arial / Roboto ajustées, calcul fontTools du
   07/10) : quand la vraie police arrive, le texte garde sa place et la page ne saute plus (décalage 0,42 sur l'accueil). */
@font-face { font-family: "Anton Repli"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"); size-adjust: 69.31%; ascent-override: 169.71%; descent-override: 47.48%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Repli"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"); font-weight: 100 599; size-adjust: 114.51%; ascent-override: 84.54%; descent-override: 21.92%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Repli"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"); font-weight: 600 900; size-adjust: 113.27%; ascent-override: 85.46%; descent-override: 22.16%; line-gap-override: 0%; }

:root {
  --nuit: #14100F; --nuit2: #1C1715; --nuit3: #272019; --filet-n: #3A302C;
  --papier: #FBF7F3; --papier2: #F3EAE0; --carte: #FFFFFF; --filet: #E6D9CE;
  --bordeaux: #7C1520; --rouge: #A83622; --rouge-fonce: #8E2C1B; --moutarde: #E8A613; --moutarde-fonce: #9A6A00;
  --encre: #231A18; --gris: #6E6058; --clair-n: #D9CCC3;
  --titre: "Montserrat", "Montserrat Repli", "Segoe UI", system-ui, sans-serif;
  --texte: "Montserrat", "Montserrat Repli", "Segoe UI", system-ui, sans-serif;
  --rayon: 6px;
  --gouttiere: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 16px; line-height: 1.65; padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .h3 { font-family: var(--titre); margin: 0; text-wrap: balance; line-height: 1.12; }
h2 { font-size: clamp(26px, 5.4vw, 40px); font-weight: 700; }
h3, .h3 { font-size: 20px; font-weight: 700; display: block; }
p { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.w { max-width: 1140px; margin: 0 auto; padding-inline: var(--gouttiere); }
.oeil { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--rouge); margin: 0 0 10px; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--moutarde); color: var(--encre); padding: 10px 14px; z-index: 99; }
.evitement:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 2px; }

/* Boutons */
.btn { display: inline-block; background: var(--rouge); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 20px; border-radius: var(--rayon); border: 2px solid var(--rouge); white-space: nowrap; }
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.btn-creux { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-creux:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lien { color: var(--rouge); font-weight: 700; text-decoration: none; }
.lien:hover { text-decoration: underline; }

/* Bandeau d'annonce (réglable dans l'interface) */
.annonce { background: var(--moutarde); color: var(--encre); text-align: center; font-weight: 600; font-size: 14px; padding: 9px var(--gouttiere); }
.annonce a { text-decoration: underline; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px var(--gouttiere); background: rgba(20,16,15,.96); color: #fff; backdrop-filter: blur(6px); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.logo img { width: 48px; height: 48px; }
.logo span { font-family: var(--titre); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase; line-height: 1; }
.logo small { display: block; font-size: 11px; letter-spacing: .24em; color: var(--moutarde); margin-top: 4px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-large { display: none; }
.menu-tel summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.menu-tel summary::-webkit-details-marker { display: none; }
.menu-tel summary span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.menu-tel ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--nuit); border-top: 1px solid var(--filet-n); padding: 8px var(--gouttiere) 18px; }
.menu-tel li a { display: block; padding: 13px 0; border-bottom: 1px solid var(--filet-n); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { color: var(--moutarde); }
.btn-reserver { display: none; }

/* Ouverture */
.hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; color: #fff; background: var(--nuit); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,9,8,.95) 12%, rgba(12,9,8,.25) 58%, rgba(12,9,8,.45)); }
.hero-texte { position: relative; z-index: 2; width: 100%; max-width: 1140px; margin: 0 auto; padding: 120px var(--gouttiere) 40px; }
.hero .oeil { color: var(--moutarde); }
.hero h1 { font-size: clamp(34px, 8.6vw, 64px); font-weight: 700; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; }
.hero h1 .kw { display: block; font-family: var(--texte); font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--clair-n); margin-top: 16px; line-height: 1.4; }
.hero-sans-photo h1 { font-size: clamp(30px, 7vw, 52px); }
.hero-sous { max-width: 600px; margin-top: 16px; font-size: 17px; color: #EFE5DD; }
.note { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 14px; }
.note b { color: var(--moutarde); font-size: 16px; }
.etoiles { display: inline-flex; gap: 2px; vertical-align: -2px; }
.etoiles svg { width: 15px; height: 15px; fill: var(--moutarde); }

/* Bandeau de chiffres, écrit en texte */
.chiffres { background: var(--bordeaux); color: #F6E9DF; }
.chiffres ul { list-style: none; margin: 0 auto; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; }
.chiffres b { font-family: var(--titre); color: var(--moutarde); font-size: 17px; }

/* Sections */
.bloc { padding-block: 64px; }
.fond-clair { background: var(--papier); }
.fond-sombre { background: var(--nuit2); color: #EDE3DB; }
.fond-sombre h2 { color: #fff; }
.fond-sombre .oeil { color: var(--moutarde); }
.fond-sombre .lien { color: var(--moutarde); }
.bloc h2 { margin-bottom: 18px; }
.intro { max-width: 720px; margin-bottom: 30px; font-size: 17px; }
.prose { max-width: 680px; }
.avec-photo .w { display: grid; gap: 28px; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }

/* Trois familles d'épreuves */
.trio { display: grid; gap: 16px; }
.carte-famille { background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
.carte-famille img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte-texte { display: block; padding: 18px 18px 20px; }
.carte-texte h3, .carte-texte .h3 { margin-bottom: 8px; color: var(--rouge); }
.carte-famille p { margin: 0; }

/* Cartes des occasions */
.grille-cartes { display: grid; gap: 14px; }
.carte { display: grid; grid-template-columns: 112px 1fr; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--encre); }
.carte img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }
.carte .carte-texte { padding: 14px 14px 16px; }
.carte .h3 { font-size: 18px; margin-bottom: 6px; color: var(--encre); }
.carte-desc { display: block; font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; color: var(--gris); }
.carte:hover { border-color: var(--rouge); }
.carte .lien { font-size: 14px; }

/* Liste à coches */
.coches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.coches li { position: relative; padding-left: 30px; }
.coches li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fond-sombre .coches li::before { background-color: var(--moutarde); }

/* Étapes */
.etapes { margin: 0; padding: 0; list-style: none; counter-reset: e; display: grid; gap: 14px; max-width: 760px; }
.etapes li { counter-increment: e; position: relative; padding-left: 50px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--rouge); color: var(--rouge); font-family: var(--titre); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Vidéo */
.cadre-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: #000; }
.cadre-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lancer { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-lancer img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.video-lancer span { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--rouge); box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.video-lancer span::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-lancer:hover span { background: var(--rouge-fonce); }
.legende { margin-top: 12px; color: var(--clair-n); font-size: 14px; }
.fond-clair .legende { color: var(--gris); }
.bloc-video + .bloc-liste.fond-sombre { padding-top: 8px; }

/* Avis */
.score { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--gris); font-size: 14px; }
.score-n { font-family: var(--titre); font-size: 48px; font-weight: 700; color: var(--encre); line-height: 1; }
.liste-avis { display: grid; gap: 14px; }
.avis { margin: 0; background: var(--carte); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 20px; }
.avis blockquote { margin: 10px 0 12px; font-size: 16px; }
.avis figcaption { font-weight: 700; font-size: 14px; color: var(--gris); }

/* Questions */
.faq { max-width: 820px; border-top: 1px solid var(--filet); }
.faq details { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 28px; color: var(--rouge); font-family: var(--titre); }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { font-family: var(--texte); font-size: 17px; font-weight: 700; line-height: 1.4; }
.faq .prose { padding: 0 0 18px; }
.fond-sombre .faq, .fond-sombre .faq details { border-color: var(--filet-n); }

/* Venir */
.venir { display: grid; gap: 22px; }
.venir img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.venir address { font-style: normal; line-height: 1.8; }
.venir .tel { font-family: var(--titre); font-size: 24px; font-weight: 700; color: var(--rouge); text-decoration: none; }
.venir .petit { display: block; margin-top: 10px; color: var(--gris); font-size: 14px; line-height: 1.55; }

/* Appel final */
.bloc-final { background: var(--rouge); color: #fff; text-align: left; }
.bloc-final h2 { color: #fff; }
.bloc-final .prose { max-width: 640px; }
.bloc-final .btn { background: #fff; color: var(--rouge); border-color: #fff; }
.bloc-final .btn-creux { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* Pied de page */
.pied { background: var(--nuit); color: var(--clair-n); padding-top: 48px; font-size: 15px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--moutarde); }
.pied-grille { display: grid; gap: 30px; }
.pied-lieu img { width: 72px; height: 72px; margin-bottom: 12px; }
.pied-titre { font-family: var(--titre); color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied-petit { font-size: 14px; color: #A89A91; }
.pied-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 22px; margin-top: 34px; border-top: 1px solid var(--filet-n); font-size: 13px; color: #A89A91; }

/* Barre d'appel sur téléphone */
.barre-tel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(20,16,15,.97); border-top: 1px solid var(--filet-n); }
.barre-tel a { text-align: center; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 8px; border-radius: var(--rayon); color: #fff; border: 2px solid rgba(255,255,255,.5); }
.barre-tel .plein { background: var(--rouge); border-color: var(--rouge); }

/* Tablette et plus */
@media (min-width: 720px) {
  :root { --gouttiere: 28px; }
  .bloc { padding-block: 84px; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .grille-cartes { grid-template-columns: repeat(2, 1fr); }
  .liste-avis { grid-template-columns: repeat(3, 1fr); }
  .pied-grille { grid-template-columns: 1.3fr 1fr 1fr; }
  .avec-photo .w { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .avec-photo .photo img { aspect-ratio: 4 / 5; }
  .venir { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
}
@media (min-width: 1080px) {
  body { padding-bottom: 0; }
  .barre-tel { display: none; }
  .btn-reserver { display: inline-block; padding: 11px 18px; }
  .grille-cartes { grid-template-columns: repeat(4, 1fr); }
  .carte { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .carte img { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .hero { min-height: 86vh; }
}

/* Menu complet à partir de 1 280 px : en dessous, sept entrées ne tiennent plus sur une ligne (mesuré le 30/09) */
.barre-haut { display: none; }
@media (min-width: 1280px) {
  .menu-tel { display: none; }
  .menu-large { display: flex; gap: 20px; }
  .menu-large a { text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--clair-n); }
  .menu-large a:hover { color: var(--moutarde); }
  .barre-haut { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 7px var(--gouttiere); background: var(--nuit); color: #E5D9CF; font-size: 13px; }
  .barre-haut ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
  .barre-haut a { color: #fff; font-weight: 700; text-decoration: none; }
  .barre-haut a:hover { color: var(--moutarde); }
  /* Liste déroulante (style « sous-menu ») : s'ouvre au survol et au clavier */
  .a-sous { position: relative; }
  .a-sous > a i { display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
  .menu .sous-menu { position: absolute; left: -14px; top: 100%; min-width: 270px; padding: 22px 0 10px; display: none; white-space: nowrap; }
  .sous-menu::before { content: ""; position: absolute; inset: 8px 0 0; background: var(--nuit); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.25); z-index: -1; }
  .a-sous:hover .sous-menu, .a-sous:focus-within .sous-menu { display: block; }
  .sous-menu a { display: block; padding: 9px 16px; text-transform: none; letter-spacing: 0; font-size: 14px; color: #fff; }
}

/* ——— Variante B · « Carnet de bord » : tout sur papier, ouverture en deux colonnes ——— */

























/* ——— Variante C · « La cale » : tout en sombre, photos plein cadre ——— */

































@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
