/* ============================================================
   IDV Management — Design System
   Palette: navy profond + accent or/ambre
   Easy retheme: change the variables in :root
   ============================================================ */

:root {
  /* Brand colors — alignés sur le logo (fond pétrole #073246 + orange #F7A836) */
  --navy: #0E3A52;          /* pétrole foncé — titres */
  --navy-700: #155270;
  --navy-900: #06283A;      /* le plus foncé — footer */
  --header: #083046;        /* fond de l'en-tête et du pied : bleu officiel du logo (.ai) */
  --accent: #F7A836;        /* orange officiel du logo (.ai) */
  --accent-600: #A85E08;    /* orange de TEXTE sur fond clair : 4,9:1 sur blanc ; sur fond foncé, utiliser --accent */
  --accent-soft: #FDEACB;
  --teal: #2E8AA0;          /* highlight secondaire */

  --ink: #344A58;
  --muted: #556B7A;
  --line: #E3EAEF;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FA;
  --cream: #FFF8EE;          /* fond chaud des encadrés */
  --sur-fonce: #D8E5EE;      /* textes sur fond foncé : principal */
  --sur-fonce-2: #B7C9D6;    /* secondaire (7:1 et plus) */
  --sur-fonce-3: #93AAB9;    /* petits caractères (5:1 et plus) */
  --bg-navy: #0A3147;
  --white: #FFFFFF;

  /* Typography */
  /* Polices du système : aucun fichier ni service externe (San Francisco sur Apple, Segoe UI sur Windows, Roboto sur Android) */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Spacing & shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(8, 48, 70, .06), 0 1px 2px rgba(8, 48, 70, .04);
  --shadow: 0 12px 30px rgba(8, 48, 70, .09);
  --shadow-lg: 0 26px 60px rgba(8, 48, 70, .14);
  --container: 1160px;
  --transition: .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.18; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
strong { color: var(--navy-700); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt {
  background-color: var(--bg-alt);
  background-size: cover;
  background-position: center;
}
.section--navy { background-color: var(--bg-navy); background-image: linear-gradient(rgba(10,49,71,.80), rgba(10,49,71,.86)), url("../img/bg-hero-2026.jpg"); background-size: cover; background-position: center; color: #DCE6F2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
  line-height: 1.2; /* sans ça, les boutons héritent de l'interligne du texte (1,75) et sont trop hauts */
}
.btn--primary { background: var(--accent); color: var(--navy-900); }
.btn--primary:hover { background: #FFB84D; color: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-600); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--accent); color: var(--navy-900); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 14px 28px; font-size: 1rem; } /* un seul « grand » bouton sur tout le site (51 px) */
/* boutons compacts dans la barre d'en-tête */
.nav__cta { padding: 10px 18px; font-size: .92rem; border-width: 1px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.18rem; }
.brand:hover { color: var(--navy); }
.brand__mark {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: var(--accent); display: grid; place-items: center;
  font-weight: 800; font-size: .92rem; letter-spacing: .5px;
  box-shadow: var(--shadow-sm);
}
.brand__name small { display: block; font-size: .64rem; font-weight: 500; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { position: relative; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: 9px; text-align: center;
  font-family: var(--font-display); font-weight: 500; font-size: .96rem; color: var(--navy);
}
.nav__link:hover, .nav__link.is-active { background: var(--bg-alt); color: var(--accent-600); }

.nav__right { display: flex; align-items: center; gap: 14px; }

/* Sélecteur de langue : liste déroulante native (sélecteur du système sur téléphone) */
.lang-select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 6px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .3px;
  padding: 8px 28px 8px 13px; transition: border-color var(--transition);
}
.lang-select:hover, .lang-select:focus { border-color: var(--accent); outline: none; }
.lang-select option { color: var(--navy); background: #fff; }

/* Mobile toggle */
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); position: relative; margin: 0 auto; transition: all var(--transition);
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, rgba(6,40,58,.84) 0%, rgba(14,58,82,.72) 55%, rgba(21,82,112,.82) 100%), url("../img/bg-hero-2026.jpg"); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px circle at 82% 18%, rgba(247,168,54,.22), transparent 60%),
              radial-gradient(480px circle at 8% 95%, rgba(21,82,112,.18), transparent 55%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: var(--sur-fonce); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 999px; font-size: .85rem; color: #E6EEF8; }
a.hero__badge { text-decoration: none; cursor: pointer; transition: all var(--transition); }
a.hero__badge:hover { background: rgba(255,255,255,.16); border-color: var(--accent); color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(6px); text-align: center; }
.hero__card .stat-row { justify-content: center; }
.hero__card h3 { color: #fff; }
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: 2rem; color: var(--accent); display: block; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--sur-fonce-2); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-600); margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.card--link { display: flex; flex-direction: column; }
.card__more { margin-top: auto; padding-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--accent-600); display: inline-flex; align-items: center; gap: 6px; }
.card--feature { background: linear-gradient(160deg, var(--navy), var(--navy-700)); color: #E3ECF7; border: 0; }
.card--feature h3 { color: #fff; }
.card--feature p { color: var(--sur-fonce-2); }
.card--feature .btn { margin-top: 20px; }
.card--feature .card__icon { background: rgba(247,168,54,.18); color: var(--accent); }

/* ---------- Cartes à révélation d'image au survol (section "Pourquoi") ---------- */
.cards-reveal .card { position: relative; overflow: hidden; isolation: isolate; }
.cards-reveal .card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(6,40,58,.88), rgba(14,58,82,.82)), url("../img/bg-hero-2026.jpg");
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity .4s ease, transform .6s ease;
}
.cards-reveal .card:hover { border-color: transparent; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cards-reveal .card:hover::before { opacity: 1; transform: scale(1); }
.cards-reveal .card:hover h3,
.cards-reveal .card:hover p { color: #fff; }
.cards-reveal .card:hover .card__icon { background: rgba(255,255,255,.16); color: var(--accent); }

/* Service split (two métiers) */
.metier { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.metier__item { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 40px; color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.metier__item--syndic { background: linear-gradient(150deg, var(--navy-900), var(--navy)); }
.metier__item--privative { background: linear-gradient(150deg, var(--teal), #1d6470); }
.metier__item h3 { color: #fff; font-size: 1.6rem; }
.metier__item p { color: rgba(255,255,255,.85); }
.metier__tag { position: absolute; top: 26px; right: 26px; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; background: rgba(255,255,255,.15); padding: 6px 12px; border-radius: 999px; }

/* ---------- Trust band ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.trust__item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.trust__item svg { width: 22px; height: 22px; color: var(--accent-600); flex-shrink: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step__num { counter-increment: step; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--accent); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; }
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: .25em; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Article / content pages ---------- */
.page-hero { background: linear-gradient(160deg, rgba(6,40,58,.84), rgba(14,58,82,.80)), url("../img/bg-hero-2026.jpg"); background-size: cover; background-position: center; color: #fff; padding: 64px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content:""; position:absolute; inset:0; background: radial-gradient(500px circle at 85% 10%, rgba(247,168,54,.18), transparent 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--sur-fonce); max-width: 700px; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: var(--sur-fonce-2); margin-bottom: 16px; }
.breadcrumb a { color: var(--sur-fonce); }

.layout-doc { display: grid; grid-template-columns: 250px 1fr; gap: 50px; align-items: start; }
.doc-nav { position: sticky; top: 90px; }
.doc-nav h4 { font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.doc-nav a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; }
.doc-nav a:hover, .doc-nav a.is-active { color: var(--navy); border-left-color: var(--accent); font-weight: 500; }

.doc-section { padding: 14px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 16px; scroll-margin-top: 90px; }
.doc-section:last-child { border-bottom: 0; }
.doc-section h2 { display: flex; align-items: center; gap: 14px; }
.doc-section h2 .num { flex-shrink:0; width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; background: var(--accent-soft); color: var(--navy); display: grid; place-items: center; font-family: var(--font-display); }
.callout { background: var(--cream); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-600); }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; margin: 0; }

/* ---------- Team ---------- */
.member { text-align: center; }
.member__photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; box-shadow: var(--shadow); }
.member__role { color: var(--accent-600); font-weight: 600; font-family: var(--font-display); font-size: .95rem; }

/* ---------- Map ---------- */
#map { height: 540px; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 1; }
.map-wrap { position: relative; }
/* Boutons de zoom + / − bien visibles */
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 24px !important; color: var(--navy) !important; font-weight: 700; }
.leaflet-control-zoom a:hover { background: var(--accent-soft) !important; color: var(--accent-600) !important; }
.map-hint { text-align: center; font-size: .86rem; color: var(--muted); margin-top: 12px; }
.map-hint svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; color: var(--accent-600); }
@media (max-width: 760px) { #map { height: 420px; } }
/* Pin (icône) d'adresse */
.copro-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(8,48,70,.35)); transition: transform .15s ease; cursor: pointer; }
.copro-pin:hover svg { transform: scale(1.18); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; justify-content: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.map-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--accent-600); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); }
.leaflet-popup-content { font-family: var(--font-sans); }
.leaflet-popup-content b { font-family: var(--font-display); color: var(--navy); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink); background: var(--bg-alt); transition: border var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,168,54,.18); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field .req { color: var(--accent-600); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-success { display: none; background: #E7F6EC; border: 1px solid #B6E0C4; color: #1E6B3A; padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 16px; }
.form-success.show { display: block; }
.form-error { display: none; background: #FCEBEA; border: 1px solid #F3C2BE; color: #9B2C22; padding: 16px 20px; border-radius: var(--radius-sm); margin-top: 16px; }
.form-error.show { display: block; }
.btn.is-loading, .btn[disabled] { opacity: .65; pointer-events: none; cursor: default; }

/* ---------- Contact info ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-list svg { width: 22px; height: 22px; color: var(--accent-600); flex-shrink: 0; margin-top: 3px; }
.info-list a { color: var(--ink); }
.info-list b { display: block; font-family: var(--font-display); color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--accent), var(--accent-600)); border-radius: var(--radius-lg); padding: 50px; text-align: center; color: var(--navy-900); }
.cta-band h2 { color: var(--navy-900); }
.cta-band p { color: rgba(8,48,70,.8); max-width: 600px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--header); color: var(--sur-fonce-2); padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; }
.footer__contact { margin-top: 18px !important; }
.footer__contact li { margin-bottom: 4px; }
.footer-grid a { color: var(--sur-fonce-2); font-size: .94rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .94rem; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.footer__brand .brand__mark { width: 40px; height: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--sur-fonce-3); }
.member--sticky { position: sticky; top: 110px; }
@media (max-width: 980px) { .member--sticky { position: static; } }
.member__photo--img {width: 200px; height: 200px; padding: 0; overflow: hidden; border: 4px solid var(--accent); }
.member__photo--img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.footer-bottom a { color: var(--sur-fonce-2); }
.footer-bottom a:hover { color: var(--accent); }
/* Mentions légales obligatoires (art. 7 du Code de déontologie IPI) */
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .8rem; line-height: 1.6; color: var(--sur-fonce-3); }
.footer-legal p { margin: 0 0 8px; }
.footer-legal strong { color: var(--sur-fonce-2); font-weight: 600; }
/* Donnée manquante : doit disparaître avant la mise en ligne */
.a-completer { background: #FFE58A; color: #5A4300; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* ---------- i18n language blocks ----------
   On masque les langues NON actives. Le :not(.lang-active) + !important
   garantit que rien (ex. .map-legend span { display:inline-flex }) ne ré-affiche
   les langues masquées. Les éléments actifs gardent leur affichage naturel
   (div = block, span = inline / inline-flex selon le contexte). */
.lang-group > [data-lang]:not(.lang-active) { display: none !important; }
.lang-pending { font-size: .82rem; font-style: italic; color: var(--muted); background: var(--accent-soft); display: inline-block; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hide { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
  .metier { grid-template-columns: 1fr; }
  .layout-doc { grid-template-columns: 1fr; gap: 24px; }
  .doc-nav { position: static; }
  .doc-nav ul { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .doc-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__marque { grid-column: 1 / -1; }
}
/* En-tête : bascule en menu burger dès 1180px (place pour 2 boutons + langues uniquement sur grand écran) */
.nav__item--cta { display: none; }
@media (max-width: 1180px) {
  .nav__menu { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--header); border-bottom: 1px solid rgba(255,255,255,.10); padding: 14px 20px 22px; gap: 2px; box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - 74px); overflow-y: auto; }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__link { padding: 13px 12px; border-radius: 9px; text-align: left; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__item--cta { display: block; }
  .nav__item--cta a { color: var(--accent); font-weight: 700; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* téléphone : coordonnées en haut, les deux listes de liens côte à côte */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid li { font-size: .9rem; }
  .cta-band, .form-card, .hero__card { padding: 28px; }
}

/* ============================================================
   BRAND / EN-TÊTE FONCÉ — pour accueillir le logo (blanc + orange)
   ============================================================ */
/* En-tête et pied de page : même couleur pleine (--header), quelle que soit la page dessous */
.site-header { background: var(--header); border-bottom: 1px solid rgba(255,255,255,.10); }
/* logo-idv.svg : vectoriel, tiré du .ai officiel, recadré (ratio ≈ 6,3:1) */
.brand__logo { height: 28px; width: auto; display: block; }
.nav__link { color: #D8E5EE; }
/* Menu identique sur toutes les pages : la page en cours est seulement en orange, sans case */
.nav__link:hover, .nav__link.is-active { background: transparent; color: var(--accent); }
.nav__toggle { background: transparent; border-color: rgba(255,255,255,.25); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { background: #fff; }
/* footer logo */
.footer__logo { height: 26px; width: auto; display: block; margin-bottom: 18px; }

/* ============================================================
   ALLÈGEMENT (oct. 2026) — plus d'air, moins d'effets, lecture posée.
   Seuls restent sombres : le haut de page, les deux métiers, le pied de page.
   ============================================================ */
/* Typographie adoucie : une seule police (Inter), texte moins noir, gras discret */
body { line-height: 1.75; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.015em; }
h1 { letter-spacing: -.025em; }
strong { font-weight: 600; color: var(--navy); }
.section--navy strong, .hero strong, .card--feature strong { color: inherit; }
.section { padding: 104px 0; }
.lead { font-size: 1.12rem; line-height: 1.7; }
/* Lignes de lecture courtes (~70 caractères) */
.section p, .section li, .section--tight p, .section--tight li { max-width: 70ch; }
.center p, p.center, .map-hint { margin-left: auto; margin-right: auto; }

/* En-tête : le logo ne se comprime plus ; doublons retirés sur grand écran */
.brand, .brand__logo { flex-shrink: 0; }
.nav__link { white-space: nowrap; }
@media (min-width: 1181px) {
  .nav__item--secondary { display: none; }
  /* Barre harmonisée : liens, langue et bouton sur la même hauteur (34 px) */
  .nav__link { line-height: 1.2; padding-top: 8px; padding-bottom: 8px; }
  .nav__menu > li { margin-bottom: 0; }   /* la marge générale des listes décalait les liens vers le haut */
  /* « Votre espace » (Optipro) encadré ; « En cas d'urgence » n'est plus que dans le menu mobile */
  .nav__link--espace { border: 1px solid var(--accent); border-radius: 999px; padding-top: 7px; padding-bottom: 7px; padding-left: 14px; padding-right: 14px; margin-left: 6px; }
  .nav__link--espace:hover { background: rgba(247,168,54,.14); color: #fff; }
  .nav__cta { line-height: 1.2; padding: 8px 16px; font-size: .86rem; }
  /* « Reprise de votre copropriété » est plus long que l'ancien « Demander un devis » */
  .nav { gap: 12px; }
  .nav__right { gap: 8px; }
  .nav__link { padding-left: 11px; padding-right: 11px; }
}

/* Fonds clairs et unis (plus de photo en filigrane) */
.section--alt { background-image: none; background-color: #F4F7FA; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background-image: none; background-color: var(--bg-alt); color: var(--ink); }
.section--navy h2, .section--navy h3 { color: var(--navy); }
.section--navy .eyebrow { color: var(--accent-600); }
.section--navy .card--feature h3 { color: #fff; }

/* Cartes : survol discret ; « Pourquoi IDV » en simple grille d'icônes */
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.cards-reveal { gap: 48px 44px; }
.cards-reveal .card { background: transparent; border: 0; padding: 0; }
.cards-reveal .card::before { display: none; }
.cards-reveal .card:hover { transform: none; box-shadow: none; }
.cards-reveal .card:hover h3 { color: var(--navy); }
.cards-reveal .card:hover p { color: var(--muted); }
.cards-reveal .card:hover .card__icon { background: var(--accent-soft); color: var(--accent-600); }
.cards-reveal .card__icon { width: 44px; height: 44px; margin-bottom: 14px; }
.cards-reveal .card__icon svg { width: 22px; height: 22px; }
.metier__item { min-height: 250px; }

/* Pages de contenu : sections plus aérées, titres plus calmes */
.doc-section { padding: 30px 0 52px; }
.doc-section h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }

/* Carte : fond gris clair, les pins orange ressortent */
#map { box-shadow: none; border: 1px solid var(--line); }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.05) contrast(.9); }

/* FAQ en accordéon */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-600); transition: transform var(--transition); }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent-600); }
.faq p { margin: 0 0 22px; color: var(--muted); }

/* Document à télécharger */
.doc-dl { display: flex; gap: 20px; align-items: flex-start; }
.doc-dl .card__icon { flex-shrink: 0; margin-bottom: 0; }
.doc-dl + .doc-dl { margin-top: 16px; }
@media (max-width: 720px) { .doc-dl { display: block; } .doc-dl .card__icon { margin-bottom: 14px; } }
.doc-dl__liens { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.doc-dl__liens .btn { padding: 9px 20px; font-size: .92rem; }

/* Numéros d'urgence */
.urgence-num { display: block; color: var(--ink); }
.urgence-num b { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--accent-600); margin-bottom: 8px; white-space: nowrap; }

/* ---------- Apparition au défilement (.reveal, voir main.js) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media print { .js-reveal .reveal { opacity: 1; transform: none; } }

/* Rejoindre l'équipe : encadré de candidature */
.candidature { text-align: center; padding: 44px 36px; }
.candidature p { margin-left: auto; margin-right: auto; }
.candidature .btn { margin-top: 8px; }

/* Conditions générales : intertitres de partie */
.cg-partie { font-size: 1.05rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-600); margin: 44px 0 4px; }
.doc-section h3 { font-size: 1.2rem; }
/* Courtage : grille de tarifs */
.tarif { text-align: center; display: flex; flex-direction: column; }
.tarif__type { display: block; font-size: .82rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tarif__prix { display: block; font-size: 2.4rem; font-weight: 600; color: var(--navy); line-height: 1.1; white-space: nowrap; }
.tarif .tarif__tva { font-size: .88rem; color: var(--accent-600); margin: 8px auto 14px; }
.tarif p { font-size: .95rem; }
.tarifs__note { text-align: center; margin: 28px auto 0; font-size: .92rem; color: var(--muted); }

/* Pages « Syndic à … » */
.chiffres__inner--3 { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
.rues { justify-content: center; margin: 26px auto 0; max-width: 900px; }
.communes-liens { text-align: center; margin: 18px auto 0; font-weight: 500; }
.communes-liens a { color: var(--accent-600); }

/* ---------- Accueil, lot 1 ---------- */
/* Haut de page : voile plus léger, un seul bouton + un lien */
/* voile dense côté texte (lisibilité), léger côté photo de Thibault */
.hero { background-image: linear-gradient(90deg, rgba(6,40,58,.92) 0%, rgba(6,40,58,.84) 45%, rgba(14,58,82,.52) 100%), url("../img/bg-hero-2026.jpg"); }
@media (max-width: 980px) { .hero { background-image: linear-gradient(rgba(6,40,58,.86), rgba(6,40,58,.86)), url("../img/bg-hero-2026.jpg"); } }
.hero__cta { align-items: center; gap: 26px; }
/* bouton du haut de l'accueil : taille d'un bouton normal (68 -> ~52 px de haut) */
.hero__cta .btn--lg { padding: 14px 28px; font-size: 1rem; line-height: 1.2; }
.hero__link { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 5px; }
.hero__link:hover { color: var(--accent); text-decoration-color: var(--accent); }
/* Thibault : visage + phrase signée */
.hero__person { margin: 0; text-align: center; color: #fff; }
.hero__person img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin: 0 auto 22px; border: 4px solid var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.hero__person blockquote { margin: 0 auto 14px; max-width: 340px; font-size: 1.15rem; line-height: 1.5; font-weight: 500; text-wrap: balance; }
.hero__person strong { display: block; color: #fff; font-weight: 600; }
.hero__person span { font-size: .9rem; color: var(--sur-fonce); }
/* Bandeau de chiffres */
.chiffres { background: #fff; border-bottom: 1px solid var(--line); }
.chiffres__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.chiffre { text-align: center; color: var(--muted); }
.chiffre b { display: block; font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.chiffre span { font-size: .92rem; }
a.chiffre b { color: var(--accent-600); }
a.chiffre:hover span { color: var(--navy); }
/* Reprise en 4 étapes */
.etapes { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
/* chaque étape = une carte blanche bordée : un fond teinté seul ne sépare rien */
.etapes li { max-width: none; margin: 0; text-align: center; font-weight: 500; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px 26px; box-shadow: var(--shadow-sm); }
.etapes__num { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 600; }
.lien-fleche { font-weight: 600; color: var(--accent-600); }
.lien-fleche:hover { color: var(--navy); }
/* Métiers : cartes claires avec liseré de couleur */
.metier__item { background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--navy); min-height: 0; justify-content: flex-start; padding: 34px; transition: transform var(--transition), box-shadow var(--transition); }
.metier__item--syndic { background: #fff; }
.metier__item--privative { background: #fff; border-top-color: var(--accent); }
.metier__item h3 { color: var(--navy); }
.metier__item p { color: var(--muted); }
.metier__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.metier__tag { position: static; align-self: flex-start; margin-bottom: 16px; background: var(--bg-alt); color: var(--navy); }
@media (max-width: 980px) {
  .chiffres__inner, .etapes { grid-template-columns: repeat(2, 1fr); }
  .hero__person img { width: 180px; height: 180px; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .cards-reveal { gap: 32px; }
  /* Barre du téléphone : logo + langue + menu doivent tenir sur 327 px */
  .nav, .nav__right { gap: 10px; }
  .brand__logo { height: 18px; }
}

/* Bas d'accueil allégé (2026-10-30) : bande Optipro fine + bandeau d'appel clair, sur toutes les pages */
.optipro { display: flex; align-items: center; gap: 22px; padding: 24px 28px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.optipro__icone { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(247,168,54,.14); color: var(--accent-600); }
.optipro__icone svg { width: 24px; height: 24px; }
.optipro__texte { flex: 1; min-width: 0; }
.optipro h3 { font-size: 1.12rem; margin: 0 0 4px; }
.section .optipro p { margin: 0; max-width: none; font-size: .98rem; }
.optipro .btn { flex-shrink: 0; }
.cta-band { background: var(--cream); border: 1px solid #F5DEB8; padding: 40px 32px; color: var(--ink); }
.cta-band h2 { color: var(--navy); font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 10px; }
.section .cta-band p { color: var(--ink); max-width: 560px; margin: 0 auto 22px; }
/* Un encadré occupe toute sa largeur : pas de ligne coupée aux deux tiers */
.section .callout p { max-width: none; }
@media (max-width: 720px) {
  .optipro { display: block; padding: 22px; }
  .optipro__icone { width: 44px; height: 44px; margin-bottom: 12px; }
  .optipro__texte { margin-bottom: 16px; }
  .optipro .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 30px 22px; }
}
/* Cibles tactiles de l'en-tête : 44 px de haut (Apple), comme le bouton du menu */
@media (max-width: 1180px) {
  .brand { min-height: 44px; }
  .lang-select { height: 44px; }
  /* « En cas d'urgence » et « Votre espace » : même pastille orange que sur ordinateur */
  .nav__link--urgent, .nav__link--espace { display: inline-block; border: 1px solid var(--accent); border-radius: 999px; padding: 11px 18px; margin: 6px 0; }
}

/* Un numéro de téléphone ne se coupe jamais en fin de ligne */
a[href^="tel:"]:not(.card) { white-space: nowrap; } /* une carte-lien (page Urgence) garde son texte qui passe à la ligne */

/* Pied de page : les mentions en petits caractères (2026-10-30).
   Les liens légaux passent au-dessus, le bloc d'identification ferme la page,
   plus petit et plus discret que le menu. L'ordre du HTML ne change pas. */
.site-footer .container { display: flex; flex-direction: column; }
.footer-communes { margin: 36px 0 0; font-size: .94rem; line-height: 2; color: var(--sur-fonce-2); }
.footer-communes span { color: #fff; font-weight: 600; }
.footer-communes b { font-weight: inherit; }
.footer-communes a { color: var(--sur-fonce-2); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.footer-communes a:hover { color: var(--accent); }
.footer-links { margin-top: 12px; font-size: .875rem; line-height: 1.75; }
.footer-links a { color: var(--sur-fonce); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { order: 2; margin-top: 28px; font-size: .875rem; }
.footer-bottom a { color: var(--sur-fonce-2); }
.footer-legal { order: 3; border-top: 0; margin-top: 16px; padding-top: 0; font-size: .75rem; line-height: 1.55; color: var(--sur-fonce-3); }
.footer-legal p { margin: 0 0 4px; }
.footer-legal strong { color: inherit; font-weight: 400; }
/* Hiérarchie du pied de page (2026-11-01) : les liens ressortent, les petits caractères s'effacent.
   Titres 16 px blanc, liens 15 px clair, mentions 11 px pâle, sans gras. Contraste du pâle : 5,2:1. */
.footer-grid a, .footer-communes a, .footer-bottom a { color: var(--sur-fonce); }
.footer-bottom > span:first-child { font-size: .6875rem; color: #8AA2B1; }
.footer-legal { font-size: .6875rem; line-height: 1.5; color: #8AA2B1; }

/* Tuiles « Changer de syndic » : effet au survol (2026-10-31).
   Réservé aux appareils avec souris : au doigt, un survol resterait collé à la tuile touchée. */
.etapes li, .etapes__num { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition), color var(--transition); }
@media (hover: hover) {
  .etapes li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
  .etapes li:hover .etapes__num { background: var(--accent); color: var(--navy-900); transform: scale(1.08); }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .etapes li:hover, .etapes li:hover .etapes__num { transform: none; }
}

/* Tuiles : même survol que les étapes (2026-10-31). Souris uniquement. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover, .metier__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(247,168,54,.55); }
}
