/* ==========================================================================
   Fisca'Ethique Conseils – feuille de style du site
   Charte : voir Charte_graphique_FiscaEthique.md (section 9 pour le web)
   ========================================================================== */

/* ---------- 1. Réglages de la charte ---------- */
:root {
  /* Bleu marine : la tradition et la stabilité. Titres, textes en couleur, barres, boutons, pictos. */
  --bleu: #1F3A5F;
  --bleu-survol: #142742;             /* boutons et liens survolés */
  --bleu-pale: #EEF2F7;               /* fonds légers : pastilles, encadrés */
  --fond-alterne: #F5F7FA;            /* blanc à peine bleuté : une carte sur deux, pied de page */
  /* Vert sapin : le signe distinctif de la finance responsable. Utilisé avec parcimonie,
     jamais pour les textes : bloc « Finance responsable », sceaux, cadre de la photo. */
  --sapin: #24533F;
  --sapin-pale: #EDF3EE;
  /* Or : la mise en lumière. Ombres sous les barres, anneaux, bordures. */
  --or: #E1B018;
  --texte: #333333;
  --sous-titre: #5C6977;
  --discret: #646D79;                 /* gris des petites mentions */
  --blanc: #FFFFFF;

  --fond-rgb: 253, 252, 250;          /* fond de page #FDFCFA */
  --fond: rgb(var(--fond-rgb));

  --largeur: 1100px;                  /* largeur du contenu */
  --cadre: 1920px;                    /* largeur maximale des décors (écrans ultra-larges) */
  --ombre-carte: 0 2px 6px rgba(0, 0, 0, .12);
  --ombre-doree: 0 3px 3px var(--or);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-anchor: none;   /* évite un recalage quand l'en-tête change de hauteur */
}

body {
  font-family: Calibri, Carlito, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

/* Lisibilité : chaque couleur de texte a au moins le contraste demandé par la norme d'accessibilité
   (4,5 pour un texte courant, 3 pour un grand titre), sur tous les fonds du site. */
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1, h2 { color: var(--bleu); }
h3 { color: var(--bleu); }
a { color: var(--bleu); }
img { display: block; max-width: 100%; height: auto; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }

/* ---------- 3. En-tête et menu ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--fond);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  transition: box-shadow .3s;
}
header.reduit { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

.barre-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  transition: height .3s;
}
header.reduit .barre-nav { height: 56px; }

.marque { display: flex; flex-shrink: 0; align-items: center; gap: 10px; text-decoration: none; }   /* le nom garde toute sa place */
.marque img { height: 44px; width: auto; transition: height .3s; }
header.reduit .marque img { height: 34px; }
.marque span { font-size: 1.2rem; font-weight: 700; color: var(--bleu); white-space: nowrap; }   /* le nom reste sur une ligne */

nav ul { display: flex; gap: 22px; list-style: none; }
nav a {
  padding: 6px 0;
  white-space: nowrap;                /* un lien ne passe jamais sur deux lignes */
  font-size: .98rem;
  color: var(--sous-titre);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover { color: var(--bleu); }
nav a.actif { color: var(--bleu); border-bottom-color: var(--or); }

.bouton-menu {
  display: none;
  padding: 6px 12px;
  font: inherit; color: var(--bleu);
  background: none;
  border: 1px solid var(--or); border-radius: 6px;
  cursor: pointer;
}

/* ---------- 4. Sections et éléments communs ---------- */
section { padding: 76px 0; border-top: 1px solid rgba(0, 0, 0, .06); }

/* Titre de section : barre bleu marine à ombre dorée, alignée sur la largeur du texte */
.entete { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.entete h2 { font-size: clamp(1.55rem, 3vw, 2rem); white-space: nowrap; }
.entete .barre {
  flex: 1; height: 30px;
  background: var(--bleu);
  box-shadow: var(--ombre-doree);
  border-radius: 0 4px 4px 0;
}

.sous-titre { max-width: 720px; margin-bottom: 36px; font-size: 1.1rem; color: var(--sous-titre); }

.carte {
  padding: 24px;
  background: var(--blanc);
  border: 1px solid var(--or); border-radius: 8px;
  box-shadow: var(--ombre-carte);
  transition: transform .25s, box-shadow .25s;
}
.carte.pale { background: var(--fond-alterne); }   /* encart « En quelques mots » */

/* Une carte sur deux en blanc bleuté, pour alterner avec le blanc */
.etapes li:nth-child(even) .carte,
.grille-3 > .carte:nth-child(even),
.etoile:nth-of-type(even) { background: var(--fond-alterne); }
/* Sur ces cartes bleutées, le médaillon passe en bleu pour rester visible */
.grille-3 > .carte:nth-child(even) .picto,
.etoile:nth-of-type(even) .picto {
  --anneau: var(--bleu); --anneau-pale: rgba(31, 58, 95, .35); --disque: var(--bleu-pale);
}
.carte h3 { margin-bottom: 6px; font-size: 1.12rem; }
@media (hover: hover) {
  .carte:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--or), 0 10px 22px rgba(0, 0, 0, .12); }
}

/* Pictogramme en « médaillon », comme le logo : disque clair, double anneau doré,
   dessin bleu marine avec une partie colorée (classe « accent »). */
.picto {
  --anneau: var(--or);                       /* couleur de l'anneau et de la partie colorée */
  --anneau-pale: rgba(225, 176, 24, .45);    /* fin anneau intérieur */
  --disque: var(--fond-alterne);               /* teinte du disque */
  --relief: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--anneau-pale);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 14px;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, var(--disque) 80%);
  border: 2px solid var(--anneau); border-radius: 50%;
  box-shadow: var(--relief), 0 2px 5px rgba(0, 0, 0, .18);
}
.picto svg {
  width: 28px; height: 28px;
  fill: none; stroke: var(--bleu); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.picto .accent { fill: var(--anneau, var(--or)); fill-opacity: .45; stroke: none; }

/* Carte avec picto à gauche du texte */
.ligne-picto { display: flex; gap: 16px; align-items: flex-start; }
.ligne-picto .picto { margin-bottom: 0; }

.grille-3 { display: grid; gap: 22px; }
.grille-3 { grid-template-columns: repeat(3, 1fr); }

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-weight: 700; color: #fff; text-decoration: none;
  background: var(--bleu); border-radius: 6px;
  box-shadow: var(--ombre-doree);
}
.btn:hover { background: var(--bleu-survol); }

/* ---------- 5. Accueil ---------- */
.accueil {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 90px 0 110px;
  border-top: none;
}

/* Fond : champ de blé transparent + voiles dans la couleur du fond */
.accueil::before,
.accueil::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: min(100%, calc(var(--cadre) + 400px));
  transform: translateX(-50%);
}
.accueil::before {
  z-index: -2;
  background: url("../images/ble.webp") center 40% / cover no-repeat;
  opacity: .28;
}
.accueil::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--fond-rgb), .75) 0%, rgba(var(--fond-rgb), .3) 50%, rgba(var(--fond-rgb), 0) 100%),
    linear-gradient(180deg, rgba(var(--fond-rgb), 0) 70%, var(--fond) 100%);
}
/* Écran ultra-large : la photo s'efface sur les côtés au lieu de s'étirer */
@media (min-width: 2320px) {
  .accueil::before,
  .accueil::after {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 200px, #000 calc(100% - 200px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 200px, #000 calc(100% - 200px), transparent 100%);
  }
}

.accueil-grille { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }   /* le logo garde sa taille, le titre prend le reste */

.titre-couverture {
  padding-left: 22px;
  border-left: 8px solid var(--bleu);
  box-shadow: -3px 0 6px -3px rgba(0, 0, 0, .25);
}
.accueil h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); color: var(--texte); }
.accroche { margin-top: 14px; font-size: 1.25rem; font-weight: 700; font-style: italic; color: var(--bleu); text-align: center; text-wrap: balance; }   /* lignes de longueur égale */

.signature { margin-top: 26px; color: var(--sous-titre); }
.signature strong { display: block; font-size: 1.1rem; color: var(--texte); }

.accueil .btn { margin-top: 30px; }

.logo-grand { display: flex; justify-content: center; }
.logo-grand img { width: 100%; max-width: 320px; }

/* Triangle bleu marine à bord doré, en bas à droite du cadre */
.triangle {
  position: absolute; bottom: 0;
  right: max(0px, calc((100vw - var(--cadre)) / 2));
  border-left: 150px solid transparent;
  border-bottom: 150px solid var(--or);
}
.triangle::after {
  content: "";
  position: absolute; top: 8px; right: 0;
  border-left: 142px solid transparent;
  border-bottom: 142px solid var(--bleu);
}

/* ---------- 6. Qui suis-je ---------- */
.presentation { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }

.portrait { position: relative; max-width: 320px; margin: 0 18px 18px 0; }
.portrait::before {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--sapin); border-radius: 10px;   /* cadre vert sapin : signe distinctif */
  box-shadow: var(--ombre-doree);
}
.portrait img {
  position: relative; z-index: 1;
  width: 100%;
  background: #fff;
  border: 1px solid var(--or); border-radius: 10px;
  box-shadow: var(--ombre-carte);
}

.presentation-texte p + p { margin-top: 16px; }
.presentation-texte .carte { margin-top: 26px; }
.presentation-texte ul { margin-top: 6px; padding-left: 20px; }

/* ---------- 7. Devise ---------- */
.devise { padding: 20px 0 76px; border-top: none; }
.devise-bloc {
  position: relative; overflow: hidden;
  padding: 52px 220px;
  text-align: center;
  background: var(--fond-alterne); border-radius: 8px;
}
.devise-bloc p {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem); font-weight: 700; font-style: italic; line-height: 1.35;
  color: var(--bleu);
}
/* Branches dans les coins, pointes vers le texte */
.devise-bloc img { position: absolute; width: 190px; }
.devise-bloc .gauche { left: 0; bottom: 0; }
.devise-bloc .droite { right: 0; top: 0; transform: rotate(180deg); }

/* ---------- 8. Méthode : frise des étapes ---------- */
.etapes {
  position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  list-style: none;
  counter-reset: etape;
}
.etapes::before {   /* ligne dorée qui relie les étapes */
  content: "";
  position: absolute; top: 22px; left: 8%; right: 8%;
  height: 3px;
  background: var(--or); border-radius: 2px;
}
.etapes li { position: relative; padding-top: 64px; counter-increment: etape; }
.etapes li::before {  /* pastille dorée numérotée */
  content: counter(etape);
  position: absolute; top: 0; left: 50%; z-index: 1;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  font-size: 1.15rem; font-weight: 700; color: var(--bleu);
  /* même médaillon que les pictos */
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, var(--fond-alterne) 80%);
  border: 2px solid var(--or); border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(225, 176, 24, .45), 0 2px 5px rgba(0, 0, 0, .18);
}
.etapes .carte { height: 100%; padding: 20px 16px; text-align: center; font-size: .95rem; }
.etapes .carte h3 { font-size: 1.02rem; }

.duree {
  display: inline-block;
  margin-bottom: 8px; padding: 3px 10px;
  font-size: .78rem; line-height: 1.35; color: var(--bleu);
  background: var(--bleu-pale); border-radius: 20px;
}

/* ---------- 9. Accompagnement ---------- */
#domaines .grille-3 p { font-size: .97rem; }

/* ---------- 9b. Mes engagements : constellation de cartes ----------
   Chaque engagement est une carte arrondie, avec son picto posé sur le bord haut.
   Grand écran : cartes placées librement (positions ci-dessous), sans grille.
   Écran moyen : cartes en colonne, alternées à gauche et à droite.
   Téléphone : cartes pleine largeur, légèrement décalées.
   Les traits dorés et les petites étoiles sont tracés par js/site.js. */
.constellation {
  position: relative;                 /* repère pour le tracé des traits */
  display: flex; flex-direction: column;
  padding-top: 32px;                  /* place pour le picto de la première carte */
}
.constellation-traits {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.constellation-traits line { stroke: var(--or); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.constellation-traits circle { fill: var(--or); }

.etoile {
  position: relative; z-index: 1;     /* passe devant les traits */
  width: 62%;
  padding: 44px 28px 26px;
  text-align: center;
  background: var(--blanc);
  border: 1px solid var(--or); border-radius: 22px;
  box-shadow: var(--ombre-carte);
}
.etoile .picto {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);   /* à cheval sur le bord de la carte */
  width: 64px; height: 64px; margin: 0;
  box-shadow: var(--relief), 0 0 0 5px var(--fond), 0 4px 10px rgba(0, 0, 0, .18);   /* anneau couleur du fond : coupe les traits */
}
.etoile .picto svg { width: 32px; height: 32px; }
.etoile h3 { margin-bottom: 8px; font-size: 1.12rem; }
.etoile p { font-size: .97rem; }

/* Écran moyen : colonne, cartes alternées */
.etoile + .etoile { margin-top: 48px; }
.etoile-1 { align-self: flex-start; margin-left: 4%; }
.etoile-2 { align-self: flex-end;   margin-right: 0; }
.etoile-3 { align-self: flex-start; margin-left: 9%; }
.etoile-4 { align-self: flex-end;   margin-right: 6%; }
.etoile-5 { align-self: flex-start; margin-left: 0; }
.etoile-6 { align-self: flex-end;   margin-right: 3%; }

/* Grand écran : constellation libre */
@media (min-width: 1100px) {
  .constellation { display: block; height: 740px; padding-top: 0; }
  .etoile { position: absolute; width: 330px; }
  .etoile[class*="etoile-"] { margin: 0; }
  /* Positions calculées pour laisser au moins 35 px entre une carte et le picto de sa voisine */
  .etoile-1 { left: 0;      top: 40px; }
  .etoile-2 { left: 365px;  top: 140px; }
  .etoile-3 { right: 0;     top: 0; }
  .etoile-4 { left: 20px;   top: 360px; }
  .etoile-5 { left: 370px;  top: 470px; }
  .etoile-6 { right: 20px;  top: 360px; }   /* sous la carte 3, plus longue depuis le 09/10 */
}

/* ---------- 9c. Ma vision : bandeaux verticaux et panneau ----------
   À gauche, les bandeaux : titre en haut, illustration en dessous, fond en dégradé.
   Au survol (ou au clic), le contenu s'affiche en grand à droite. */
.outils {
  display: grid;
  grid-template-columns: auto 1fr;    /* bandeaux à leur largeur, panneau sur le reste */
  gap: 28px;
  min-height: 420px;
}
.outils-bandeaux { display: grid; grid-auto-flow: column; grid-auto-columns: 130px; gap: 12px; }
.outils-panneaux { display: grid; }     /* le panneau prend toute la hauteur des bandeaux */

.bandeau {
  display: flex; flex-direction: column;
  padding: 0;
  overflow: hidden;
  font: inherit; color: var(--titre);
  background: var(--degrade);
  border: 2px solid transparent; border-radius: 16px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* Une couleur par bandeau, en dégradé vertical, alternant froid et chaud :
   vert sauge (froid), jaune ambré (chaud), gris ardoise (froid), roux du logo (chaud).
   Teintes assez soutenues en haut pour que le titre reste lisible. */
.bandeau:nth-child(1) { --degrade: linear-gradient(180deg, #4A7C65 0%, #3A6350 100%); --titre: #fff; }
.bandeau:nth-child(2) { --degrade: linear-gradient(180deg, #E8B023 0%, #CC8E1C 100%); --titre: var(--texte); }
.bandeau:nth-child(3) { --degrade: linear-gradient(180deg, #687582 0%, #56626E 100%); --titre: #fff; }
.bandeau:nth-child(4) { --degrade: linear-gradient(180deg, #9D6829 0%, #7F5220 100%); --titre: #fff; }

/* Bandeau survolé ou choisi : liseré blanc entouré d'un anneau doré, visible sur toutes les couleurs */
.bandeau:hover,
.bandeau.actif { border-color: #fff; box-shadow: 0 0 0 3px var(--or), var(--ombre-carte); }
.bandeau.actif { transform: translateY(-6px); }
.bandeau:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.bandeau-titre {
  padding: 18px 6px 14px;
  font-size: .95rem; font-weight: 700; line-height: 1.25;
}
.bandeau:not(:nth-child(2)) .bandeau-titre { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }   /* lisibilité des titres blancs */
.bandeau-image {
  flex: 1 1 0; min-height: 0;         /* occupe tout le reste du bandeau */
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  object-fit: cover;
  border-radius: 10px;
  opacity: .85;
  transition: opacity .25s;
}
.bandeau.actif .bandeau-image { opacity: 1; }

.panneau {
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 48px;
  background: var(--blanc);
  border: 1px solid var(--or); border-radius: 16px;
  box-shadow: var(--ombre-carte);
  animation: apparition .35s ease;
}
.panneau[hidden] { display: none; }
.panneau .picto { width: 88px; height: 88px; margin-bottom: 22px; }
.panneau .picto svg { width: 46px; height: 46px; }
.panneau h3 { margin-bottom: 12px; font-size: 1.8rem; }
.panneau p { font-size: 1.25rem; color: var(--sous-titre); }

@keyframes apparition {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 9d. Une relation qui se transmet (recommandation) ----------
   Un encart blanc bleuté : le texte à gauche, le bouton de partage et les réseaux à droite. */
.transmettre {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  padding: 38px 42px;
  background: var(--fond-alterne);
  border: 1px solid var(--or); border-radius: 16px;
  box-shadow: var(--ombre-carte);
}
.transmettre-texte p + p { margin-top: 12px; }
.transmettre-texte p:last-child { font-weight: 700; color: var(--bleu); }
.transmettre-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }

/* « Partagez ce site » : le message proposé, puis un bouton par réseau */
.partage { width: 100%; }
.partage h3 { margin-bottom: 10px; font-size: 1.25rem; color: var(--bleu); }
.partage-message {
  margin-bottom: 16px; padding: 12px 16px;
  font-size: .95rem; font-style: italic; text-align: left;
  background: var(--blanc); border-left: 4px solid var(--or); border-radius: 6px;
}
.partage-message::before { content: "« "; }
.partage-message::after { content: " »"; }
.partage-boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.partage-bouton {
  padding: 10px 14px;
  font: inherit; font-weight: 700; font-size: .98rem; color: #fff; text-align: center; text-decoration: none;
  background: var(--bleu); border: none; border-radius: 30px; cursor: pointer;
  box-shadow: var(--ombre-doree);
  transition: background .2s;
}
.partage-bouton:hover { background: var(--bleu-survol); }
.partage-bouton:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.partage-bouton[data-reseau="copier"], .partage-bouton[data-reseau="autre"] {
  grid-column: 1 / -1; color: var(--bleu); background: var(--blanc); border: 2px solid var(--bleu); box-shadow: none;
}
.partage-bouton[data-reseau="copier"]:hover, .partage-bouton[data-reseau="autre"]:hover { background: var(--bleu-pale); }
.partage-confirmation { display: block; margin-top: 8px; }
.partage-confirmation { min-height: 1.4em; font-size: .9rem; font-weight: 700; color: var(--bleu); }

/* ---------- 10. Réseaux sociaux (pied de page, sous les coordonnées) ----------
   Un lien sans adresse (href="") est caché, et le bloc aussi s'il n'a aucun lien rempli. */
.reseaux {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 34px;
  color: var(--sous-titre);
}
.reseaux a {
  padding: 8px 20px;
  font-weight: 700; color: var(--bleu); text-decoration: none;
  background: var(--blanc);
  border: 1px solid var(--or); border-radius: 30px;
  box-shadow: var(--ombre-carte);
  transition: background .2s, color .2s;
}
.reseaux a:hover { color: #fff; background: var(--bleu); }
.reseaux a[href=""],
.reseaux:not(:has(a:not([href=""]))) { display: none; }

/* ---------- 11. Pied de page : mentions légales et coordonnées ----------
   Fond blanc bleuté ; coordonnées en pastilles blanches ; mentions en petits encadrés par thème. */
footer {
  padding: 60px 0 24px;
  font-size: .9rem; color: var(--sous-titre);
  background: var(--fond-alterne);
  border-top: 3px solid var(--bleu);
  box-shadow: inset 0 3px 3px -2px var(--or);
}

.coordonnees {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 26px 0 30px;
  list-style: none;
}
.coordonnee {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px;
  color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--or); border-radius: 999px;   /* pastille */
  box-shadow: var(--ombre-carte);
}
.coordonnee .picto { width: 46px; height: 46px; margin: 0; }
.coordonnee .picto svg { width: 22px; height: 22px; }
.coordonnee strong {
  display: block;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bleu);
}
.coordonnee a { color: var(--texte); text-decoration: none; }
.coordonnee a:hover { color: var(--bleu); text-decoration: underline; }

.mentions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mention {
  padding: 18px 20px;
  font-size: .86rem;
  background: var(--blanc);
  border-top: 3px solid var(--bleu); border-radius: 12px;
}
.mention:last-child { grid-column: span 2; }   /* « Vos données » complète la 2e rangée */
.mention h3 { margin-bottom: 6px; font-size: .98rem; }
.mention p + p { margin-top: 6px; }

.bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-top: 30px;
  font-size: .86rem; color: var(--discret);
}
.bas img { height: 52px; width: auto; }

/* ---------- 12. Bouton « retour en haut » ---------- */
.haut {
  position: fixed; right: 22px; bottom: 22px; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  color: #fff;
  background: var(--bleu); border: 2px solid #fff; border-radius: 50%;
  box-shadow: var(--ombre-doree), 0 4px 12px rgba(0, 0, 0, .18);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.haut.affiche { opacity: 1; visibility: visible; transform: none; }
.haut:hover { background: var(--bleu-survol); }
.haut:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.haut svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 13. Apparition douce au défilement ---------- */
.revele { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.revele.visible { opacity: 1; transform: none; }

/* Visiteur qui limite les animations sur son appareil */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .revele { opacity: 1; transform: none; }
}

/* ---------- 14. Menu replié derrière le bouton « Menu » ----------
   En dessous de 1140 px, les six liens ne tiennent plus sur une ligne. */
@media (max-width: 1140px) {
  .bouton-menu { display: block; }
  nav ul {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--fond);
    border-bottom: 2px solid var(--bleu);
  }
  nav ul.ouvert { display: flex; }
  nav li a { display: block; padding: 14px 20px; border-top: 1px solid #EEE; }
}

/* ---------- 15. Tablette ---------- */
@media (max-width: 1000px) {
  .etapes { grid-template-columns: 1fr; gap: 18px; }
  .etapes::before { top: 0; bottom: 0; left: 21px; right: auto; width: 3px; height: auto; }
  .etapes li { padding: 0 0 0 64px; }
  .etapes li::before { top: 16px; left: 0; transform: none; }
  .etapes .carte { text-align: left; font-size: 1rem; }

  /* Outils : bandeaux en ligne au-dessus, panneau en dessous */
  .outils { grid-template-columns: 1fr; min-height: 0; }
  .outils-bandeaux { grid-auto-columns: minmax(0, 1fr); height: 300px; }
}

@media (max-width: 900px) {
  .grille-3 { grid-template-columns: 1fr 1fr; }
  .presentation { grid-template-columns: 260px 1fr; gap: 44px; }
  .devise-bloc { padding: 48px 150px; }
  .coordonnees { grid-template-columns: 1fr; max-width: 460px; }
  .mentions { grid-template-columns: 1fr 1fr; }
  .devise-bloc img { width: 140px; }
}

/* ---------- 16. Téléphone ---------- */
@media (max-width: 680px) {
  .transmettre { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; }
  body { font-size: 16px; }
  .conteneur { padding: 0 16px; }
  section { padding: 54px 0; }


  .accueil { padding: 56px 0 100px; }
  .accueil-grille, .presentation, .grille-3, .mentions { grid-template-columns: 1fr; }
  .mention:last-child { grid-column: auto; }
  .logo-grand { order: -1; }
  .logo-grand img { max-width: 180px; }
  .btn { display: block; text-align: center; }
  .triangle { border-left-width: 90px; border-bottom-width: 90px; }
  .triangle::after { top: 6px; border-left-width: 84px; border-bottom-width: 84px; }

  .entete h2 { white-space: normal; }
  .entete .barre { min-width: 40px; }

  .portrait { max-width: 240px; margin: 0 auto 30px; }
  .devise-bloc { padding: 66px 22px; }
  .devise-bloc img { width: 115px; }

  /* Constellation : cartes pleine largeur, légèrement décalées */
  .etoile { width: auto; padding: 44px 22px 24px; }
  .etoile[class*="etoile-"] { align-self: stretch; }
  .etoile:nth-of-type(odd)  { margin-left: 0;  margin-right: 8%; }
  .etoile:nth-of-type(even) { margin-left: 8%; margin-right: 0; }

  /* Outils : les bandeaux deviennent trois onglets horizontaux au-dessus du panneau */
  .outils { gap: 16px; }
  .outils-bandeaux { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; gap: 8px; }
  .bandeau { justify-content: center; }
  .bandeau.actif { transform: none; }
  .bandeau-titre { padding: 12px 4px; font-size: .85rem; line-height: 1.2; }
  .bandeau-image { display: none; }   /* trop petit pour une illustration */
  .panneau { padding: 28px 24px; }
  .panneau h3 { font-size: 1.4rem; }
  .panneau p { font-size: 1.08rem; }
}

/* ---------- Largeur de gamme (fin de « Sur quoi je vous accompagne ») ---------- */
.gamme {
  display: flex; align-items: center; gap: 30px;
  margin-top: 34px; padding: 26px 30px;
  background: var(--bleu-pale); border-radius: 8px;
  border-left: 6px solid var(--or);
}
.gamme-chiffre {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--blanc); border: 3px solid var(--or); box-shadow: var(--ombre-carte);
  color: var(--bleu); line-height: 1;
}
.gamme-chiffre strong { font-size: 2.9rem; }
.gamme-chiffre span { margin-top: 6px; font-size: 1rem; font-weight: 700; }
.gamme-texte h3 { margin-bottom: 8px; color: var(--bleu); font-size: 1.3rem; }
.gamme-texte p + p { margin-top: 8px; }
@media (max-width: 680px) {
  .gamme { flex-direction: column; text-align: center; padding: 24px 20px; border-left: none; border-top: 6px solid var(--or); }
  .gamme-chiffre { width: 120px; height: 120px; }
  .gamme-chiffre strong { font-size: 2.3rem; }
}

/* ---------- Familles de solutions (liste dépliable sous le bloc gamme) ---------- */
.familles { margin-top: 18px; }
.familles summary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--bleu);
  background: var(--blanc); border: 2px solid var(--bleu); border-radius: 30px;
}
.familles summary::-webkit-details-marker { display: none; }
.familles summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--or); }
.familles[open] summary::after { content: "−"; }
.familles summary:hover { background: var(--bleu-pale); }
.familles summary:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.familles-grille {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 22px;
}
.famille {
  padding: 20px; background: var(--blanc);
  border: 1px solid var(--or); border-radius: 8px; box-shadow: var(--ombre-carte);
}
.famille h4 { margin-bottom: 12px; font-size: 1.08rem; color: var(--bleu); }
.famille ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.famille li {
  padding: 4px 12px; font-size: .9rem; line-height: 1.4;
  background: var(--fond-alterne); border: 1px solid var(--or); border-radius: 20px;
}
@media (max-width: 1000px) { .familles-grille { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .familles { text-align: center; }
  .familles-grille { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Le vert, signe distinctif de la finance responsable ----------
   La structure du site reste bleu marine et or. Le vert sapin n'apparaît qu'à trois endroits :
   le bloc « Finance responsable », les sceaux posés sur ce qui en relève, et le cadre de la photo.
   Les textes restent en bleu ou en gris. */

/* Sceau : médaille vert sapin cerclée d'or, avec un rameau d'olivier (images/sceau.png, image simple 280 x 280).
   Il marque, comme un label, ce qui relève de la finance responsable. Posé en haut à droite d'une carte. */
.sceau {
  position: absolute; top: -14px; right: -14px; z-index: 3;
  width: 40px; height: 40px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.grille-3 > .carte { position: relative; }   /* repère pour placer le sceau (les cartes « étoile » le sont déjà) */

/* Sceau devant une ligne de texte (sous-titre de « Qui suis-je ? ») */
.avec-sceau { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.avec-sceau .sous-titre { margin-bottom: 0; }
.avec-sceau .sceau { position: static; flex-shrink: 0; width: 32px; height: 32px; }
/* Petite pastille posée à côté d'un titre (familles de « Mes solutions ») */
.sceau-titre { position: static; display: inline-block; width: 26px; height: 26px; margin-left: 6px; vertical-align: -6px; }

/* Bloc « Finance responsable » : le seul bloc en vert du site.
   Fond vert très pâle, barre de titre et grand sceau en vert sapin ; les textes restent en bleu et gris. */
.responsable { background: var(--sapin-pale); border-block: 1px solid #D5E3D8; }
.responsable .entete .barre { background: var(--sapin); }
.responsable-bloc {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  padding: 34px 40px;
  background: var(--blanc);
  border: 1px solid var(--or); border-left: 6px solid var(--sapin); border-radius: 12px;
  box-shadow: var(--ombre-carte);
}
.responsable-sceau { width: 140px; height: 140px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }   /* grand sceau */
.responsable-intro { margin-bottom: 16px; font-size: 1.12rem; }
.responsable-points { list-style: none; display: grid; gap: 10px; }
.responsable-points li { position: relative; padding-left: 26px; }
.responsable-points li::before {   /* petite puce : rond vert sapin cerclé d'or */
  content: ""; position: absolute; left: 0; top: .5em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--sapin); box-shadow: 0 0 0 2px var(--fond-alterne), 0 0 0 3px var(--or);
}
.responsable-points strong { color: var(--bleu); }
@media (max-width: 680px) {
  .responsable-bloc { grid-template-columns: 1fr; justify-items: center; gap: 22px; padding: 26px 20px; border-left: 1px solid var(--or); border-top: 6px solid var(--sapin); }
  .responsable-sceau { width: 110px; height: 110px; }
}
