/* Café des Pros — feuille de style du site public.
   Les couleurs de la charte sont regroupées ici : les remplacer suffit à changer l'identité. */
:root {
    --espresso: #112435;      /* bleu nuit du logo */
    --cafe: #1d3854;
    --cafe-clair: #2c4a6b;
    --caramel: #c27a47;       /* cuivre du logo */
    --caramel-clair: #f3dfcf;
    --creme: #f6ede4;         /* crème du logo */
    --lait: #fbf7f2;
    --blanc: #ffffff;
    --texte: #112435;
    --texte-doux: #5c6470;
    --bordure: #e8ddd2;
    --succes: #2f7a4d;
    --erreur: #b3261e;
    --rayon: 14px;
    --ombre: 0 1px 2px rgb(17 36 53 / .06), 0 8px 24px rgb(17 36 53 / .07);
    --titres: "Cormorant Garamond", Georgia, serif;
    --script: "Great Vibes", cursive;
    --corps: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--corps); font-size: 1.0625rem; line-height: 1.65; color: var(--texte); background: var(--lait); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cafe); text-underline-offset: 3px; }
a:hover { color: var(--caramel); }
h1, h2, h3, .date-bloc__jour, .chiffre strong { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--titres); font-weight: 700; line-height: 1.1; color: var(--espresso); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--espresso); color: var(--blanc); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 2px; }

.conteneur { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--creme { background: var(--creme); }
.section--sombre { background: var(--espresso); color: var(--creme); }
.section--sombre h2, .section--sombre h3 { color: var(--blanc); }
.surtitre { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel); margin-bottom: .75rem; }
.chapeau { font-size: 1.2rem; color: var(--texte-doux); max-width: 46rem; }
.centre { text-align: center; }
.centre .chapeau { margin-inline: auto; }
.entete-section { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.entete-section h2 { margin: 0; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; background: var(--cafe); color: var(--blanc); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--cafe); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; font-family: var(--corps); }
.bouton:hover { background: var(--espresso); border-color: var(--espresso); color: var(--blanc); transform: translateY(-1px); }
.bouton--clair { background: transparent; color: var(--cafe); }
.bouton--clair:hover { background: var(--cafe); color: var(--blanc); border-color: var(--cafe); }
.bouton--caramel { background: var(--caramel); border-color: var(--caramel); color: var(--espresso); }
.bouton--caramel:hover { background: var(--creme); border-color: var(--creme); color: var(--espresso); }
.bouton--petit { padding: .55rem 1.1rem; font-size: .95rem; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgb(251 247 242 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bordure); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; min-height: 128px; gap: 1rem; padding: .5rem 0; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--titres); font-weight: 700; font-size: 1.55rem; color: var(--espresso); text-decoration: none; }
.logo:hover { color: var(--espresso); }
.logo__image { width: 110px; height: 110px; flex: none; filter: drop-shadow(0 3px 8px rgb(17 36 53 / .15)); }
.logo--clair { flex-direction: column; align-items: flex-start; gap: .8rem; font-size: 1.7rem; }
.logo__image--pied { width: 190px; height: 190px; filter: none; }
@media (max-width: 1180px) { .entete__barre { min-height: 92px; } .logo__image { width: 76px; height: 76px; } .logo__image--pied { width: 160px; height: 160px; } }
.logo--clair, .logo--clair:hover { color: var(--blanc); }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a { color: var(--texte); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.logo span { white-space: nowrap; }
.menu a:not(.bouton):hover, .menu a.actif { color: var(--cafe); }
.menu a.actif { text-decoration: underline; text-decoration-color: var(--caramel); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu .bouton { color: var(--blanc); }
.menu__espace { color: var(--texte-doux) !important; }
.menu-bouton { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-bouton span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--espresso); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1180px) {
    .menu-bouton { display: block; }
    .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--lait); border-bottom: 1px solid var(--bordure); padding: .5rem 1rem 1.25rem; box-shadow: var(--ombre); }
    .menu a { padding: .8rem .25rem; border-bottom: 1px solid var(--bordure); }
    .menu a.actif { text-decoration: none; }
    .menu .bouton { margin-top: 1rem; justify-content: center; border-bottom: 0; }
    .menu-bouton[aria-expanded="true"] + .menu { display: flex; }
    .menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Héros */
.heros { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); background:
    radial-gradient(1000px 500px at 85% -10%, var(--caramel-clair), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, #efe3d4, transparent 60%), var(--lait); }
.heros__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.heros h1 em { font-style: normal; color: var(--cafe); }
.heros__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.heros__carte { background: var(--blanc); border-radius: 22px; box-shadow: var(--ombre); padding: 1.6rem; border: 1px solid var(--bordure); }
.heros__carte h2 { font-size: 1.15rem; font-family: var(--corps); font-weight: 600; letter-spacing: .02em; color: var(--texte-doux); margin-bottom: 1rem; }
.heros__logo { width: 100%; max-width: 440px; justify-self: center; filter: drop-shadow(0 18px 40px rgb(17 36 53 / .18)); }
@media (max-width: 860px) { .heros__grille { grid-template-columns: 1fr; } .heros__logo { max-width: 280px; grid-row: 1; } }
.devise { font-family: var(--script); font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: var(--caramel); line-height: 1.2; margin: -.2rem 0 1rem; }
.devise--clair { font-size: 1.7rem; margin: .6rem 0 0; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.chiffre { text-align: center; padding: 1.4rem 1rem; }
.chiffre strong { display: block; font-family: var(--titres); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--caramel); line-height: 1.1; }
.chiffre span { color: var(--creme); opacity: .85; font-size: .95rem; }
@media (max-width: 720px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }

/* Étapes du concept */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: etape; }
.etape { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.8rem 1.6rem; position: relative; }
.etape::before { counter-increment: etape; content: counter(etape, decimal-leading-zero); font-family: var(--titres); font-size: 2.4rem; color: var(--caramel); display: block; line-height: 1; margin-bottom: .8rem; }
.etape p { color: var(--texte-doux); margin: 0; }
@media (max-width: 860px) { .etapes { grid-template-columns: 1fr; } }

.valeurs { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.valeur { padding: .6rem 1.3rem; border-radius: 999px; background: var(--blanc); border: 1px solid var(--bordure); font-weight: 600; color: var(--cafe); }

/* Cartes génériques */
.grille { display: grid; gap: 1.25rem; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grille--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .grille--3, .grille--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grille--3, .grille--4 { grid-template-columns: 1fr; } }
.carte { background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 1.4rem; box-shadow: 0 1px 2px rgb(17 36 53 / .04); transition: box-shadow .2s, transform .2s; }
a.carte { text-decoration: none; color: inherit; display: block; }
a.carte:hover { box-shadow: var(--ombre); transform: translateY(-2px); color: inherit; }

/* Événements */
.evenement { display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem; align-items: start; }
.date-bloc { background: var(--creme); border-radius: 12px; text-align: center; padding: .55rem .3rem; line-height: 1.1; }
.date-bloc__jour { display: block; font-family: var(--titres); font-size: 1.9rem; font-weight: 700; color: var(--cafe); }
.date-bloc__mois { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--texte-doux); }
.evenement h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.evenement__infos { color: var(--texte-doux); font-size: .95rem; margin: 0; }
.pastille { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--caramel-clair); color: var(--cafe); margin-top: .5rem; }
.pastille--complet { background: #f6d9d6; color: var(--erreur); }
.pastille--membres { background: var(--espresso); color: var(--creme); }
.liste-evenements { display: grid; gap: 1rem; }
.heros__carte .evenement + .evenement { border-top: 1px solid var(--bordure); padding-top: 1rem; margin-top: 1rem; }

/* Membres */
.membre-carte { text-align: center; padding: 1.6rem 1.2rem; height: 100%; }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem; border: 3px solid var(--creme); }
.avatar--grand { width: 150px; height: 150px; border-width: 5px; }
.membre-carte h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.membre-carte__entreprise { color: var(--cafe); font-weight: 600; font-size: .95rem; margin: 0; }
.membre-carte__metier { color: var(--texte-doux); font-size: .9rem; margin: .15rem 0 0; }
.secteur { display: inline-block; margin-top: .7rem; font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; background: var(--creme); color: var(--texte-doux); }

.filtres { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; align-items: center; }
.filtres input[type=search] { flex: 1 1 260px; }
.filtres select { flex: 0 1 260px; }
.vide { text-align: center; padding: 3rem 1rem; color: var(--texte-doux); background: var(--blanc); border: 1px dashed var(--bordure); border-radius: var(--rayon); }

/* Fiche membre */
.fiche { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.fiche__carte { text-align: center; position: sticky; top: 96px; }
.fiche__liens { display: grid; gap: .6rem; margin-top: 1.2rem; }
.fiche__logo { max-height: 70px; width: auto; margin: 1.2rem auto 0; }
.fiche__texte { font-size: 1.1rem; white-space: pre-line; }
@media (max-width: 800px) { .fiche { grid-template-columns: 1fr; } .fiche__carte { position: static; } }

/* En-tête de page */
.page-entete { background: var(--creme); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--bordure); }
.page-entete h1 { margin-bottom: .3rem; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-entete p { color: var(--texte-doux); margin: 0; font-size: 1.1rem; max-width: 46rem; }
.fil { font-size: .9rem; margin-bottom: .8rem; color: var(--texte-doux); }
.fil a { color: var(--texte-doux); }

/* Formulaires */
.formulaire { display: grid; gap: 1.1rem; }
.formulaire .ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .formulaire .ligne { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
label .facultatif { font-weight: 400; color: var(--texte-doux); font-size: .85rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--bordure); border-radius: 10px; background: var(--blanc); color: var(--texte); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px rgb(194 122 71 / .2); }
textarea { min-height: 130px; resize: vertical; }
.case { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--texte-doux); }
.case input { width: auto; margin-top: .3rem; }
.erreur { color: var(--erreur); font-size: .88rem; margin-top: .3rem; }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: var(--erreur); }
.alerte { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; }
.alerte--succes { background: #e3f1e8; color: var(--succes); border: 1px solid #bcdcc8; }
.alerte--erreur { background: #fbe9e7; color: var(--erreur); border: 1px solid #f3c5bf; }
.pot-de-miel { position: absolute; left: -5000px; }

.deux-colonnes { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .deux-colonnes { grid-template-columns: 1fr; } }
.encart { background: var(--creme); border-radius: var(--rayon); padding: 1.6rem; }
.encart h3 { margin-bottom: .7rem; }
.encart ul { padding-left: 1.1rem; margin: 0; }
.encart li { margin-bottom: .4rem; }

/* Actualités */
.actu__image { aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; width: 100%; background: var(--creme); }
.actu__image--vide { display: grid; place-items: center; }
.actu__image--vide img { width: 72px; opacity: .6; }
.actu__date { font-size: .85rem; color: var(--texte-doux); }
.actu h3 { margin: .2rem 0 .5rem; }
.actu p { color: var(--texte-doux); margin: 0; font-size: .97rem; }
.prose { max-width: 46rem; font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 4px solid var(--caramel); color: var(--texte-doux); font-style: italic; }
.prose img { border-radius: var(--rayon); margin: 1.5em 0; }

/* Appel à l'action */
.appel { background: linear-gradient(135deg, var(--cafe), var(--espresso)); color: var(--creme); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.appel h2 { color: var(--blanc); margin-bottom: .3rem; }
.appel p { margin: 0; opacity: .9; }
@media (max-width: 760px) { .appel { grid-template-columns: 1fr; } }

.pagination { margin-top: 2rem; display: flex; justify-content: center; }
.pagination nav > div:first-child { display: none; }
.pagination svg { width: 18px; }

/* Pied de page */
.pied { background: var(--espresso); color: var(--creme); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.pied a { color: var(--creme); text-decoration: none; opacity: .85; }
.pied a:hover { opacity: 1; color: var(--caramel); }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied__grille > div { display: flex; flex-direction: column; gap: .45rem; }
.pied__titre { font-family: var(--corps); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--caramel); margin-bottom: .4rem; }
.pied__accroche { opacity: .75; max-width: 22rem; margin-top: .8rem; }
.reseaux { display: flex; gap: 1rem; margin-top: .4rem; }
.pied__bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgb(246 239 230 / .15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .88rem; opacity: .75; }
@media (max-width: 760px) { .pied__grille { grid-template-columns: 1fr; } }

/* Galerie photos des cafés */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.galerie__vignette { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--creme); }
.galerie__vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.galerie__vignette:hover img, .galerie__vignette:focus-visible img { transform: scale(1.05); }
@media (max-width: 560px) { .galerie { grid-template-columns: repeat(2, 1fr); gap: .4rem; } }
.visionneuse { position: fixed; inset: 0; z-index: 200; background: rgb(10 20 30 / .94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.visionneuse[hidden] { display: none; } /* sinon display:flex écrase [hidden] */
.visionneuse__cadre { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.visionneuse__cadre img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 6px; }
.visionneuse__cadre figcaption { color: var(--creme); font-size: .9rem; opacity: .8; }
.visionneuse button { background: rgb(255 255 255 / .1); color: var(--blanc); border: 0; cursor: pointer; border-radius: 999px; font-size: 2rem; line-height: 1; width: 52px; height: 52px; display: grid; place-items: center; transition: background .2s; }
.visionneuse button:hover { background: rgb(255 255 255 / .22); }
.visionneuse__fermer { position: absolute; top: 1rem; right: 1rem; }
.visionneuse__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.visionneuse__nav--prec { left: 1rem; }
.visionneuse__nav--suiv { right: 1rem; }
@media (max-width: 640px) { .visionneuse { padding: 3.5rem .5rem; } .visionneuse__nav { top: auto; bottom: 1rem; transform: none; } }

/* Cafés passés avec photos */
.passe { display: block; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.passe__couverture { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--creme); }
.passe__corps { padding: 1.1rem 1.3rem 1.3rem; }
.passe__corps h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.passe__infos { color: var(--texte-doux); font-size: .92rem; margin: 0; }
.compteur-photos { display: inline-block; margin-top: .5rem; font-size: .8rem; font-weight: 600; color: var(--caramel); }

/* Vidéos des cafés : vignette avec bouton lecture, ouverture dans la visionneuse */
.galerie__vignette--video { position: relative; background: var(--espresso); }
.galerie__lecture { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgb(17 36 53 / .7); border: 2px solid rgb(255 255 255 / .85); transition: transform .2s, background .2s; }
.galerie__lecture::after { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--blanc); }
.galerie__vignette--video:hover .galerie__lecture, .galerie__vignette--video:focus-visible .galerie__lecture { transform: scale(1.1); background: var(--caramel); }
.visionneuse__cadre img[hidden], .visionneuse__cadre video[hidden] { display: none; }
.visionneuse__cadre video { max-width: 100%; max-height: calc(100vh - 8rem); border-radius: 6px; background: #000; }
.passe__couverture--vide { display: grid; place-items: center; }
.passe__couverture--vide img { width: 80px; opacity: .6; }
