/* La Grande Cousinade · V1 · une seule feuille de style, mobile d'abord. */

@font-face {
  font-family: "Cousinade Display";
  src: url("../fonts/CousinadeDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Work Sans (licence OFL), fichier variable latin : couvre 400 et 600. */
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #f4e7cf;
  --creme-fonce: #ecdcbd;   /* crème assombri, fonds de cartes (texte encre : contraste 10:1) */
  --rouge: #8e1b1b;
  --encre: #1d2b4a;
  --ambre: #d99a2b;         /* décor seulement : filets, étoiles. Jamais pour du texte. */
  --titre: "Cousinade Display", Georgia, serif;
  --texte: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gouttiere: 16px;
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
  padding-bottom: 84px; /* place du bouton fixe mobile */
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;      /* une seule graisse : jamais de faux gras */
  font-synthesis: none;
  line-height: 1.2;
  color: var(--rouge);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(34px, 9vw, 64px); }
h2 { font-size: clamp(26px, 6.4vw, 38px); }
h3 { font-size: clamp(22px, 5vw, 28px); }
p { margin: 0 0 1em; }
a { color: var(--rouge); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.evitement {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--encre); color: var(--creme); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.evitement:focus { top: 8px; outline-color: var(--ambre); }

.enveloppe { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--gouttiere); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  background: var(--rouge); color: var(--creme);
  font-family: var(--texte); font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; border-radius: 999px; border: 2px solid var(--rouge);
  transition: background-color .15s, border-color .15s, color .15s;
}
.bouton:hover, .bouton:focus-visible { background: var(--encre); border-color: var(--encre); color: var(--creme); }
.bouton-contour { background: transparent; color: var(--rouge); }
.bouton-creme { background: var(--creme); color: var(--rouge); border-color: var(--creme); }
.bouton-creme:hover, .bouton-creme:focus-visible { background: var(--encre); border-color: var(--creme); color: var(--creme); }
.bouton-grand { min-height: 56px; font-size: 19px; padding: 14px 34px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bloc-informes .boutons { justify-content: center; }

/* ---------- En-tête ---------- */
.entete { border-bottom: 3px solid var(--encre); background: var(--creme); position: relative; z-index: 20; }
.entete::after { /* filet ambre décoratif */
  content: ""; display: block; height: 3px; background: var(--ambre); margin-top: 3px;
}
.entete-in {
  max-width: 1100px; margin: 0 auto; padding: 10px var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.entete-logo { display: block; flex: 0 0 auto; border-radius: 6px; }
.entete-logo img { width: 128px; height: auto; }
.nav-large { display: none; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  min-height: 48px; padding: 10px 22px; display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--encre); border-radius: 999px; font-weight: 600; font-size: 17px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::before { /* trois traits */
  content: ""; width: 18px; height: 12px;
  background: linear-gradient(var(--encre) 0 2px, transparent 2px 5px, var(--encre) 5px 7px, transparent 7px 10px, var(--encre) 10px 12px);
}
.nav-mobile[open] summary { background: var(--encre); color: var(--creme); }
.nav-mobile[open] summary::before {
  background: linear-gradient(var(--creme) 0 2px, transparent 2px 5px, var(--creme) 5px 7px, transparent 7px 10px, var(--creme) 10px 12px);
}
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--creme); border-bottom: 3px solid var(--encre);
  padding: 8px var(--gouttiere) 16px; box-shadow: 0 12px 24px rgba(29, 43, 74, .15);
}
.nav-mobile ul, .nav-large ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li a {
  display: flex; align-items: center; min-height: 52px; padding: 4px 6px;
  font-family: var(--titre); font-size: 26px; color: var(--encre); text-decoration: none;
  border-bottom: 1px solid rgba(29, 43, 74, .18);
}
.nav-mobile li:last-child a { border-bottom: 0; }
.nav-mobile a[aria-current="page"], .nav-large a[aria-current="page"] { color: var(--rouge); }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: var(--creme); margin-top: 56px; }
.pied-in { max-width: 1100px; margin: 0 auto; padding: 40px var(--gouttiere) 32px; }
.pied a { color: var(--creme); }
.pied a:hover { color: var(--ambre); }
.pied :focus-visible { outline-color: var(--creme); }
.pied-logo { width: 180px; margin-bottom: 24px; }
.pied-liens, .pied-reseaux { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.pied-liens a, .pied-reseaux a { display: inline-flex; align-items: center; min-height: 44px; }
.pied-reseaux a { font-weight: 600; }
.pied-copy { font-size: 16px; margin-bottom: 8px; }
.sante {
  margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(244, 231, 207, .35);
  font-size: 16px; font-weight: 600;
}

/* ---------- Bouton fixe mobile ---------- */
.cta-fixe {
  position: fixed; left: var(--gouttiere); right: var(--gouttiere); bottom: 12px; z-index: 30;
  display: flex; align-items: center; justify-content: center; min-height: 54px;
  background: var(--rouge); color: var(--creme); font-weight: 600; font-size: 18px;
  text-decoration: none; border-radius: 999px; border: 2px solid var(--creme);
  box-shadow: 0 6px 18px rgba(29, 43, 74, .28);
}
.cta-fixe:hover, .cta-fixe:focus-visible { background: var(--encre); color: var(--creme); }

/* ---------- Accueil ---------- */
/* Bandeau plein écran : décor illustré, logo crème au centre, accroche, bouton. Un seul logo à l'écran. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--rouge); color: var(--creme); text-align: center;
  min-height: 85vh; min-height: min(85svh, 760px);
  display: flex; align-items: center; justify-content: center;
  padding: 150px 0 80px;
}
.hero-decor { position: absolute; inset: 0; z-index: -1; }
.hero-decor img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-in { position: relative; }
.hero-titre { margin: 0 auto 18px; max-width: 560px; }
.hero-logo { width: 100%; height: auto; margin: 0 auto; }
.hero-sous { display: block; margin-top: 14px; font-size: clamp(24px, 6.5vw, 40px); color: var(--creme); }
.accroche {
  font-family: var(--titre); color: var(--rouge); line-height: 1.25;
  font-size: clamp(25px, 6.4vw, 36px); margin-bottom: 18px;
}
.chapeau { font-size: 19px; line-height: 1.6; max-width: 36em; margin-left: auto; margin-right: auto; }
.page-tete .chapeau { margin-left: 0; }
.hero .accroche { color: var(--creme); }
.hero-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 0; }
.hero :focus-visible { outline-color: var(--creme); }
.bouton-contour-creme { background: transparent; color: var(--creme); border-color: var(--creme); }
.bouton-contour-creme:hover, .bouton-contour-creme:focus-visible { background: var(--encre); color: var(--creme); border-color: var(--creme); }
.intro { text-align: center; padding-top: 40px; }

/* En-tête de l'accueil : posé sur le bandeau, transparent, sans logo. */
.page-accueil .entete { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; transition: background-color .2s, border-color .2s; }
.page-accueil .entete::after { visibility: hidden; }
.page-accueil .entete-logo { visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.page-accueil .nav-mobile summary { color: var(--creme); border-color: var(--creme); }
.page-accueil .nav-mobile summary::before { background: linear-gradient(var(--creme) 0 2px, transparent 2px 5px, var(--creme) 5px 7px, transparent 7px 10px, var(--creme) 10px 12px); }
.page-accueil .nav-mobile[open] summary { background: var(--creme); color: var(--rouge); }
.page-accueil .nav-mobile[open] summary::before { background: linear-gradient(var(--rouge) 0 2px, transparent 2px 5px, var(--rouge) 5px 7px, transparent 7px 10px, var(--rouge) 10px 12px); }
.page-accueil .entete :focus-visible { outline-color: var(--creme); }
/* Avec JavaScript : l'en-tête reste en haut ; une fois le bandeau dépassé, il redevient crème avec le petit logo. */
.js-entete .page-accueil .entete { position: fixed; }
.page-accueil.bandeau-depasse .entete { background: var(--creme); border-bottom-color: var(--encre); }
.page-accueil.bandeau-depasse .entete::after { visibility: visible; }
.page-accueil.bandeau-depasse .entete-logo { visibility: visible; opacity: 1; }
.page-accueil.bandeau-depasse .nav-mobile summary { color: var(--encre); border-color: var(--encre); }
.page-accueil.bandeau-depasse .nav-mobile summary::before { background: linear-gradient(var(--encre) 0 2px, transparent 2px 5px, var(--encre) 5px 7px, transparent 7px 10px, var(--encre) 10px 12px); }
.page-accueil.bandeau-depasse .nav-mobile[open] summary { background: var(--encre); color: var(--creme); }
.page-accueil.bandeau-depasse .nav-mobile[open] summary::before { background: linear-gradient(var(--creme) 0 2px, transparent 2px 5px, var(--creme) 5px 7px, transparent 7px 10px, var(--creme) 10px 12px); }
.page-accueil.bandeau-depasse .entete :focus-visible { outline-color: var(--encre); }

.bloc { margin-top: 48px; }
.bloc > h2 { text-align: center; }
.bloc > h2::after, .page-tete h1::after { /* filet ambre droit + étoile */
  content: ""; display: block; width: 96px; height: 14px; margin: 12px auto 0;
  background:
    radial-gradient(circle, var(--ambre) 0 5px, transparent 5.5px) center / 14px 14px no-repeat,
    linear-gradient(var(--ambre), var(--ambre)) center / 100% 3px no-repeat;
}
.page-tete h1::after { margin-left: 0; }

.cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.carte {
  background: var(--creme-fonce); border: 2px solid var(--encre); border-radius: var(--rayon);
  padding: 22px 20px 6px; text-align: center;
}
.carte .picto { width: 72px; height: 72px; margin: 0 auto 10px; }
.carte h3 { margin-bottom: .35em; }

.essentiel { margin: 0; display: grid; gap: 12px; }
.essentiel div {
  background: var(--creme-fonce); border-left: 6px solid var(--rouge); border-radius: 8px; padding: 12px 16px;
}
.essentiel dt { font-family: var(--titre); color: var(--rouge); font-size: 22px; line-height: 1.2; }
.essentiel dd { margin: 4px 0 0; font-weight: 600; }

.bloc-informes { text-align: center; }

.bandeau { background: var(--rouge); color: var(--creme); margin-top: 56px; text-align: center; }
.bandeau-in { padding-top: 40px; padding-bottom: 32px; }
.bandeau h2 { color: var(--creme); max-width: 22em; margin: 0 auto 20px; }
.bandeau :focus-visible { outline-color: var(--creme); }

/* ---------- Pages intérieures ---------- */
.page { padding-top: 32px; }
.page-tete { max-width: 46rem; margin-bottom: 28px; }
.texte { max-width: 46rem; margin-top: 36px; }
.texte > h2 { padding-top: 4px; }
.encadre {
  background: var(--creme-fonce); border: 2px solid var(--encre); border-radius: var(--rayon);
  padding: 24px 20px 10px; margin-top: 44px;
}
.visuel { margin: 28px 0 0; max-width: 46rem; }
.visuel img { width: 100%; border-radius: var(--rayon); border: 3px solid var(--encre); }
.visuel-carre { max-width: 420px; }
.visuel-petit { max-width: 480px; }

.liste { margin: 0 0 1em; padding-left: 0; list-style: none; }
.liste li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.liste li::before { /* étoile ambre décorative */
  content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px;
  background: var(--ambre);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.liste-pictos li { padding-left: 0; display: flex; align-items: center; gap: 14px; min-height: 44px; }
.liste-pictos li::before { display: none; }
.picto-petit { width: 40px; height: 40px; flex: 0 0 40px; }
.liens-carte { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.liens-carte a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.contacts li { font-size: 19px; }

/* Tarifs : tableau lisible en 5 secondes, en cartes sur téléphone */
.tarifs-cadre { margin: 0 0 20px; }
.tarifs { width: 100%; border-collapse: collapse; }
.tarifs thead { display: none; }
.tarifs tr {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline;
  background: var(--creme-fonce); border: 2px solid var(--encre); border-radius: var(--rayon);
  padding: 14px 16px; margin-bottom: 12px;
}
.tarifs th[scope="row"] { text-align: left; font-weight: 600; font-size: 18px; }
.tarifs .prix { font-family: var(--titre); color: var(--rouge); font-size: 34px; line-height: 1; text-align: right; white-space: nowrap; }
.tarifs td[data-label="Compris"] { grid-column: 1 / -1; font-size: 16px; }
.complet { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--encre); color: var(--creme); font-size: 14px; }
.notes li { font-size: 17px; }

/* FAQ */
.faq { border-top: 2px solid var(--encre); }
.faq-item { border-bottom: 2px solid var(--encre); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  min-height: 56px; padding: 14px 44px 14px 0; display: flex; align-items: center;
  font-weight: 600; font-size: 19px; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; background: var(--rouge); color: var(--creme);
  display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; background: var(--encre); }
.faq-rep { padding: 0 0 8px; }

/* Programme, partenaires (cartes signées seulement) */
.annonces, .partenaires { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.annonce, .partenaire { background: var(--creme-fonce); border: 2px solid var(--encre); border-radius: var(--rayon); padding: 18px 18px 6px; }
.annonce-tete { font-weight: 600; margin-bottom: 4px; }
.cartouche { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 12px; height: 110px; margin-bottom: 12px; }
.cartouche img { max-height: 86px; width: auto; }
.sante-petit { font-size: 16px; font-weight: 600; margin-top: 12px; }

.page-404 { text-align: center; }
.page-404 .page-tete { margin-left: auto; margin-right: auto; }
.page-404 .page-tete h1::after { margin-left: auto; }
.page-404 .chapeau { margin-left: auto; }
.page-404 .visuel { margin-left: auto; margin-right: auto; }

/* ---------- 768 px ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .cta-fixe { display: none; }
  .cartes { grid-template-columns: repeat(3, 1fr); }
  .essentiel { grid-template-columns: repeat(3, 1fr); }
  .annonces, .partenaires { grid-template-columns: repeat(2, 1fr); }
  .encadre { padding: 30px 32px 14px; }
  .tarifs thead { display: table-header-group; }
  .tarifs tr { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .tarifs th, .tarifs td { padding: 14px 16px; border-bottom: 2px solid var(--encre); text-align: left; vertical-align: middle; }
  .tarifs thead th { white-space: nowrap; font-family: var(--texte); font-weight: 600; font-size: 16px; background: var(--encre); color: var(--creme); }
  .tarifs thead th:first-child { border-radius: 10px 0 0 0; }
  .tarifs thead th:last-child { border-radius: 0 10px 0 0; }
  .tarifs tbody tr:nth-child(odd) { background: var(--creme-fonce); }
  .tarifs .prix { text-align: left; font-size: 30px; }
  .tarifs td[data-label="Compris"] { font-size: 17px; }
}

/* ---------- 1100 px ---------- */
@media (min-width: 1100px) {
  .entete-logo img { width: 150px; }
  .nav-mobile { display: none; }
  .nav-large { display: block; }
  .nav-large ul { display: flex; gap: 4px; }
  .nav-large a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px;
    color: var(--encre); text-decoration: none; font-weight: 600; font-size: 17px; border-radius: 999px;
  }
  .nav-large a:hover { background: var(--creme-fonce); color: var(--rouge); }
  .nav-large a[aria-current="page"] { background: var(--rouge); color: var(--creme); }
  .hero { min-height: 88vh; min-height: min(88svh, 900px); padding-top: 170px; }
  .hero-titre { max-width: 760px; }
  .hero-logo { max-width: 500px; }
  .page-accueil .nav-large a { color: var(--creme); }
  .page-accueil .nav-large a:hover { background: rgba(244, 231, 207, .16); color: var(--creme); }
  .page-accueil.bandeau-depasse .nav-large a { color: var(--encre); }
  .page-accueil.bandeau-depasse .nav-large a:hover { background: var(--creme-fonce); color: var(--rouge); }
  .page { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
