/* Site de Morena Campani — papier chaud, encre, terre cuite */
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Karla"; src: url(/fonts/karla-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url(/fonts/karla-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papier: #f7f2ea;
  --papier-fonce: #ede4d6;
  --encre: #1f1b17;
  --encre-douce: #5b524a;
  --terre: #a8492a;
  --terre-fonce: #7f3319;
  --trait: #d9cdbb;
  --titre: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --texte: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 1180px;
  --lecture: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.7 var(--texte); }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--terre); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terre-fonce); }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--titre); font-weight: 600; line-height: 1.12; letter-spacing: .005em; margin: 1.6em 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-top: 0; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.65rem; }
h4, h5, h6 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--encre); color: var(--papier); padding: .5rem 1rem; z-index: 99; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.entete__barre { max-width: var(--large); margin: 0 auto; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--titre); font-size: 1.75rem; font-weight: 600; color: var(--encre); text-decoration: none; line-height: 1; }
.logo span { display: block; font-family: var(--texte); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--encre-douce); margin-top: .35rem; font-weight: 400; }
.menu-bouton { display: none; font: 700 .8rem var(--texte); letter-spacing: .14em; text-transform: uppercase; background: none; border: 1px solid var(--encre); color: var(--encre); padding: .55rem .9rem; border-radius: 999px; cursor: pointer; }
.nav { max-width: var(--large); margin: 0 auto; padding: 0 1.25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.6rem; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: .55rem 0 .8rem; color: var(--encre); text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.nav > ul > li.actif > a, .nav > ul > li > a:hover { border-bottom-color: var(--terre); }
.sous-menu { list-style: none; margin: 0; padding: .6rem 0; position: absolute; left: -1rem; top: 100%; min-width: 15rem; background: var(--papier); border: 1px solid var(--trait); box-shadow: 0 18px 40px -20px rgba(31, 27, 23, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.a-sous-menu:hover .sous-menu, .a-sous-menu:focus-within .sous-menu { opacity: 1; visibility: visible; transform: none; }
.sous-menu a { padding: .45rem 1rem; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .97rem; border: 0; }
.sous-menu a:hover, .sous-menu a[aria-current] { background: var(--papier-fonce); color: var(--terre-fonce); }

@media (max-width: 900px) {
  .menu-bouton { display: inline-block; }
  .nav { display: none; padding-bottom: 1rem; max-height: calc(100vh - 5rem); overflow-y: auto; }
  .nav.ouvert { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-top: 1px solid var(--trait); }
  .nav a { padding: .8rem 0; }
  .sous-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem .9rem; background: none; min-width: 0; }
  .sous-menu a { padding: .35rem 0; }
}

/* Pages */
main { min-height: 60vh; }
.page { max-width: var(--large); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) 1.25rem 4rem; }
.page__entete { max-width: var(--lecture); margin: 0 auto 2.2rem; }
.fil { margin: 0 0 .6rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.fil a { text-decoration: none; }
.fil a::before { content: "← "; }
.texte { max-width: var(--lecture); margin: 0 auto; }
.texte img { margin: 2.2rem auto; border-radius: 2px; box-shadow: 0 22px 45px -28px rgba(31, 27, 23, .55); }
.texte a:has(> img) { display: block; }
.texte p:has(> img) { margin: 0; }
.texte blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--terre); font-family: var(--titre); font-style: italic; font-size: 1.45rem; line-height: 1.4; }
.texte ul { padding-left: 1.2rem; }
.texte hr { border: 0; border-top: 1px solid var(--trait); margin: 2.5rem 0; }

/* Accueil */
.page--accueil { padding-top: 0; }
.accueil-hero { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--trait); margin-bottom: 3rem; }
.accueil-hero__img { width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.accueil-hero h1 { font-size: clamp(3rem, 8vw, 6.2rem); line-height: .95; margin: 0 0 1rem; }
.accroche { font-family: var(--titre); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--terre); margin: 0; }
@media (max-width: 760px) { .accueil-hero { grid-template-columns: 1fr; } .accueil-hero__texte { order: -1; } }

/* Galerie */
.galerie { columns: 3 260px; column-gap: 1.25rem; margin: 3rem 0 0; }
.galerie__item { break-inside: avoid; margin: 0 0 1.25rem; background: #fff; padding: .6rem .6rem .2rem; box-shadow: 0 1px 0 var(--trait), 0 14px 30px -24px rgba(31, 27, 23, .5); }
.galerie__item a { color: inherit; text-decoration: none; display: block; }
.galerie__item img { width: 100%; transition: transform .35s ease, opacity .2s; }
.galerie__item a:hover img { opacity: .9; }
.galerie__item figcaption { font-size: .92rem; line-height: 1.5; padding: .7rem .2rem .6rem; color: var(--encre-douce); }
.galerie__item figcaption strong { display: block; font-family: var(--titre); font-size: 1.3rem; color: var(--encre); font-weight: 600; }
.galerie__item a:hover figcaption strong { color: var(--terre); }

/* Cartes de rubrique */
.cartes { margin-top: 4rem; border-top: 1px solid var(--trait); padding-top: 2rem; }
.cartes h2 { font-size: 1rem; font-family: var(--texte); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 1.5rem; color: var(--encre-douce); }
.cartes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem 1.25rem; }
.carte a { text-decoration: none; color: var(--encre); display: block; }
.carte img, .carte__vide { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--papier-fonce); display: block; }
.carte__titre { display: block; font-family: var(--titre); font-size: 1.45rem; font-weight: 600; line-height: 1.15; margin-top: .65rem; }
.carte a:hover .carte__titre { color: var(--terre); }
.carte a:hover img { opacity: .9; }

/* Vidéos */
.videos { max-width: 900px; margin: 3rem auto 0; display: grid; gap: 1.5rem; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

/* Autres pages de la rubrique */
.suite { max-width: var(--lecture); margin: 4rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--trait); font-size: .95rem; }
.suite p { margin-bottom: .4rem; color: var(--encre-douce); }
.suite ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* Pied de page */
.pied { background: var(--encre); color: #d8cfc3; margin-top: 3rem; }
.pied a { color: #f1e6d6; }
.pied__grille { max-width: var(--large); margin: 0 auto; padding: 3rem 1.25rem 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; font-size: .95rem; }
.pied__nom { font-family: var(--titre); font-size: 1.8rem; color: #fff; margin-bottom: .5rem; }
.pied__titre { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #a3988b; margin-bottom: .5rem; }
.pied__bas { max-width: var(--large); margin: 0 auto; padding: 1rem 1.25rem 2rem; font-size: .8rem; color: #8d8276; border-top: 1px solid #3a332d; }
@media (max-width: 760px) { .pied__grille { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.galerie__titre { margin: 3.5rem 0 0; }
.galerie__titre + .galerie { margin-top: 1.5rem; }
@media (max-width: 760px) { .accueil-hero__img { aspect-ratio: 1; max-height: 70vh; } }
