/* =====================================================================
   Marques Optique : feuille de style
   Police : on reprend celle du thème (font-family: inherit) pour que tout
   soit identique au reste du site. Pour imposer une police précise,
   remplace "inherit" par son nom, ex : 'Avenir Next', Arial, sans-serif
   RÉGLAGES RAPIDES (première ligne après ce commentaire) :
     --mo-marge-g   = décalage du texte depuis la gauche (11.1% = aligné sur « OPTICIEN REIMS »)
     --mo-marge-d   = marge à droite
     --mo-col-droite = largeur de la colonne de droite (plus grand = elle se rapproche de la colonne de gauche)
   Tailles : cherche font-size dans la section « Sections du bas »
   ===================================================================== */
.marques, .fiche { --mo-marge-g: 11.1%; --mo-marge-d: 4%; --mo-col-droite: 48%; --mo-marge: clamp(20px, 3.75vw, 64px); --mo-texte: #222622; --mo-texte-doux: #4a4e48; --mo-accent: #7a6540; --mo-filet: rgba(122,101,64,.35); }

/* ---------- Liste des marques ---------- */
.marques { --mo-liste-marge: 6vw; /* ← décalage gauche/droite de la liste : plus grand = plus à droite */
  width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; padding: 0 var(--mo-liste-marge); font-family: inherit; color: var(--mo-texte); box-sizing: border-box; }
.marques__intro { font-size: 16px; margin: 0 0 20px; }
.marques__filtres { display: flex; flex-wrap: wrap; gap: 10px; }
.marques__filtres button { padding: 10px 18px; border: 1px solid #8a8577; border-radius: 999px; background: transparent; color: var(--mo-texte); font-family: inherit; font-size: 14px; cursor: pointer; transition: all .25s ease; }
.marques__filtres button:hover { background: rgba(34,38,34,.08); }
.marques__filtres button.is-active { background: #222622; color: #f8f6f0; border-color: #222622; }
.marques__compteur { font-size: 12px; margin: 18px 0 30px; opacity: .8; }
.marques__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.carte { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; background: #f5f2ea; text-align: left; text-decoration: none; color: var(--mo-texte); border: 1px solid rgba(34,38,34,.14); transition: transform .25s ease, box-shadow .25s ease; box-sizing: border-box; overflow: hidden; }
.carte__visuel { display: flex; align-items: center; justify-content: center; height: 220px; padding: 20px; text-align: center; border-bottom: 1px solid rgba(34,38,34,.12); box-sizing: border-box; }
.carte__corps { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.carte__titre { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--mo-texte); margin: 0 0 12px; }
.carte__slogan { font-size: 15px; line-height: 1.5; color: var(--mo-texte-doux); margin: 0 0 28px; }
.carte__lien { margin-top: auto; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mo-texte); white-space: nowrap; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(34,38,34,.12); }
.carte:focus-visible { outline: 2px solid #222622; outline-offset: 3px; }
.carte.is-hidden { display: none; }
.carte__nom { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(40px, 4vw, 58px); font-weight: 400; line-height: 1.1; color: inherit; }

/* ---------- Page d'une marque : bandeau du haut ---------- */
.fiche { font-family: inherit; color: var(--mo-texte); width: 100%; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
.fiche *, .fiche *::before, .fiche *::after { box-sizing: border-box; }
/* --mo-hero-extra = hauteur de l'en-tête du thème qui recouvre le haut de la page (calculée automatiquement par le petit script du gabarit) */
.fiche__hero { padding: calc(40px + var(--mo-hero-extra, 0px)) var(--mo-marge-d) 80px var(--mo-marge-g); text-align: center; }
.fiche__retour { display: block; text-align: left; font-size: 14px; color: inherit; text-decoration: none; margin-bottom: 40px; }
.fiche__retour:hover { text-decoration: none; }
.fiche__fil { text-align: left; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; margin: 0 0 60px; opacity: .75; }
.fiche__titre { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 9vw, 104px); font-weight: 400; line-height: 1; margin: 0 0 28px; }
.fiche__slogan { font-size: clamp(22px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; max-width: 18em; margin: 0 auto; }

/* ---------- Sections du bas : mêmes marges, même alignement ---------- */
.fiche .fiche__corps,
.fiche .fiche__observer { width: 100%; max-width: 100%; padding-left: var(--mo-marge-g) !important; padding-right: var(--mo-marge-d) !important; text-align: left; color: var(--mo-texte); border-top: 1px solid var(--mo-filet); }

.fiche .fiche__corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--mo-col-droite)); gap: 60px; align-items: start; padding-top: 56px; padding-bottom: 56px; background: linear-gradient(135deg, #e3e2da, #cbcbc2); }
.fiche .fiche__corps--seule { grid-template-columns: minmax(0, 1fr); }
.fiche .fiche__col { min-width: 0; }
.fiche .fiche__observer { padding-top: 48px; padding-bottom: 48px; background: #e3dccb; }

/* Petit texte en capitales */
.fiche .fiche__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; color: var(--mo-accent); margin: 0 0 18px; }

/* Titres */
.fiche .fiche__h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 24px; color: var(--mo-texte) !important; text-align: inherit; }

/* Paragraphes : couleur plus douce, jamais plus larges que leur colonne */
.fiche .fiche__corps p,
.fiche .fiche__observer p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: var(--mo-texte-doux); max-width: min(64ch, 100%); margin: 0 0 1.2em; overflow-wrap: anywhere; }
.fiche .fiche__observer p { margin-bottom: 0; }
.fiche .fiche__corps p.fiche__label,
.fiche .fiche__observer p.fiche__label { color: var(--mo-accent); font-size: 12px; line-height: 1.4; margin: 0 0 18px; }

/* Bouton et lien */
.fiche .fiche__cta { display: inline-block; padding: 16px 24px; margin: 8px 0 22px; background: #222622; color: #f8f6f0; border: 1px solid #222622; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.fiche .fiche__cta:hover { background: #3a3f3a; color: #fff; }
.fiche .fiche__corps p.fiche__note { font-size: 15px; margin: 0; }
.fiche .fiche__note a { color: inherit; text-decoration: underline; }

/* ---------- Bloc global « Poursuivre la découverte » ---------- */
.fiche .fiche__suite { width: 100%; max-width: 100%; background: #ede9e1; border-top: 1px solid var(--mo-filet); padding: 32px var(--mo-marge-d) 32px var(--mo-marge-g) !important; text-align: left; }
.fiche .fiche__suite a { font-size: clamp(18px, 1.6vw, 22px); color: var(--mo-texte); text-decoration: none; }
.fiche .fiche__suite a, .fiche .fiche__suite a:hover, .fiche .fiche__suite a:focus { text-decoration: none !important; }

/* ---------- Réglages choisis dans la fiche (taille / alignement) ---------- */
.fiche.mo-t-petit .fiche__h2       { font-size: clamp(20px, 1.9vw, 24px) !important; }
.fiche.mo-t-grand .fiche__h2       { font-size: clamp(32px, 3.6vw, 48px) !important; }
.fiche.mo-t-tres-grand .fiche__h2  { font-size: clamp(40px, 5vw, 66px) !important; }
.fiche.mo-x-petit .fiche__corps p, .fiche.mo-x-petit .fiche__observer p           { font-size: 13px !important; }
.fiche.mo-x-grand .fiche__corps p, .fiche.mo-x-grand .fiche__observer p           { font-size: 18px !important; }
.fiche.mo-x-tres-grand .fiche__corps p, .fiche.mo-x-tres-grand .fiche__observer p { font-size: 22px !important; }
.fiche.mo-x-petit .fiche__label, .fiche.mo-x-grand .fiche__label, .fiche.mo-x-tres-grand .fiche__label { font-size: 12px !important; }

.fiche.mo-a-centre .fiche__corps, .fiche.mo-a-centre .fiche__observer { text-align: center; }
.fiche.mo-a-centre .fiche__corps p, .fiche.mo-a-centre .fiche__observer p { margin-left: auto; margin-right: auto; }
.fiche.mo-a-droite .fiche__corps, .fiche.mo-a-droite .fiche__observer { text-align: right; }
.fiche.mo-a-droite .fiche__corps p, .fiche.mo-a-droite .fiche__observer p { margin-left: auto; margin-right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) { .marques__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .fiche { --mo-marge-g: 6%; --mo-marge-d: 6%; } .fiche .fiche__corps { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 600px) { .marques__grille { grid-template-columns: minmax(0, 1fr); } .carte__visuel { height: 170px; } .carte__nom { font-size: 42px; } .fiche__fil { margin-bottom: 36px; } }
@media (prefers-reduced-motion: reduce) { .carte { transition: none; } .carte:hover { transform: none; } }

/* ---------- Protection contre les styles du thème ---------- */
.marques a.carte, .fiche a.fiche__retour, .fiche a.fiche__cta { text-decoration: none; }
.fiche a.fiche__retour, .fiche a.fiche__retour:hover, .fiche a.fiche__retour:focus { text-decoration: none !important; }
.fiche h1.fiche__titre, .fiche h2.fiche__slogan { color: inherit; }
.fiche p, .fiche h2, .fiche a, .fiche .fiche__cta { font-family: inherit; }
.fiche h1.fiche__titre { font-family: Georgia, 'Times New Roman', serif; }

/* Cartes : aucun soulignement, quel que soit le thème */
.marques a.carte, .marques a.carte:hover, .marques a.carte:focus, .marques a.carte * { text-decoration: none !important; }
