/* Hub BriceKW — feuille de style principale
   Palette Automne Premium : ivoire, sable, chocolat, rouille, camel, kaki, navy.
   Parti pris assume : un seul univers visuel, clair et chaud, quelle que soit
   la preference du visiteur. Toutes les couleurs sont donc peintes explicitement. */

:root {
  --ivoire:     #FAF5EC;
  --ivoire-2:   #F3EADA;
  --sable:      #DECBB7;
  --sable-clair:#EADCC5;
  --chocolat:   #422618;
  --chocolat-2: #6B4E3A;
  --chocolat-3: #927761;
  --camel:      #C68B59;
  --rouille:    #B35433;
  --rouille-2:  #9A4526;
  --kaki:       #5B6346;
  --navy:       #1F2D3D;
  --bordeaux:   #631A24;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;

  --large: 1180px;
  --texte: 66ch;
  --rayon: 2px;
  --ombre: 0 1px 2px rgba(66, 38, 24, .06), 0 8px 24px rgba(66, 38, 24, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--chocolat);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--rouille); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rouille-2); }
:focus-visible { outline: 2px solid var(--rouille); outline-offset: 2px; }

.large { max-width: var(--large); margin-inline: auto; padding-inline: 1.5rem; }
.texte { max-width: var(--texte); }

/* ---------- typographie ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

.surtitre {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rouille);
  margin: 0 0 .9rem;
}
.chapo { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--chocolat-2); }

/* ---------- barre de navigation ---------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sable);
}
.entete .large { display: flex; align-items: center; gap: 1.5rem; min-height: 92px; }
.marque { display: block; flex: none; line-height: 0; }
.marque img { height: 54px; width: auto; }
@media (max-width: 640px) { .marque img { height: 40px; } }
.nav { display: flex; gap: 1.35rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--chocolat-2);
  text-decoration: none;
  font-size: .93rem;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--chocolat); border-bottom-color: var(--rouille); }

/* Sur telephone, neuf liens et un logo ne tiennent pas cote a cote : l'en-tete
   debordait vers la droite et le menu sortait de l'ecran. On empile, et on
   centre. Verifie a 360 et a 390 pixels de large. */
@media (max-width: 720px) {
  .entete .large { flex-direction: column; align-items: center; gap: .8rem;
                   min-height: 0; padding-block: .9rem; }
  .nav { margin-left: 0; justify-content: center; gap: .5rem 1.1rem; }
  .nav a { font-size: .88rem; }
}

/* ---------- boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  padding: .72rem 1.35rem;
  border-radius: var(--rayon);
  border: 1px solid var(--rouille);
  background: var(--rouille);
  color: var(--ivoire);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.bouton:hover { background: var(--rouille-2); border-color: var(--rouille-2); color: var(--ivoire); transform: translateY(-1px); }
.bouton.creux { background: transparent; color: var(--chocolat); border-color: var(--chocolat-3); }
.bouton.creux:hover { background: var(--sable-clair); color: var(--chocolat); border-color: var(--chocolat); }

/* ---------- sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.sable { background: var(--ivoire-2); border-block: 1px solid var(--sable); }
.section .entete-section { margin-bottom: 2.5rem; }

/* ---------- accueil ---------- */

.heros {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--sable);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(198, 139, 89, .16), transparent 60%),
    var(--ivoire);
}
.heros h1 { max-width: 18ch; }
.heros .chapo { max-width: 48ch; margin: 1.4rem 0 2.2rem; }
.heros .actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.portes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1.25rem; }
.porte {
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  text-decoration: none;
  color: var(--chocolat);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.porte:hover { border-color: var(--camel); box-shadow: var(--ombre); transform: translateY(-2px); color: var(--chocolat); }
.porte h3 { font-size: 1.28rem; }
.porte p { margin: 0; color: var(--chocolat-2); font-size: .95rem; }
.porte .fleche { color: var(--rouille); font-weight: 600; font-size: .9rem; margin-top: auto; padding-top: .6rem; }

/* Les listes numerotees des pages « Vendre » et « Investir aux USA ».
   La pastille chiffree est ecrite dans le gabarit : on retire donc le compteur
   natif de la liste, sinon le numero apparait deux fois. */
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  counter-reset: none;
}
.etapes li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.35rem 1.5rem;
}
.etapes .n {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ivoire);
  background: var(--rouille);
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
/* Simulateur de mensualite, sous chaque fiche de bien.
   Reglages a gauche, resultats a droite, empiles sous 780 px. */
.simulateur {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}
.simulateur .formulaire {
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.5rem;
}
.simulateur .caracteristiques { grid-template-columns: 1fr 1fr; }
.simulateur .sim-vedette { font-size: 1.75rem; color: var(--rouille); }
@media (max-width: 780px) {
  .simulateur { grid-template-columns: minmax(0, 1fr); }
}

.etapes h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
.etapes p { margin: 0; color: var(--chocolat-2); }
@media (max-width: 520px) {
  .etapes li { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
}

/* ---------- invitation à l'espace d'accueil ----------
   La chose la plus frappante du site méritait mieux qu'un troisième bouton :
   une bande pleine largeur, impossible à manquer, juste sous l'accroche. */

.invite-espace {
  position: relative;
  display: block;
  min-height: min(72vh, 620px);
  overflow: hidden;
  text-decoration: none;
  color: var(--ivoire);
  /* L'image elle-meme est posee dans le gabarit, avec son empreinte de date :
     sans elle, un visiteur deja venu garderait l'ancienne indefiniment. */
  background-color: #150e08;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-block: 1px solid var(--sable);
}
.invite-espace .voile {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(21, 14, 8, .86) 0%, rgba(21, 14, 8, .55) 45%, rgba(21, 14, 8, .12) 78%),
    linear-gradient(to top, rgba(21, 14, 8, .6) 0%, rgba(21, 14, 8, 0) 45%);
}
.invite-espace .dedans {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  max-width: var(--large);
  margin-inline: auto;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem;
}
.invite-espace .surtitre { color: var(--camel); margin: 0; }
.invite-espace .titre {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  text-shadow: 0 2px 24px rgba(21, 14, 8, .5);
}
.invite-espace .phrase {
  max-width: 34rem;
  color: rgba(250, 245, 236, .86);
  line-height: 1.6;
  margin-bottom: .8rem;
}
.invite-espace .bouton { pointer-events: none; }

/* L'image avance très légèrement au survol : la porte s'entrouvre. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .invite-espace { background-size: 104% auto; transition: background-size 1.2s ease; }
  .invite-espace:hover { background-size: 112% auto; }
}

@media (max-width: 640px) {
  .invite-espace { min-height: 0; background-position: 62% center; }
}

/* ---------- grille de biens ---------- */

.grille-biens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 1.75rem; }

.carte-bien {
  display: flex;
  flex-direction: column;
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: var(--chocolat);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.carte-bien:hover { border-color: var(--camel); box-shadow: var(--ombre); transform: translateY(-2px); color: var(--chocolat); }
.carte-bien .visuel { aspect-ratio: 4 / 3; background: var(--sable-clair); position: relative; overflow: hidden; }
.carte-bien .visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte-bien .vide {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--chocolat-3);
}
.carte-bien .corps { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.carte-bien .lieu {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--chocolat-3);
}
.carte-bien h3 { font-size: 1.18rem; }
.carte-bien .prix {
  font-family: var(--serif); font-size: 1.32rem; font-weight: 600; color: var(--rouille);
  font-variant-numeric: tabular-nums; margin-top: .25rem;
}
.carte-bien .details {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem;
  font-size: .87rem; color: var(--chocolat-2); margin-top: auto; padding-top: .7rem;
}

.etiquette {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  background: var(--chocolat); color: var(--ivoire);
  padding: .3em .65em; border-radius: var(--rayon);
}
.etiquette.porte-ouverte { background: var(--rouille); }
.etiquette.collegue { background: var(--kaki); }
.etiquette.vendue { background: var(--kaki); letter-spacing: .14em; }
.etiquette.compromis { background: var(--camel); color: var(--chocolat); }
.etiquette.vefa { background: var(--rouille-2); }

/* Une vente n'est plus a vendre : la carte se tient tranquille. */
.carte-bien.vendu { cursor: default; }
.carte-bien.vendu:hover { transform: none; box-shadow: none; border-color: var(--sable); }
.carte-bien.vendu .visuel img { filter: saturate(.82); }
.carte-bien.vendu .prix { color: var(--chocolat-2); }
.carte-bien .details .delai {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--kaki);
}

/* ---------- fiche bien ---------- */

.fiche-tete { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 900px) { .fiche-tete { grid-template-columns: 1fr; } }

.galerie { display: grid; gap: .6rem; grid-template-columns: repeat(4, 1fr); }
.galerie .principale { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.galerie figure { margin: 0; background: var(--sable-clair); overflow: hidden; border-radius: var(--rayon); }
.galerie img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; display: block; }
.galerie .principale img { aspect-ratio: 16 / 10; }
.galerie .agrandir { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie .agrandir img { transition: transform .35s ease; }
.galerie .agrandir:hover img { transform: scale(1.04); }
.galerie .agrandir:focus-visible { outline: 2px solid var(--rouille); outline-offset: 2px; }

/* ---------- visionneuse de photos ---------- */

#visionneuse { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 96vh; }
#visionneuse::backdrop { background: rgba(20, 12, 8, .92); }
#visionneuse img { display: block; max-width: 92vw; max-height: 86vh; margin: 0 auto; border-radius: var(--rayon); }
#visionneuse .compteur { text-align: center; color: var(--ivoire); font-family: var(--mono); font-size: .8rem; margin: .8rem 0 0; }
#visionneuse button { position: absolute; border: 0; background: rgba(20, 12, 8, .55); color: var(--ivoire); cursor: pointer; border-radius: 999px; line-height: 1; }
#visionneuse .fermer { top: .5rem; right: .5rem; width: 2.4rem; height: 2.4rem; font-size: 1.6rem; }
#visionneuse .precedente, #visionneuse .suivante { top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; font-size: 2rem; }
#visionneuse .precedente { left: .5rem; }
#visionneuse .suivante { right: .5rem; }
#visionneuse button:hover { background: rgba(20, 12, 8, .85); }

/* Sur telephone, une grille a quatre colonnes donne des vignettes minuscules. */
@media (max-width: 640px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

.encart {
  background: var(--ivoire-2);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.6rem 1.5rem;
  position: sticky;
  top: 92px;
}
.encart .prix { font-family: var(--serif); font-size: 2rem; color: var(--rouille); font-variant-numeric: tabular-nums; }

/* Flex plutot que grid : sur la derniere ligne, les cellules s'etirent pour
   occuper toute la largeur. Avec une grille a colonnes fixes, cinq
   caracteristiques sur quatre colonnes laissaient un trou beige a droite. */
.caracteristiques { display: flex; flex-wrap: wrap; gap: 1px; background: var(--sable); border: 1px solid var(--sable); border-radius: var(--rayon); overflow: hidden; }
.caracteristiques div { flex: 1 1 140px; background: var(--ivoire); padding: 1rem 1.1rem; }
.caracteristiques dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--chocolat-3); }
.caracteristiques dd { margin: .25rem 0 0; font-size: 1.1rem; font-family: var(--serif); font-variant-numeric: tabular-nums; }

/* ---------- formulaires ---------- */

form.formulaire { display: grid; gap: 1.1rem; }
.champ { display: grid; gap: .35rem; }
.champ label { font-size: .88rem; font-weight: 600; color: var(--chocolat-2); }
.champ input, .champ select, .champ textarea {
  font: inherit;
  color: var(--chocolat);
  background: var(--ivoire);
  border: 1px solid var(--chocolat-3);
  border-radius: var(--rayon);
  padding: .62rem .8rem;
  width: 100%;
}
.champ textarea { min-height: 7rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--rouille); outline: none; box-shadow: 0 0 0 3px rgba(179, 84, 51, .14); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .duo { grid-template-columns: 1fr; } }
.aide { font-size: .84rem; color: var(--chocolat-3); }

.message-ok, .message-erreur {
  border-radius: var(--rayon);
  padding: 1rem 1.2rem;
  border-left: 3px solid;
}
.message-ok { background: rgba(91, 99, 70, .1); border-left-color: var(--kaki); }
.message-erreur { background: rgba(99, 26, 36, .08); border-left-color: var(--bordeaux); }

/* ---------- partenaires ---------- */

.grille-partenaires {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}
.carte-partenaire {
  display: flex;
  flex-direction: column;
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  overflow: hidden;
  text-decoration: none;
  color: var(--chocolat);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.carte-partenaire:hover { border-color: var(--camel); box-shadow: var(--ombre); transform: translateY(-2px); color: var(--chocolat); }
.carte-partenaire .logo {
  height: 108px;
  display: grid;
  place-items: center;
  background: var(--ivoire-2);
  border-bottom: 1px solid var(--sable);
  padding: 1rem;
}
.carte-partenaire .logo img { max-height: 86px; max-width: 84%; width: auto; object-fit: contain; }
.carte-partenaire .initiales {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--camel);
  letter-spacing: .05em;
}
.carte-partenaire .corps { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }

/* Un portrait de personne se cadre serre et se montre en entier ; un logo
   d'entreprise se pose au milieu de sa zone sans etre rogne. D'ou deux
   traitements distincts pour la meme case. */
/* display:block et non grid : dans une grille « place-items:center », l'image
   n'est pas etiree et un height:100% ne se resout sur rien — elle gardait sa
   taille naturelle et debordait par dessus le texte. */
.carte-partenaire .logo.portrait { display: block; height: auto; padding: 0; }
.carte-partenaire .logo.portrait img { display: block; max-height: none; max-width: none; width: 100%; height: 210px; object-fit: cover; object-position: center 22%; }

/* « pied » est deja le pied de page du site, fond chocolat compris : reutiliser
   ce nom dans une carte lui collait un rectangle sombre. D'ou « actions ». */
.carte-partenaire .actions { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.carte-partenaire .lien-site { font-size: .86rem; color: var(--chocolat-3); }
.bouton.petit { padding: .5rem 1rem; font-size: .86rem; }

/* ---------- fenetre de mise en relation ---------- */

#fenetre-relation { border: 1px solid var(--sable); border-radius: var(--rayon); padding: 2rem 2rem 2.2rem; max-width: 30rem; width: calc(100vw - 2rem); background: var(--ivoire); color: var(--chocolat); }
#fenetre-relation::backdrop { background: rgba(66, 38, 24, .55); }
#fenetre-relation .fermer { position: absolute; top: .7rem; right: .9rem; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--chocolat-3); cursor: pointer; }
#fenetre-relation .fermer:hover { color: var(--chocolat); }
#fenetre-relation h3 { font-size: 1.3rem; }
.carte-partenaire .metier {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--chocolat-3);
}
.carte-partenaire h3 { font-size: 1.16rem; }
.carte-partenaire p { margin: .2rem 0 0; font-size: .92rem; color: var(--chocolat-2); }

.bandeaux { display: grid; gap: 1.2rem; }
.bandeau {
  display: block;
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--ivoire);
  transition: border-color .18s ease;
}
.bandeau:hover { border-color: var(--camel); }
.bandeau img { width: 100%; height: auto; display: block; }

/* ---------- livre d'or ---------- */

.livre-or {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}
.temoignage {
  margin: 0;
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-left: 3px solid var(--camel);
  border-radius: var(--rayon);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.temoignage .etoiles { color: var(--rouille); letter-spacing: .12em; font-size: .95rem; margin-bottom: .9rem; }
.temoignage .etoiles .vide { color: var(--sable); }
.temoignage blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--chocolat);
}
.temoignage blockquote::before { content: "« "; color: var(--camel); }
.temoignage blockquote::after { content: " »"; color: var(--camel); }
.temoignage figcaption {
  margin-top: 1.1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--sable);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.temoignage .auteur { font-weight: 600; font-size: .95rem; }
.temoignage .detail {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--chocolat-3);
}

/* ---------- espace conseil ---------- */

.sommaire {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--sable);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  overflow: hidden;
}
.sommaire a {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.3rem 1.4rem;
  background: var(--ivoire);
  text-decoration: none;
  color: var(--chocolat);
  transition: background .18s ease;
}
.sommaire a:hover { background: var(--sable-clair); color: var(--chocolat); }
.sommaire .numero {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--rouille);
}
.sommaire .nom { font-family: var(--serif); font-size: 1.14rem; font-weight: 600; line-height: 1.2; }
.sommaire .combien { font-size: .82rem; color: var(--chocolat-3); }

.questions { border-top: 1px solid var(--sable); max-width: 54rem; }

.question { border-bottom: 1px solid var(--sable); }
.question > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.4rem 1.1rem 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--chocolat);
  transition: color .15s ease;
}
.question > summary::-webkit-details-marker { display: none; }
.question > summary:hover { color: var(--rouille); }
.question > summary::after {
  content: "+";
  position: absolute;
  right: .4rem;
  top: 1rem;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--camel);
  transition: transform .2s ease, color .2s ease;
}
.question[open] > summary::after { content: "−"; color: var(--rouille); }
.question[open] > summary { color: var(--rouille); }

.question .reponse { padding: 0 2.4rem 1.6rem 0; }
.question .reponse p { margin: 0 0 .9rem; color: var(--chocolat-2); }
.question .reponse p:last-child { margin-bottom: 0; }
.question .reponse { overflow-x: auto; }
.question .reponse table { min-width: min(22rem, 100%); }
.question .reponse caption { padding-bottom: .5rem; }

/* ---------- marques « à compléter » des mentions légales ---------- */

.a-completer {
  background: rgba(204, 160, 70, .22);
  border-bottom: 1px dashed var(--camel);
  padding: 0 .25em;
  font-style: italic;
}

/* ---------- filtres ---------- */

.filtres { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
/* « min-width » sur un champ l'empeche de rétrécir : trois champs a 150 px
   debordaient d'un ecran de telephone. On garde la largeur confortable comme
   base, en autorisant la reduction quand la place manque. */
.filtres .champ { flex: 1 1 150px; min-width: 0; }
@media (max-width: 560px) {
  .filtres { display: grid; grid-template-columns: 1fr 1fr; }
  .filtres .champ:nth-child(3), .filtres .bouton { grid-column: 1 / -1; }
}

/* ---------- pied de page ---------- */

.pied {
  background: var(--chocolat);
  color: var(--sable);
  padding-block: 3.5rem 5rem;
  margin-top: 0;
}
.pied a { color: var(--sable-clair); }
.pied a:hover { color: var(--ivoire); }
.pied .colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; }
.pied h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--camel); margin: 0 0 .9rem; font-weight: 600; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; }
/* Rien ne doit finir en bas a droite : le bouton WhatsApp flottant y vit. */
.pied .bas {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(222, 203, 183, .22);
  font-size: .84rem; color: var(--chocolat-3);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: flex-start;
}
.pied .bas span { color: var(--sable); }

.logo-pied { height: 46px; width: auto; margin-bottom: 2.5rem; opacity: .95; }

.reseaux { display: flex; gap: .5rem 1.6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.reseaux a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sable);
  text-decoration: none;
  padding-bottom: .25rem;
  border-bottom: 1px solid rgba(222, 203, 183, .3);
}
.reseaux a:hover { color: var(--ivoire); border-bottom-color: var(--rouille); }

/* ---------- bouton WhatsApp flottant ---------- */

.flottant {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  box-shadow: var(--ombre);
}

/* ---------- espace d'administration ---------- */

.admin { --ivoire: #FFFDF9; }
.admin table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin th, .admin td { text-align: left; padding: .6rem .8rem .6rem 0; border-bottom: 1px solid var(--sable); vertical-align: top; }
.admin th { font-family: var(--mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--chocolat-3); }
.pastille { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .18em .55em; border: 1px solid currentColor; border-radius: var(--rayon); }
.pastille.en_ligne { color: var(--kaki); }
.pastille.brouillon { color: var(--camel); }
.pastille.vendu { color: var(--chocolat-3); }
.pastille.echec { color: var(--bordeaux); }

/* ---------- champ piege des formulaires ----------
   Invisible pour un humain, present pour un robot qui lit le code.
   On evite display:none, que certains robots savent detecter. */

.champ-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- cartes des rubriques de conseil ---------- */

.carte-rubrique {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--ivoire);
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  padding: 1.8rem 1.7rem 1.6rem;
  text-decoration: none;
  color: var(--chocolat);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.carte-rubrique:hover { border-color: var(--camel); box-shadow: var(--ombre); transform: translateY(-2px); color: var(--chocolat); }
.carte-rubrique .compteur {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rouille);
}
.carte-rubrique h2 { font-size: 1.42rem; }
.carte-rubrique p { margin: 0; color: var(--chocolat-2); font-size: .95rem; line-height: 1.55; }
.carte-rubrique .fleche { color: var(--rouille); font-weight: 600; font-size: .89rem; margin-top: auto; padding-top: .9rem; }

/* ---------- vidéos ---------- */

.grille-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }

.video { margin: 0; display: flex; flex-direction: column; }
.video .ecran,
.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sable);
  border-radius: var(--rayon);
  background: var(--chocolat);
  display: block;
}
.video .ecran {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.video .ecran:hover { border-color: var(--camel); transform: translateY(-2px); }
.video .ecran img { width: 100%; height: 100%; object-fit: cover; }
.video .sans-image {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sable);
}
.video .lire {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--ivoire);
  text-shadow: 0 2px 18px rgba(21, 14, 8, .8);
  background: radial-gradient(circle at center, rgba(179, 84, 51, .85) 0 2.6rem, transparent 2.7rem);
  transition: transform .18s ease;
}
.video .ecran:hover .lire { transform: scale(1.08); }
.video .duree {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  font-family: var(--mono);
  font-size: .72rem;
  background: rgba(21, 14, 8, .78);
  color: var(--ivoire);
  padding: .18em .5em;
  border-radius: 2px;
}
.video figcaption { padding-top: .9rem; }
.video figcaption h3 { font-size: 1.1rem; }
.video figcaption p { margin: .35rem 0 0; font-size: .92rem; color: var(--chocolat-2); }

/* ---------- portrait d'un membre du reseau ---------- */

.portrait-partenaire {
  width: 170px; height: 170px; object-fit: cover; object-position: center top;
  border-radius: 50%; margin-bottom: 1.8rem;
  border: 3px solid var(--ivoire-2); box-shadow: 0 6px 18px rgba(66, 38, 24, .16);
}
@media (max-width: 640px) {
  .portrait-partenaire { width: 130px; height: 130px; }
}

/* ---------- phrases en exergue ---------- */

.devises { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.devises li, p.devise {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.45;
  padding-left: 1rem; border-left: 2px solid var(--camel);
}
p.devise { margin: 1.2rem 0 0; }
p.devise::before { content: "« "; color: var(--camel); }
p.devise::after { content: " »"; color: var(--camel); }
.devises li::before { content: "« "; color: var(--camel); }
.devises li::after { content: " »"; color: var(--camel); }
