/* webokase.fr — direction artistique « Carnet de bal »
   Porcelaine rosée, prune profonde, or champagne en filets, céladon pour les catégories.
   Bodoni Moda (titres, grandes tailles uniquement) + Newsreader (texte). */

@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url('/fonts/bodoni-moda-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --porcelaine: #F6EEF0;
  --poudre: #EBDDE2;
  --prune: #4A1F3D;
  --prune-vif: #6E2F5B;
  --or: #C9A96E;
  --or-fonce: #8A6A2E;
  --celadon: #9DB8A8;
  --celadon-texte: #46695A;
  --encre: #2A2230;
  --encre-douce: #5A4E5E;
  --blanc: #FFFBFC;
  --titre: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --texte: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mesure: 40rem;
  --large: 74rem;
  --filet: 1px solid var(--or);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--porcelaine); color: var(--encre); font-family: var(--texte); font-size: 1.1875rem; line-height: 1.65; font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--prune); text-decoration-color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--prune-vif); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--or-fonce); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; color: var(--prune); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-family: var(--texte); font-weight: 600; font-size: 1.15rem; color: var(--prune); margin: 1.6em 0 0.4em; }
p { margin: 0 0 1.1em; }

.conteneur { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.lien-evitement { position: absolute; left: -999px; top: 0; background: var(--prune); color: var(--blanc); padding: 0.6rem 1rem; z-index: 10; }
.lien-evitement:focus { left: 1rem; }

/* Wrappers d'images à ratio fixe (anti-distorsion) */
.img-hero { aspect-ratio: 16 / 9; overflow: hidden; }
.img-card, .img-body { aspect-ratio: 3 / 2; overflow: hidden; }
.img-portrait { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* En-tête */
.entete { background: var(--porcelaine); border-bottom: var(--filet); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.marque { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--titre); font-size: 1.65rem; color: var(--prune); text-decoration: none; }
.marque__picto { color: var(--or-fonce); display: inline-flex; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
.nav a { color: var(--encre); text-decoration: none; font-size: 1.02rem; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--prune); border-bottom-color: var(--or); }
.menu-mobile { display: none; }
.menu-mobile summary { cursor: pointer; list-style: none; font-size: 1.05rem; color: var(--prune); border: 1px solid var(--or); padding: 0.35rem 0.9rem; }
.menu-mobile summary::-webkit-details-marker { display: none; }
@media (max-width: 62rem) {
  .nav--large { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile .nav { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; flex-direction: column; gap: 0; background: var(--blanc); border: var(--filet); padding: 0.75rem 1.25rem; min-width: 15rem; }
  .menu-mobile .nav a { display: block; padding: 0.45rem 0; }
}

/* Hero : bandeau bord à bord, titre dessous */
.hero .img-hero { width: 100%; max-height: min(75vh, 44vw); }
.hero__texte { padding: 2.25rem 0 1rem; max-width: 52rem; margin-left: max(1.25rem, (100% - var(--large)) / 2); margin-right: auto; width: auto; }
.hero__texte h1 { margin-bottom: 0.45em; }
.chapeau { font-size: 1.3rem; line-height: 1.55; color: var(--encre-douce); max-width: var(--mesure); }
.hero--ouverture .img-hero img { object-position: center 38%; }
.hero__credit { font-size: 0.85rem; color: var(--encre-douce); }
.hero__credit a { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .hero--ouverture .img-hero img { animation: ouverture 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes ouverture { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--poudre); }
.section--prune { background: var(--prune); color: var(--porcelaine); }
.section--prune h2, .section--prune h3 { color: var(--blanc); }
.section--prune a { color: var(--blanc); }
.section__entete { max-width: var(--mesure); margin-bottom: 2rem; }
.section__entete p { color: var(--encre-douce); }
.section--prune .section__entete p { color: var(--poudre); }

/* Signature : les cinq silhouettes, comme une planche de patron */
.planche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: var(--filet); border-bottom: var(--filet); }
.planche li + li { border-left: 1px solid rgba(201, 169, 110, 0.55); }
.planche a { display: grid; justify-items: center; text-align: center; gap: 0.35rem; padding: 1.75rem 0.9rem 1.5rem; color: var(--encre); text-decoration: none; height: 100%; }
.planche .silhouette { color: var(--prune); width: 4.5rem; height: auto; transition: color 0.2s; }
.planche a:hover .silhouette { color: var(--or-fonce); }
.planche__nom { font-family: var(--titre); font-style: italic; font-size: 1.45rem; color: var(--prune); }
.planche__texte { font-size: 0.98rem; line-height: 1.45; color: var(--encre-douce); }
@media (max-width: 48rem) {
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planche li + li { border-left: 0; }
  .planche li { border-bottom: 1px solid rgba(201, 169, 110, 0.55); }
  .planche li:nth-child(even) { border-left: 1px solid rgba(201, 169, 110, 0.55); }
}

/* Rubriques (accueil) : grille asymétrique de salles */
.salles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
.salle { grid-column: span 4; color: var(--encre); text-decoration: none; display: block; }
.salle--grande { grid-column: span 8; grid-row: span 2; }
.salle__titre { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--titre); font-size: 1.5rem; color: var(--prune); margin: 0.85rem 0 0.2rem; }
.salle--grande .salle__titre { font-size: 2rem; }
.salle__titre .silhouette { color: var(--celadon-texte); width: 1.1rem; height: auto; flex: none; align-self: center; }
.salle p { color: var(--encre-douce); font-size: 1.02rem; margin: 0; }
.salle:hover .salle__titre { text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.salle .img-card { border: 1px solid rgba(201, 169, 110, 0.6); padding: 0.4rem; background: var(--blanc); }
@media (max-width: 62rem) { .salle, .salle--grande { grid-column: span 6; grid-row: auto; } }
@media (max-width: 40rem) { .salle, .salle--grande { grid-column: span 12; } }

/* Cartes d'articles : pas de boîte, un filet or au-dessus */
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 2rem; }
@media (max-width: 62rem) { .cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .cartes { grid-template-columns: 1fr; } }
.carte__lien { display: block; color: var(--encre); text-decoration: none; }
.carte__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin: 0.9rem 0 0.35rem; padding-top: 0.6rem; border-top: var(--filet); font-size: 0.95rem; }
.carte__picto { color: var(--celadon-texte); display: inline-flex; }
.carte__categorie { color: var(--celadon-texte); font-weight: 600; }
.carte__date { color: var(--encre-douce); }
.carte__titre { font-size: 1.4rem; margin: 0 0 0.4rem; }
.carte__lien:hover .carte__titre { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.carte__resume { color: var(--encre-douce); font-size: 1.02rem; margin: 0; }
.carte[hidden] { display: none; }

/* Encart « carnet de bal » : un carton de danse avec son cordon */
.carnet { position: relative; background: var(--blanc); border: 1px solid var(--or); outline: 1px solid var(--or); outline-offset: -7px; padding: 2rem 1.9rem 1.5rem 2.4rem; margin: 2.5rem 0; max-width: 30rem; }
.carnet__cordon { position: absolute; top: -1.6rem; left: 0.6rem; width: 1.6rem; height: auto; color: var(--or-fonce); }
.carnet__titre { font-family: var(--titre); font-style: italic; font-size: 1.6rem; color: var(--prune); margin: 0 0 0.75rem; }
.carnet__lignes { margin: 0; }
.carnet__ligne { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px dotted var(--or-fonce); }
.carnet__ligne:last-child { border-bottom: 0; }
.carnet dt { font-weight: 600; color: var(--prune); }
.carnet dd { margin: 0; }
.carnet__note { font-size: 0.88rem; color: var(--encre-douce); margin: 0.9rem 0 0; }
@media (max-width: 30rem) { .carnet__ligne { grid-template-columns: 1fr; gap: 0; } }

/* Accueil : texte et carnet côte à côte */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 2rem 4rem; align-items: start; }
.duo .carnet { margin-top: 0.5rem; }
@media (max-width: 62rem) { .duo { grid-template-columns: 1fr; } }

/* Texte long */
.section--texte { padding-top: 1.5rem; }
.prose { max-width: var(--mesure); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--or-fonce); }
.prose blockquote { margin: 1.8em 0; padding: 0.2em 0 0.2em 1.4em; border-left: 2px solid var(--or); font-style: italic; color: var(--encre-douce); }
.prose p > img, .prose > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; margin: 2.2em 0 0.5em; }
.prose p:has(> img) + p > em:only-child, .prose p > img + em { display: block; font-size: 0.92rem; color: var(--encre-douce); font-style: normal; line-height: 1.5; }
.rubrique-articles { margin-top: 3.5rem; }
.prose strong { font-weight: 600; color: var(--prune); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--poudre); }
.prose th { font-weight: 600; color: var(--prune); border-bottom: var(--filet); }
.texte-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.95rem; color: var(--encre-douce); max-width: var(--mesure); }
.texte-meta .carte__categorie { color: var(--celadon-texte); }

.figure { margin: 2.2em 0; }
.figure figcaption { font-size: 0.92rem; color: var(--encre-douce); margin-top: 0.55rem; line-height: 1.5; }
.credit { display: block; font-size: 0.85rem; }
.credits { font-size: 0.85rem; color: var(--encre-douce); max-width: var(--mesure); }

.ariane { font-size: 0.92rem; color: var(--encre-douce); padding-top: 0.5rem; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; padding: 0; }
.ariane li + li::before { content: '›'; margin-right: 0.3rem; color: var(--or-fonce); }

.toc { max-width: var(--mesure); border-top: var(--filet); border-bottom: var(--filet); padding: 1rem 0; margin: 1.5rem 0 2rem; }
.toc__titre { font-family: var(--titre); font-style: italic; font-size: 1.3rem; color: var(--prune); margin: 0 0 0.4rem; }
.toc__liste { margin: 0; padding-left: 1.3rem; }
.toc__liste li::marker { color: var(--or-fonce); font-variant-numeric: oldstyle-nums; }

.faq { margin-top: 3rem; }
.faq details { border-bottom: 1px solid var(--poudre); padding: 0.9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--prune); }
.faq details[open] summary { margin-bottom: 0.5rem; }

.liees { max-width: var(--mesure); margin-top: 3rem; padding-top: 1.2rem; border-top: var(--filet); }
.liees h2 { font-size: 1.6rem; }

/* Boutons et filtre */
.bouton { display: inline-block; background: var(--prune); color: var(--blanc); text-decoration: none; padding: 0.7rem 1.4rem; border: 1px solid var(--prune); font-size: 1.02rem; }
.bouton:hover { background: var(--porcelaine); color: var(--prune); }
.section--prune .bouton { background: var(--porcelaine); color: var(--prune); border-color: var(--porcelaine); }
.filtre { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.25rem; }
.filtre a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--encre); border: 1px solid rgba(201, 169, 110, 0.8); padding: 0.35rem 0.85rem; font-size: 0.98rem; background: var(--blanc); }
.filtre a .silhouette { color: var(--celadon-texte); }
.filtre a:hover { border-color: var(--prune); }
.filtre a[aria-current='page'] { background: var(--prune); color: var(--blanc); border-color: var(--prune); }
.filtre a[aria-current='page'] .silhouette { color: var(--or); }
.vide { color: var(--encre-douce); font-style: italic; }

/* Formulaire */
.formulaire { max-width: var(--mesure); display: grid; gap: 1.1rem; }
.champ { display: grid; gap: 0.3rem; }
.champ label { font-weight: 600; color: var(--prune); }
.champ input, .champ textarea, .champ select { font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--or-fonce); background: var(--blanc); color: var(--encre); }
.champ__aide { font-size: 0.9rem; color: var(--encre-douce); }
.champ--case { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.pot-de-miel { position: absolute; left: -9999px; }

/* Pages simples, plan, portes */
.page-simple { padding: 3rem 0; }
.titre-page { margin-top: 0; }
.portes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.porte { display: block; height: 100%; padding: 1.1rem 1.2rem; background: var(--blanc); border: 1px solid rgba(201, 169, 110, 0.7); color: var(--encre); text-decoration: none; }
.porte__titre { display: block; font-family: var(--titre); font-size: 1.35rem; color: var(--prune); }
.porte__texte { display: block; color: var(--encre-douce); font-size: 1rem; }
.porte:hover { border-color: var(--prune); }
.plan ul { padding-left: 1.2rem; }

/* Pied de page */
.pied { background: var(--prune); color: var(--poudre); padding: 3rem 0 2rem; margin-top: 2rem; font-size: 1rem; }
.pied__grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.pied__marque { font-family: var(--titre); font-size: 1.9rem; color: var(--blanc); margin: 0 0 0.5rem; }
.pied h2 { font-family: var(--texte); font-weight: 600; font-size: 1.05rem; color: var(--or); margin: 0 0 0.6rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.3rem; }
.pied a { color: var(--porcelaine); text-decoration-color: rgba(201, 169, 110, 0.6); }
.pied a:hover { color: var(--blanc); }
.pied__note { grid-column: 1 / -1; border-top: 1px solid rgba(201, 169, 110, 0.4); padding-top: 1.2rem; margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--poudre); }
@media (max-width: 48rem) { .pied__grille { grid-template-columns: 1fr; } }
