/* La Fine Mousse (2012-2026) — reprise de la charte du site lafinemousse.fr (thème « lfm ») */
@font-face { font-family: "LaFineMousse"; src: url(../fonts/stoclet-light.woff) format("woff"); font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --noir: #000;
  --blanc: #fff;
  --gris-clair: #F3F4F5;
  --gris: #888;
  --accent: #0b4a8e;          /* couleur du sous-menu La Fine Mousse */
  --largeur: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body { margin: 0; font-family: "Montserrat", sans-serif; font-weight: 400; color: var(--noir); background: var(--blanc); -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: "LaFineMousse", serif; font-weight: 400; line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
strong { font-weight: 600; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.entete { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--noir); color: var(--blanc); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1400px; }
.entete .logo img { height: 46px; width: auto; }
.entete nav { display: flex; gap: 28px; font-size: 13px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
.entete nav a { text-decoration: none; }
.entete nav a:hover { opacity: .7; }
.entete nav a[aria-current="true"] { font-weight: 700; }

.sous-menu { position: fixed; top: 64px; left: 0; right: 0; z-index: 49; background: var(--accent); }
.sous-menu ul { list-style: none; margin: 0 auto; padding: 0 16px; display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); height: 40px; align-items: center; }
.sous-menu a { color: var(--blanc); text-decoration: none; font-family: "LaFineMousse", serif; font-size: 17px; }
.sous-menu a:hover { opacity: .75; }

/* ---------- Bannière ---------- */
.banniere { position: relative; height: 700px; padding-top: 104px; overflow: hidden; color: var(--blanc); text-align: center;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 12%, rgba(0,0,0,0) 89%), var(--fond) center / cover no-repeat; }
@media (min-width: 768px) { .banniere { background-attachment: fixed; } }
.banniere::before { content: ""; position: absolute; left: 50%; top: 50%; width: 800px; height: 800px; border-radius: 50%; background: var(--noir); opacity: .6; transform: translate(-50%, -45%); }
.banniere .contenu { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px; }
.banniere h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .8em; max-width: 800px; }
.banniere .depuis { margin-top: 1.6rem; letter-spacing: 1.3px; font-size: 14px; }
.banniere .depuis span { display: block; font-style: italic; font-weight: 300; font-size: 1.4rem; }
.trait { position: absolute; left: 50%; width: 2px; background: currentColor; transform: translateX(-50%); }
.banniere .trait { top: 104px; height: 90px; }

.boutons { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.bouton { display: inline-block; min-width: 240px; padding: .45rem 2.2rem; border: 2px solid var(--blanc); background: rgba(0,0,0,.53); color: var(--blanc); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-decoration: none; transition: all .3s; }
.bouton:hover { background: var(--noir); transform: translateY(-3px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }
.bouton.second { background: var(--blanc); color: var(--noir); border-color: var(--noir); }
.bouton.second:hover { background: var(--noir); color: var(--blanc); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 7rem 0 6rem; }
.section.noir { background: var(--noir); color: var(--blanc); }
.section.gris { background: var(--gris-clair); }
.motif::before, .motif::after { content: ""; position: absolute; top: 15%; bottom: 15%; width: 112px; background: url(../img/motif.svg) center / contain repeat-y; opacity: .5; }
.motif::before { left: 0; } .motif::after { right: 0; }
@media (max-width: 767px) { .motif::before, .motif::after { display: none; } }
.centre { text-align: center; }

.presentation { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.presentation img { width: 100%; }
@media (max-width: 767px) { .presentation { grid-template-columns: 1fr; } .presentation img { max-width: 320px; margin: 0 auto; } }

.liste-forte { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 700px; text-align: center; font-size: 1.12rem; }
.liste-forte li { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.liste-forte li:last-child { border-bottom: 0; }

.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 767px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
.galerie.quatre { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767px) { .galerie.quatre { grid-template-columns: repeat(2, 1fr); } }

.icone { width: 60px; height: auto; margin: 0 auto 1.5rem; }

/* section « carte » : photo + cercle noir */
.carte { color: var(--blanc); text-align: center; overflow: hidden; padding: 6rem 16px;
  background: var(--fond) center / cover no-repeat; }
.carte .cercle { position: relative; margin: 0 auto; width: min(760px, 100%); aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.72); display: flex; flex-direction: column; justify-content: center; padding: 10%; }
.carte p { margin: 0 0 1rem; }
@media (max-width: 600px) { .carte .cercle { aspect-ratio: auto; border-radius: 24px; padding: 2.5rem 1.5rem; } }

/* infos / contact */
.reseaux { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 2rem 0 0; }
.reseaux img { height: 42px; width: auto; filter: invert(1); }
.section.noir .reseaux img { filter: none; }
.reseaux a:hover { opacity: .7; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 767px) { .contact { grid-template-columns: 1fr; } }
.contact address { font-style: normal; }
.contact dl { margin: 0; }
.contact dt { font-weight: 600; margin-top: 1rem; }
.contact dd { margin: 0; }
.carte-plan { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1); }

/* ---------- Pied de page ---------- */
.pied { background: var(--blanc); border-top: 1px solid #eee; padding: 3rem 0 2rem; text-align: center; font-size: 15px; }
.pied .logo-pied { height: 70px; width: auto; margin: 0 auto 1.5rem; }
.pied ul { list-style: none; padding: 0; margin: 1rem 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; }
.pied a { text-decoration: none; }
.pied a:hover { color: #999; }
.pied .reseaux-pied { display: flex; justify-content: center; gap: 18px; margin: 1rem 0; }
.pied .reseaux-pied img { height: 26px; width: auto; }
.pied .legal { color: var(--gris); font-size: 13px; margin-top: 1.5rem; }

/* ---------- Pages texte (mentions légales) ---------- */
.page-texte { padding: 150px 0 5rem; }
.page-texte .conteneur { max-width: 800px; }
.page-texte h1 { font-size: 3rem; }
.page-texte h2 { font-size: 1.6rem; margin-top: 2rem; }

@media (max-width: 767px) {
  .entete nav { gap: 16px; font-size: 12px; }
  .entete .logo img { height: 32px; }
  .sous-menu a { font-size: 15px; }
  .banniere { height: 620px; }
  .banniere::before { width: 600px; height: 600px; }
  .section { padding: 5rem 0 4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bouton { transition: none; } }

/* ---------- Spécifique La Fine Mousse : bar fermé ---------- */
.bandeau-ferme { background: var(--accent); color: var(--blanc); text-align: center; padding: .7rem 16px; font-weight: 600; letter-spacing: .5px; position: fixed; top: 64px; left: 0; right: 0; z-index: 49; font-size: 15px; }
.bandeau-ferme a { color: var(--blanc); }
.banniere .annees { font-family: "LaFineMousse", serif; font-size: clamp(2.6rem, 7vw, 4.5rem); margin: 0 0 .4rem; letter-spacing: 2px; }
.banniere .ferme { display: inline-block; border: 2px solid var(--blanc); padding: .35rem 1.4rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; margin-bottom: 1.6rem; }
.citation { max-width: 640px; margin: 2.5rem auto 0; font-style: italic; font-weight: 300; font-size: 1.15rem; line-height: 1.8; border-left: 2px solid currentColor; padding-left: 1.5rem; text-align: left; }
.citation footer { font-style: normal; font-weight: 500; font-size: .9rem; margin-top: .8rem; }
.deux-images { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 3rem; }
.deux-images img { width: 100%; aspect-ratio: 929 / 650; object-fit: cover; }
@media (max-width: 600px) { .deux-images { grid-template-columns: 1fr; } }
.ateliers { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 2.5rem; }
.ateliers img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; }
.frise { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 640px; text-align: left; }
.frise li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.frise li:last-child { border-bottom: 0; }
.frise .an { font-family: "LaFineMousse", serif; font-size: 1.6rem; line-height: 1; }
.suite { text-align: center; }
.suite img.logo-suite { height: 90px; width: auto; margin: 0 auto 1.5rem; }
@media (max-width: 600px) {
  .entete nav a:not(:last-child) { display: none; }
  .bandeau-ferme { font-size: 13px; padding: .55rem 12px; }
  .banniere { padding-top: 128px; }
  .banniere .trait { top: 128px; height: 50px; }
}

/* Vidéo d'ouverture (reprise du site 2022) : derrière le cercle noir, l'image reste en secours */
.banniere { isolation: isolate; }
.banniere .video-fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.banniere:has(.video-fond)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4) 12%, rgba(0,0,0,0) 89%); }
@media (prefers-reduced-motion: reduce) { .banniere .video-fond { display: none; } }

/* Bandeau sur deux lignes, en-tête à deux logos (16/11/2026) */
.bandeau-ferme { line-height: 1.45; }
.bandeau-ferme .an { display: block; font-weight: 500; letter-spacing: 2px; }
.banniere { padding-top: 140px; }
.banniere .trait { top: 140px; height: 70px; }
.entete .logos-bars { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.entete .logos-bars a, .entete .logos-bars a:not(:last-child) { display: block; }
.entete .logos-bars a:hover { opacity: .7; }
.entete .logos-bars img { height: 46px; width: auto; }
@media (max-width: 767px) { .entete .logos-bars img { height: 38px; } }
@media (max-width: 600px) {
  .banniere { padding-top: 126px; }
  .banniere .trait { top: 126px; height: 50px; }
}

/* Comme le site 2022 : vidéo sans voile ni cercle, boutons en bas ; en-tête plus haut, logos plus grands (16/11/2026) */
.entete .conteneur { height: 80px; }
.entete .logos-bars img { height: 60px; }
.bandeau-ferme { top: 80px; }
.banniere::before, .banniere:has(.video-fond)::after { display: none; }
.banniere { background-image: var(--fond); padding-top: 156px; }
.banniere .contenu { justify-content: flex-end; padding-bottom: 3.5rem; }
.banniere .boutons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
.page-texte { padding-top: 190px; }
@media (max-width: 767px) {
  .entete .conteneur { height: 68px; }
  .entete .logos-bars img { height: 50px; }
  .bandeau-ferme { top: 68px; }
}
@media (max-width: 600px) {
  .banniere { padding-top: 132px; }
  .banniere .boutons { flex-direction: column; align-items: center; }
  .banniere .contenu { padding-bottom: 2.5rem; }
}

/* Frise : liens, et liste des événements sur fond blanc */
.frise a { color: inherit; text-underline-offset: 3px; }
.frise.evenements { max-width: 760px; }
.frise.evenements li { border-bottom-color: #ddd; }
.frise.evenements strong { font-weight: 600; }
