/*
  Site de l'Étude notariale de Maître TIZI Joël - feuille de style de la maquette
  Auteur : Romain Hapi, Prenim Ltd - version 0.1 - 31/10/2026
*/

:root {
  --nuit: #14213d;
  --nuit-2: #1f3060;
  --or: #b8913a;
  --or-clair: #e9dcbc;
  --ivoire: #f7f5f0;
  --gris: #dfe1e1;
  --texte: #2a2f3a;
  --texte-doux: #5d6472;
  --blanc: #fff;
  --vert: #1f8a5b;
  --rayon: 10px;
  --ombre: 0 8px 28px rgba(20, 33, 61, .10);
  --titre: "Cormorant Garamond", Georgia, serif;
  --corps: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--corps);
  color: var(--texte);
  background: var(--ivoire);
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: var(--nuit-2); }
h1, h2, h3 { font-family: var(--titre); color: var(--nuit); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }
.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }
.surtitre { font: 600 .8rem/1 var(--corps); letter-spacing: .18em; text-transform: uppercase; color: var(--or); margin-bottom: 14px; display: block; }
.section { padding: 84px 0; }
.section--blanc { background: var(--blanc); }
.section--nuit { background: var(--nuit); color: #d9deea; }
.section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.entete-section { max-width: 720px; margin-bottom: 44px; }
.entete-section--centre { margin: 0 auto 44px; text-align: center; }
.filet { width: 56px; height: 3px; background: var(--or); border: 0; margin: 18px 0 0; }
.entete-section--centre .filet { margin: 18px auto 0; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: .2s; cursor: pointer; font-size: 1rem; }
.bouton--or { background: var(--or); color: var(--blanc); }
.bouton--or:hover { background: #a27d2e; }
.bouton--contour { border-color: currentColor; color: var(--blanc); }
.bouton--contour:hover { background: rgba(255, 255, 255, .1); }
.bouton--nuit { background: var(--nuit); color: var(--blanc); }
.bouton--nuit:hover { background: var(--nuit-2); }

/* Bandeau supérieur */
.bandeau { background: var(--nuit); color: #c7cede; font-size: .88rem; padding-top: env(safe-area-inset-top); }
.bandeau .conteneur { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.bandeau a { color: #c7cede; text-decoration: none; }
.bandeau a:hover { color: var(--blanc); }
.bandeau span + span { margin-left: 18px; }

/* En-tête */
.entete { background: var(--blanc); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--gris); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marque__sceau { width: 60px; height: 60px; flex: none; }
.marque__nom { font: 600 1.35rem/1.1 var(--titre); color: var(--nuit); }
.marque__titre { font-size: .78rem; color: var(--texte-doux); letter-spacing: .04em; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { display: block; padding: 10px 14px; text-decoration: none; color: var(--nuit); font-weight: 600; font-size: .97rem; border-radius: 6px; }
.menu a:hover, .menu a[aria-current] { color: var(--or); }
.menu .bouton { margin-left: 10px; padding: 11px 20px; color: var(--blanc); }
.menu .bouton:hover { color: var(--blanc); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--nuit); margin: 6px 0; }

/* Héros */
.heros { position: relative; color: var(--blanc); background: var(--nuit); overflow: hidden; }
.heros__image { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .35; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--nuit) 20%, rgba(20, 33, 61, .3)); }
.heros .conteneur { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.heros h1 { color: var(--blanc); max-width: 760px; }
.heros p { font-size: 1.15rem; max-width: 620px; color: #d9deea; }
.heros__devise { color: var(--or-clair); letter-spacing: .2em; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.heros__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.heros--page .conteneur { padding-top: 70px; padding-bottom: 70px; }
.fil { font-size: .88rem; color: #aab3c7; margin-bottom: 12px; }
.fil a { color: #aab3c7; }

/* Cartes */
.grille { display: grid; gap: 24px; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.carte { background: var(--blanc); border-radius: var(--rayon); padding: 32px; box-shadow: var(--ombre); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border-top: 3px solid transparent; }
a.carte:hover { transform: translateY(-4px); border-top-color: var(--or); }
.carte__icone { width: 54px; height: 54px; border-radius: 12px; background: var(--ivoire); display: grid; place-items: center; margin-bottom: 20px; color: var(--or); }
.carte__icone svg { width: 28px; height: 28px; }
.carte p { color: var(--texte-doux); flex: 1; }
.carte__lien { color: var(--nuit); font-weight: 600; margin-top: 8px; }
.carte__lien::after { content: " →"; color: var(--or); }

/* Valeurs */
.valeur { border-left: 3px solid var(--or); padding: 4px 0 4px 22px; }
.valeur h3 { font-size: 1.3rem; }
.valeur p { color: inherit; opacity: .85; margin: 0; }

/* Présentation */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.duo__image { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); position: relative; }
.duo__image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.citation { font: italic 500 1.5rem/1.4 var(--titre); color: var(--nuit); border-left: 3px solid var(--or); padding-left: 22px; margin: 24px 0; }
.signature { font-weight: 600; color: var(--nuit); }
.signature small { display: block; font-weight: 400; color: var(--texte-doux); }

/* Listes */
.liste-coche { list-style: none; padding: 0; margin: 0 0 1em; }
.liste-coche li { position: relative; padding: 0 0 12px 34px; }
.liste-coche li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--or-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Actualités */
.article-carte { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s; }
.article-carte:hover { transform: translateY(-4px); }
.article-carte__image { aspect-ratio: 16 / 9; background: var(--nuit) center / cover; position: relative; }
.article-carte__image--texte { display: grid; place-items: center; color: var(--or-clair); font: 600 1.4rem var(--titre); padding: 20px; text-align: center; }
.article-carte__corps { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.etiquette { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); margin-bottom: 8px; }
.date { font-size: .85rem; color: var(--texte-doux); margin-top: auto; }

/* FAQ */
.faq details { background: var(--blanc); border-radius: var(--rayon); margin-bottom: 12px; box-shadow: 0 2px 10px rgba(20, 33, 61, .06); }
.faq summary { padding: 20px 56px 20px 24px; cursor: pointer; font-weight: 600; color: var(--nuit); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 14px; font-size: 1.6rem; color: var(--or); transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 20px; color: var(--texte-doux); }

/* Équipe */
.membre { text-align: center; background: var(--blanc); border-radius: var(--rayon); padding: 34px 24px; box-shadow: var(--ombre); }
.membre__photo { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 18px; background: var(--nuit); color: var(--or-clair); display: grid; place-items: center; font: 600 2.4rem var(--titre); border: 4px solid var(--or-clair); }
.membre h3 { margin-bottom: 4px; font-size: 1.3rem; }
.membre p { color: var(--texte-doux); margin: 0; }
.membre--principal { grid-column: 1 / -1; display: grid; grid-template-columns: 240px 1fr; gap: 40px; text-align: left; align-items: center; padding: 40px; }
.membre--principal .membre__photo { width: 220px; height: 220px; font-size: 4rem; margin: 0; }

/* Bandeau d'appel */
.appel { background: linear-gradient(120deg, var(--nuit), var(--nuit-2)); color: var(--blanc); border-radius: 16px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.appel h2 { color: var(--blanc); margin: 0 0 8px; }
.appel p { margin: 0; color: #d9deea; }

/* Contact */
.coordonnees { display: grid; gap: 18px; }
.coordonnee { display: flex; gap: 16px; align-items: flex-start; }
.coordonnee__icone { width: 46px; height: 46px; border-radius: 50%; background: var(--nuit); color: var(--or-clair); display: grid; place-items: center; flex: none; }
.coordonnee__icone svg { width: 22px; height: 22px; }
.coordonnee strong { display: block; color: var(--nuit); }
.coordonnee a { text-decoration: none; }
.formulaire { background: var(--blanc); border-radius: var(--rayon); padding: 36px; box-shadow: var(--ombre); }
.champ { margin-bottom: 18px; }
.champ label { display: block; font-weight: 600; color: var(--nuit); margin-bottom: 6px; font-size: .95rem; }
.champ input, .champ select, .champ textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9ccd3; border-radius: 8px; font: inherit; background: var(--blanc); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--or); border-color: transparent; }
.tel { display: flex; }
.tel span { padding: 13px 12px; border: 1px solid #c9ccd3; border-right: 0; border-radius: 8px 0 0 8px; background: var(--ivoire); white-space: nowrap; }
.tel input { border-radius: 0 8px 8px 0; }
.carte-plan { border: 0; width: 100%; height: 380px; border-radius: var(--rayon); display: block; }
.horaires { width: 100%; border-collapse: collapse; }
.horaires td { padding: 10px 0; border-bottom: 1px solid var(--gris); }
.horaires td:last-child { text-align: right; font-weight: 600; color: var(--nuit); }

/* Article */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* Pied de page */
.pied { background: #0e1830; color: #aab3c7; padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .95rem; }
.pied a { color: #aab3c7; text-decoration: none; }
.pied a:hover { color: var(--blanc); }
.pied h3 { color: var(--blanc); font-size: 1.25rem; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.pied .marque__nom { color: var(--blanc); }
.pied .marque__sceau { width: 84px; height: 84px; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* WhatsApp flottant */
.whatsapp { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); z-index: 60; }
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* Tablette */
@media (max-width: 1024px) {
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .duo { gap: 40px; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--blanc); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .menu.ouvert { display: flex; }
  .menu a { padding: 14px 8px; border-bottom: 1px solid var(--ivoire); }
  .menu .bouton { margin: 14px 0 0; justify-content: center; }
}

/* Téléphone */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grille--2, .grille--3, .grille--4, .duo, .pied__grille { grid-template-columns: 1fr; }
  .membre--principal { grid-template-columns: 1fr; text-align: center; }
  .membre--principal .membre__photo { margin: 0 auto; width: 160px; height: 160px; }
  .heros .conteneur { padding-top: 80px; padding-bottom: 80px; }
  .appel { padding: 36px 26px; }
  .bandeau__droite { display: none; }
  .marque__titre { display: none; }
  .formulaire { padding: 24px; }
}

/* Accueil inspiré de notaires.fr : bannière défilante, recherche, tuiles de services */
.banniere { position: relative; background: var(--nuit); color: var(--blanc); overflow: hidden; }
.banniere__piste { display: flex; transition: transform .6s ease; }
.diapo { min-width: 100%; position: relative; min-height: 460px; display: flex; align-items: center; }
.diapo__image { position: absolute; inset: 0; background: center 30% / cover; }
.diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 33, 61, .95) 30%, rgba(20, 33, 61, .25)); }
.diapo .conteneur { position: relative; z-index: 1; width: 100%; padding-top: 60px; padding-bottom: 90px; }
.diapo h2 { color: var(--blanc); font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 700px; }
.diapo p { max-width: 580px; color: #d9deea; font-size: 1.1rem; }
.banniere__points { position: absolute; bottom: 70px; left: 0; right: 0; z-index: 2; }
.banniere__points .conteneur { display: flex; gap: 10px; }
.banniere__points button { width: 34px; height: 4px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; border-radius: 2px; }
.banniere__points button[aria-current="true"] { background: var(--or); }
.recherche { position: relative; z-index: 3; margin-top: -44px; }
.recherche__boite { background: var(--blanc); border-radius: 14px; box-shadow: var(--ombre); padding: 26px 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.recherche__boite h2 { font-size: 1.5rem; margin: 0; }
.recherche__boite input { width: 100%; padding: 15px 18px; border: 1px solid #c9ccd3; border-radius: 999px; font: inherit; }
.titre-rubrique { position: relative; padding-left: 18px; }
.titre-rubrique::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--or); }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tuile { background: var(--blanc); border-radius: var(--rayon); padding: 24px 20px; text-decoration: none; color: var(--nuit); display: flex; gap: 14px; align-items: center; box-shadow: 0 2px 10px rgba(20, 33, 61, .06); transition: .2s; font-weight: 600; line-height: 1.3; }
.tuile:hover { box-shadow: var(--ombre); transform: translateY(-3px); color: var(--or); }
.tuile svg { width: 34px; height: 34px; flex: none; color: var(--or); }
.question { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.aide { background: var(--nuit); color: #d9deea; border-radius: var(--rayon); padding: 36px; }
.aide h3 { color: var(--blanc); font-size: 1.7rem; }
@media (max-width: 1024px) { .tuiles { grid-template-columns: repeat(2, 1fr); } .question { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .recherche__boite { grid-template-columns: 1fr; padding: 22px; }
  .tuiles { grid-template-columns: 1fr; }
  .diapo { min-height: 420px; }
}

/* Petits téléphones (320 à 380 px) */
@media (max-width: 380px) {
  body { font-size: 15px; }
  .conteneur { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  h1 { font-size: 1.9rem; }
  h2, .diapo h2 { font-size: 1.6rem; }
  .entete .conteneur { height: 68px; }
  .menu { top: 68px; }
  .marque__sceau { width: 48px; height: 48px; }
  .marque__nom { font-size: 1.15rem; }
  .bandeau { font-size: .8rem; }
  .bouton { padding: 12px 20px; }
  .heros__actions .bouton { width: 100%; justify-content: center; }
  .carte, .aide, .formulaire { padding: 22px 18px; }
  .tuile { padding: 18px 16px; }
  .diapo { min-height: 400px; }
  .appel { padding: 28px 18px; }
  .carte-plan { height: 280px; }
  .pied__bas { flex-direction: column; }
}
/* Pas de débordement horizontal, quelle que soit la largeur */
html, body { overflow-x: hidden; }
.prose, .carte, .coordonnee div, .pied { overflow-wrap: anywhere; }

/* République du Tchad : liseré tricolore, drapeau, armoiries */
:root { --tchad-bleu: #002664; --tchad-jaune: #fecb00; --tchad-rouge: #c60c30; }
.liseré { height: 4px; background: linear-gradient(90deg, var(--tchad-bleu) 33.33%, var(--tchad-jaune) 33.33% 66.66%, var(--tchad-rouge) 66.66%); }
.drapeau { display: inline-block; width: 24px; height: 16px; vertical-align: -3px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.republique { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.republique img.armoiries { width: 64px; height: auto; flex: none; }
.republique span { font: 600 .78rem/1.35 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--or-clair); }
.officiel { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; }
.officiel img.armoiries { width: 72px; height: auto; flex: none; }
.officiel strong { color: var(--blanc); display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.tel span { display: flex; align-items: center; gap: 8px; }
@media (max-width: 380px) { .republique img.armoiries { width: 50px; } .officiel { flex-direction: column; text-align: center; } }
.pied__bas { padding-right: 76px; }
img.membre__photo { object-fit: cover; padding: 0; }

/* Accueil : FAQ et contact en deux sections */
.faq-accueil { max-width: 860px; margin: 0 auto 18px; }
.faq-accueil + .carte__lien { display: table; margin: 0 auto; }
.faq-accueil-entete { max-width: 860px; margin: 0 auto 32px; }
.contact-accueil { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.section--nuit .coordonnee__icone { background: rgba(255, 255, 255, .08); }
.section--nuit .coordonnee strong { color: var(--blanc); }
.section--nuit .coordonnee a { color: #d9deea; }
.section--nuit .coordonnee a:hover { color: var(--or-clair); }
@media (max-width: 1024px) { .contact-accueil { grid-template-columns: 1fr; gap: 40px; } }
.entete-section--large { max-width: none; } .entete-section--large p { text-align: justify; hyphens: auto; }

/* Sceau lisible dans l'en-tête */
.entete .conteneur { height: 124px; }
.entete .marque__sceau { width: 108px; height: 108px; }
@media (max-width: 1024px) {
  .entete .conteneur { height: 104px; }
  .entete .marque__sceau { width: 90px; height: 90px; }
  .menu { top: 104px; }
}
@media (max-width: 680px) {
  .entete .conteneur { height: 92px; }
  .entete .marque__sceau { width: 80px; height: 80px; }
  .menu { top: 92px; }
}
@media (max-width: 380px) {
  .entete .conteneur { height: 84px; }
  .entete .marque__sceau { width: 72px; height: 72px; }
  .marque { gap: 10px; }
  .menu { top: 84px; }
}

/* Plan statique (version publiée, sans carte intégrée) */
.plan-statique { display: block; position: relative; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); text-decoration: none; }
.plan-statique img { width: 100%; height: 380px; object-fit: cover; }
.plan-statique span { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--nuit); color: var(--blanc); padding: 12px 16px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
@media (max-width: 380px) { .plan-statique img { height: 300px; } }

/* Tous les paragraphes justifiés */
p, .liste-coche li, .faq details > div, .valeur p, .coordonnee div { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Textes centrés par construction : on garde le centrage */
.membre p, .entete-section--centre p, .faq-accueil + .carte__lien, .pied__bas, .plan-statique span { text-align: center; }
@media (max-width: 680px) { .membre--principal p { text-align: justify; text-align-last: center; } }

/* Largeur d'affichage portée à +20 % (1180 → 1416 px), éléments ajustés en proportion */
:root { --max: 1416px; }
.entete-section { max-width: 864px; }
.heros h1 { max-width: 912px; }
.heros p { max-width: 744px; }
.diapo h2 { max-width: 840px; }
.diapo p { max-width: 696px; }
.prose { max-width: 912px; }
.faq-accueil, .faq-accueil-entete { max-width: 1032px; }
.diapo { min-height: 520px; }
.grille { gap: 28px; }
.tuiles { gap: 22px; }
.duo { gap: 76px; }
.membre--principal { grid-template-columns: 288px 1fr; }
.membre--principal .membre__photo { width: 264px; height: 264px; }
.membre__photo { width: 150px; height: 150px; }
.carte-plan, .plan-statique img { height: 456px; }
@media (min-width: 1440px) {
  body { font-size: 18px; }
  .carte { padding: 38px; }
  .tuile { padding: 28px 24px; }
}
@media (max-width: 1024px) { .duo { gap: 40px; } .diapo { min-height: 460px; } }
@media (max-width: 680px) {
  .membre--principal { grid-template-columns: 1fr; }
  .membre--principal .membre__photo { width: 160px; height: 160px; }
  .membre__photo { width: 128px; height: 128px; }
  .diapo { min-height: 420px; }
  .carte-plan, .plan-statique img { height: 340px; }
  .grille { gap: 24px; }
}
@media (max-width: 380px) { .diapo { min-height: 400px; } .carte-plan, .plan-statique img { height: 280px; } .plan-statique img { height: 300px; } }

/* Colonnes étroites : la justification creuse des blancs, ces textes courts restent alignés à gauche */
@media (max-width: 1024px) { .carte p, .article-carte p { text-align: left; } }
@media (max-width: 680px) { .heros p, .diapo p, .aide p, .appel p, .valeur p { text-align: left; } }

/* Une teinte par carte et par icône, dans la palette (bleu nuit, doré, couleurs du Tchad adoucies) */
:root {
  --t1: #14213d; --t1-fond: #e6e9f0;
  --t2: #a27d2e; --t2-fond: #f6eedb;
  --t3: #9e1b32; --t3-fond: #f7e4e7;
  --t4: #1f4e9c; --t4-fond: #e3ebf7;
  --t5: #b88600; --t5-fond: #fbf1d3;
  --t6: #6b5a2e; --t6-fond: #efeadd;
}
.tuiles > :nth-child(6n+1), .grille > .carte:nth-child(6n+1) { --teinte: var(--t1); --teinte-fond: var(--t1-fond); }
.tuiles > :nth-child(6n+2), .grille > .carte:nth-child(6n+2) { --teinte: var(--t2); --teinte-fond: var(--t2-fond); }
.tuiles > :nth-child(6n+3), .grille > .carte:nth-child(6n+3) { --teinte: var(--t3); --teinte-fond: var(--t3-fond); }
.tuiles > :nth-child(6n+4), .grille > .carte:nth-child(6n+4) { --teinte: var(--t4); --teinte-fond: var(--t4-fond); }
.tuiles > :nth-child(6n+5), .grille > .carte:nth-child(6n+5) { --teinte: var(--t5); --teinte-fond: var(--t5-fond); }
.tuiles > :nth-child(6n+6), .grille > .carte:nth-child(6n+6) { --teinte: var(--t6); --teinte-fond: var(--t6-fond); }
.tuile { border-left: 4px solid var(--teinte, var(--or)); }
.tuile svg { color: var(--teinte, var(--or)); background: var(--teinte-fond, var(--ivoire)); border-radius: 10px; padding: 7px; width: 46px; height: 46px; }
.tuile:hover { color: var(--teinte, var(--or)); }
.grille > .carte { border-top: 4px solid var(--teinte, transparent); }
.grille > a.carte:hover { border-top-color: var(--teinte, var(--or)); }
.grille > .carte .carte__icone { background: var(--teinte-fond, var(--ivoire)); color: var(--teinte, var(--or)); }
.grille > .carte .carte__lien::after { color: var(--teinte, var(--or)); }

/* Sceau de l'en-tête encore agrandi */
.entete .conteneur { height: 156px; }
.entete .marque__sceau { width: 140px; height: 140px; }
@media (max-width: 1024px) { .entete .conteneur { height: 128px; } .entete .marque__sceau { width: 112px; height: 112px; } .menu { top: 128px; } }
@media (max-width: 680px) { .entete .conteneur { height: 112px; } .entete .marque__sceau { width: 98px; height: 98px; } .menu { top: 112px; } }
@media (max-width: 380px) { .entete .conteneur { height: 100px; } .entete .marque__sceau { width: 86px; height: 86px; } .menu { top: 100px; } .marque__nom { font-size: 1.05rem; } }

/* Laravel : éléments ajoutés au site dynamique */
.bouton--clair { background: var(--blanc); color: var(--nuit); }
.bouton--clair:hover { background: var(--or-clair); }
.filtres { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.pagination { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerte { background: #f7e4e7; color: #7a1427; border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.erreur { color: #9e1b32; font-size: .9rem; margin: 6px 0 0; text-align: left; }
.mention { font-size: .85rem; color: var(--texte-doux); margin-top: 14px; }
.tel__pays { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #c9ccd3; border-right: 0; border-radius: 8px 0 0 8px; background: var(--ivoire); }
.tel__pays select { border: 0; background: transparent; font: inherit; max-width: 150px; padding: 13px 0; }
.tel input { min-width: 0; flex: 1; }
.documents { list-style: none; padding: 0; }
.documents a { display: inline-flex; gap: 8px; align-items: center; }
.documents svg { width: 20px; height: 20px; color: var(--or); }
.plan ul { margin: 6px 0 10px; }
@media (max-width: 380px) { .tel { flex-direction: column; } .tel__pays { border-right: 1px solid #c9ccd3; border-radius: 8px 8px 0 0; } .tel input { border-radius: 0 0 8px 8px; } }

/* En-tête : nom, titre et menus agrandis en proportion du sceau */
.entete .marque__nom { font-size: 2.1rem; }
.entete .marque__titre { font-size: 1.02rem; }
.entete .menu a { font-size: 1.12rem; padding: 10px 12px; }
.entete .menu .bouton { font-size: 1.05rem; }
@media (max-width: 1360px) { .entete .marque__nom { font-size: 1.8rem; } .entete .marque__titre { font-size: .95rem; } .entete .menu a { font-size: 1.04rem; padding: 10px 9px; } }
@media (max-width: 1024px) { .entete .marque__nom { font-size: 1.75rem; } .entete .menu a { font-size: 1.15rem; padding: 14px 8px; } }
@media (max-width: 680px) { .entete .marque__nom { font-size: 1.45rem; } }
@media (max-width: 380px) { .entete .marque__nom { font-size: 1.2rem; } }

/* Menu ☰ jusqu'à 1240 px : la barre complète ne tient qu'au-delà, avec le sceau et le nom agrandis */
.entete .menu a, .entete .marque__titre { white-space: nowrap; }
@media (max-width: 1240px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 128px; left: 0; right: 0; background: var(--blanc); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; box-shadow: 0 12px 24px rgba(0, 0, 0, .08); }
  .menu.ouvert { display: flex; }
  .entete .menu a { padding: 14px 8px; border-bottom: 1px solid var(--ivoire); font-size: 1.15rem; }
  .menu .bouton { margin: 14px 0 0; justify-content: center; }
  .entete .conteneur { height: 128px; }
  .entete .marque__sceau { width: 112px; height: 112px; }
}
@media (max-width: 680px) { .menu { top: 112px; } .entete .conteneur { height: 112px; } .entete .marque__sceau { width: 98px; height: 98px; } .entete .marque__titre { white-space: normal; } }
@media (max-width: 380px) { .menu { top: 100px; } .entete .conteneur { height: 100px; } .entete .marque__sceau { width: 86px; height: 86px; } }

/* ===== Thème sombre (bouton dans la barre de menus, choix mémorisé) ===== */
.theme { background: none; border: 1px solid var(--gris); color: var(--nuit); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; margin-left: 6px; }
.theme:hover { border-color: var(--or); color: var(--or); }
.theme svg { width: 22px; height: 22px; }
.theme .lune { display: block; } .theme .soleil { display: none; }
.entete nav { display: flex; align-items: center; gap: 6px; }
.entete nav .theme { order: 2; }
@media (min-width: 1241px) { .entete nav .theme { order: 3; } }

html[data-theme="dark"] {
  color-scheme: dark;
  --ivoire: #0d1424;
  --gris: #2a3553;
  --texte: #d3d9e5;
  --texte-doux: #9aa4b8;
  --or-clair: #e9dcbc;
  --ombre: 0 8px 28px rgba(0, 0, 0, .45);
  --t1: #9fb3e0; --t1-fond: #1d2945;
  --t2: #d9b65e; --t2-fond: #2e2717;
  --t3: #e5798b; --t3-fond: #3a1d24;
  --t4: #7fa7ec; --t4-fond: #17284a;
  --t5: #f0c14b; --t5-fond: #33290f;
  --t6: #c9b27a; --t6-fond: #2b2618;
}
html[data-theme="dark"] body { background: var(--ivoire); color: var(--texte); }
html[data-theme="dark"] .theme { color: var(--or-clair); }
html[data-theme="dark"] .theme .lune { display: none; } html[data-theme="dark"] .theme .soleil { display: block; }
/* Surfaces claires devenues sombres */
html[data-theme="dark"] .entete, html[data-theme="dark"] .section--blanc, html[data-theme="dark"] .carte, html[data-theme="dark"] .tuile,
html[data-theme="dark"] .article-carte, html[data-theme="dark"] .membre, html[data-theme="dark"] .faq details, html[data-theme="dark"] .formulaire,
html[data-theme="dark"] .recherche__boite, html[data-theme="dark"] .bouton--clair, html[data-theme="dark"] .menu { background: #16203a; }
html[data-theme="dark"] .entete { box-shadow: 0 1px 0 var(--gris); }
html[data-theme="dark"] .section--nuit, html[data-theme="dark"] .aide, html[data-theme="dark"] .appel { background: #1b2848; }
html[data-theme="dark"] .pied { background: #080d18; }
/* Textes bleu nuit devenus clairs */
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] .marque__nom,
html[data-theme="dark"] .citation, html[data-theme="dark"] .signature, html[data-theme="dark"] strong { color: #f1e6c8; }
html[data-theme="dark"] .menu a, html[data-theme="dark"] .tuile, html[data-theme="dark"] .carte__lien, html[data-theme="dark"] .faq summary,
html[data-theme="dark"] .champ label, html[data-theme="dark"] .coordonnee strong, html[data-theme="dark"] .bouton--clair,
html[data-theme="dark"] .horaires td:last-child, html[data-theme="dark"] .recherche__boite h2 { color: #e8ecf4; }
html[data-theme="dark"] .menu a:hover, html[data-theme="dark"] .menu a[aria-current] { color: var(--or); }
html[data-theme="dark"] .menu .bouton { color: #fff; }
html[data-theme="dark"] a { color: #a9c1f0; }
html[data-theme="dark"] .bouton, html[data-theme="dark"] .pied a, html[data-theme="dark"] .bandeau a, html[data-theme="dark"] .heros a, html[data-theme="dark"] .fil a { color: inherit; }
html[data-theme="dark"] .bouton--or { color: #fff; }
html[data-theme="dark"] .bouton--nuit { background: #2b3d68; color: #fff; }
html[data-theme="dark"] .burger span { background: #e8ecf4; }
/* Champs de formulaire */
html[data-theme="dark"] .champ input, html[data-theme="dark"] .champ select, html[data-theme="dark"] .champ textarea,
html[data-theme="dark"] .recherche__boite input, html[data-theme="dark"] .tel__pays, html[data-theme="dark"] .tel span { background: #0f1830; color: var(--texte); border-color: #34416a; }
html[data-theme="dark"] .tel__pays select { color: var(--texte); }
html[data-theme="dark"] ::placeholder { color: #7e889c; }
html[data-theme="dark"] .alerte { background: #3a1d24; color: #f3b7c1; }
html[data-theme="dark"] .erreur { color: #f08a9b; }
/* Cartes à fond bleu nuit (Tarifs) : légèrement relevées */
html[data-theme="dark"] .carte[style*="--nuit"] { background: #22325a !important; }
html[data-theme="dark"] .liste-coche li::before { background-color: #3a3220; filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .article-carte__image--texte { background-color: #1b2848; }
html[data-theme="dark"] .carte-plan { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
@media (max-width: 1240px) { html[data-theme="dark"] .menu a { border-bottom-color: var(--gris); } }
@media (max-width: 1240px) { .entete nav .burger { order: 3; } }
@media (min-width: 681px) { .membre--principal p { text-align: justify; text-align-last: left; } }
