/* ==========================================================================
   AMBITION Immobilier — feuille de style unique
   Charte : navy #022950 / or #DCB253
   ========================================================================== */

:root {
  --navy: #022950;
  --navy-dark: #011a33;
  --or: #dcb253;
  --or-dark: #c39b3d;
  --blanc: #ffffff;
  --gris-fond: #f5f6f8;
  --gris-bord: #e2e5ea;
  --texte: #1c2733;
  --texte-doux: #5b6672;

  --conteneur: 1180px;
  --rayon: 0;
  --transition: 0.25s ease;

  --f-titre: "Glacial Indifference", "Raleway", -apple-system, sans-serif;
  --f-texte: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texte);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--or-dark); }
h1, h2, h3, h4, h5 {
  font-family: var(--f-titre);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

/* --- Utilitaires ---------------------------------------------------------- */
.conteneur { width: 100%; max-width: var(--conteneur); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--gris { background: var(--gris-fond); }
.section--or { background: var(--or); }
.section--or, .section--or h2, .section--or h3 { color: var(--navy); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.88); }
.section--navy h2, .section--navy h3 { color: var(--blanc); }
.centre { text-align: center; }
.chapeau { font-size: 1.15rem; color: var(--texte-doux); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: var(--f-texte);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primaire { background: var(--navy); color: var(--blanc); border-color: var(--navy); }
.btn--primaire:hover { background: var(--or); border-color: var(--or); color: var(--navy); }
.btn--or { background: var(--or); color: var(--navy); border-color: var(--or); }
.btn--or:hover { background: var(--navy); border-color: var(--navy); color: var(--blanc); }
.btn--ligne { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ligne:hover { background: var(--navy); color: var(--blanc); }
.btn--clair { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.btn--clair:hover { background: var(--blanc); color: var(--navy); }

/* --- En-tête -------------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 100;
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-bord);
  box-shadow: 0 1px 12px rgba(2, 41, 80, 0.06);
}
.entete__barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 20px;
  max-width: var(--conteneur); margin: 0 auto;
}
.entete__logo img { height: 54px; width: auto; }
.entete__actions { display: flex; align-items: center; gap: 18px; }
.entete__tel {
  font-weight: 700; font-size: 0.95rem; color: var(--navy);
  white-space: nowrap;
}
.entete__tel span { display: inline-block; }

.nav__liste {
  display: flex; gap: 18px; list-style: none;
  margin: 0; padding: 0;
}
.nav__lien {
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--navy);
  padding: 6px 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__lien:hover, .nav__lien[aria-current="page"] {
  color: var(--or-dark); border-bottom-color: var(--or);
}

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
}
.burger span {
  display: block; height: 2px; width: 24px; background: var(--navy);
  margin: 5px auto; transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  background: var(--navy-dark) center/cover no-repeat;
  background-image: linear-gradient(90deg, rgba(2, 26, 51, 0.85) 0%, rgba(2, 26, 51, 0.45) 100%),
                    url("../img/hero.jpg");
  color: var(--blanc);
  padding: 90px 0;
}
.hero__contenu { max-width: 620px; }
.hero__logo { width: 150px; margin-bottom: 28px; }
.hero h1 { color: var(--blanc); margin-bottom: 18px; }
.hero h1 .or { color: var(--or); display: block; }
.hero__chapeau {
  font-size: 1.2rem; color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px; max-width: 46ch;
}

/* --- Bandeau or ----------------------------------------------------------- */
.bandeau { padding: 56px 0; }
.bandeau__intro { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.2rem; }
.bandeau__atouts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.bandeau__atouts li {
  background: rgba(255, 255, 255, 0.5);
  border-left: 4px solid var(--navy);
  padding: 18px 20px;
}
.bandeau__atouts strong { display: block; margin-bottom: 4px; }

/* --- Blocs texte + image -------------------------------------------------- */
.duo {
  display: grid; align-items: center; gap: 48px;
  grid-template-columns: 1fr 1fr;
}
.duo--inverse .duo__media { order: -1; }
.duo__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.duo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* --- Titre de section ----------------------------------------------------- */
.titre-section { margin-bottom: 40px; }
.titre-section .surtitre {
  display: block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--or-dark); margin-bottom: 10px;
}

/* --- Cartes biens --------------------------------------------------------- */
.biens {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.bien {
  display: flex; flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  transition: transform var(--transition), box-shadow var(--transition);
}
.bien:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(2, 41, 80, 0.14); }
.bien__media { position: relative; overflow: hidden; }
.bien__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bien__prix {
  position: absolute; bottom: 0; left: 0;
  background: var(--or); color: var(--navy);
  font-family: var(--f-titre); font-weight: 700; font-size: 1.15rem;
  padding: 8px 18px;
}
.bien__corps { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.bien__titre { font-size: 1.3rem; margin-bottom: 10px; }
.bien__texte { color: var(--texte-doux); font-size: 0.95rem; flex: 1; }
.bien__corps .btn { align-self: flex-start; margin-top: 18px; }

/* --- Avis ----------------------------------------------------------------- */
.avis-piste {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.avis {
  background: var(--blanc);
  border-top: 4px solid var(--or);
  padding: 32px 28px;
  margin: 0;
  display: flex; flex-direction: column;
}
.avis__etoiles { color: var(--or-dark); letter-spacing: 3px; margin-bottom: 14px; }
.avis__texte { font-size: 0.98rem; color: var(--texte); flex: 1; }
.avis__auteur {
  margin-top: 18px; font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy);
}
.avis__source { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--texte-doux); }

/* --- Appel à l'action ----------------------------------------------------- */
.cta { text-align: center; padding: 80px 0; }
.cta p { max-width: 60ch; margin: 0 auto 28px; }

/* --- Formulaire ----------------------------------------------------------- */
.formulaire { max-width: 720px; }
.champ { margin-bottom: 20px; }
.champ label {
  display: block; margin-bottom: 6px;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy);
}
.champ input, .champ textarea, .champ select {
  width: 100%; padding: 12px 14px;
  font-family: var(--f-texte); font-size: 1rem; color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--gris-bord); border-radius: var(--rayon);
  transition: border-color var(--transition);
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  border-color: var(--navy); outline: none;
  box-shadow: 0 0 0 3px rgba(220, 178, 83, 0.35);
}
.champ textarea { min-height: 170px; resize: vertical; }
.champ--case { display: flex; gap: 10px; align-items: flex-start; }
.champ--case input { width: auto; margin-top: 4px; }
.champ--case label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.9rem; color: var(--texte-doux); }
.pot-de-miel { position: absolute; left: -9999px; }
.message { padding: 16px 20px; margin-bottom: 24px; border-left: 4px solid; }
.message--ok { background: #eef7f0; border-color: #2e7d4f; color: #1d4f32; }
.message--ko { background: #fdf0ee; border-color: #c0392b; color: #7d251c; }

.coordonnees { list-style: none; padding: 0; margin: 0; }
.coordonnees li { margin-bottom: 14px; }
.coordonnees strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--or-dark); }

/* --- Pied de page --------------------------------------------------------- */
.pied { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 64px 0 0; font-size: 0.92rem; }
.pied a { color: rgba(255, 255, 255, 0.75); }
.pied a:hover { color: var(--or); }
.pied h5 {
  color: var(--blanc); font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.pied__grille {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-bottom: 48px;
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 9px; }
.pied__reseaux { display: flex; gap: 12px; margin-top: 18px; }
.pied__reseaux a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--transition), border-color var(--transition);
}
.pied__reseaux a:hover { background: var(--or); border-color: var(--or); color: var(--navy); }
.pied__reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.pied__bas {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0; font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo--inverse .duo__media { order: 0; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .burger { display: block; }
  .entete__tel { display: none; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blanc);
    border-bottom: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav[data-ouvert="true"] {
    max-height: 80vh; overflow-y: auto;
    border-bottom: 1px solid var(--gris-bord);
    box-shadow: 0 12px 24px rgba(2, 41, 80, 0.1);
  }
  .nav__liste { flex-direction: column; gap: 0; padding: 12px 20px 24px; }
  .nav__liste li { border-bottom: 1px solid var(--gris-bord); }
  .nav__lien { display: block; padding: 14px 0; border-bottom: 0; }
  .nav__liste .btn { margin-top: 18px; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { min-height: auto; padding: 64px 0; }
  .pied__grille { grid-template-columns: 1fr; gap: 32px; }
  .pied__bas { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Animations : survol des photos + apparition au defilement
   ========================================================================== */

/* --- Cartes "coups de coeur" de l'accueil -------------------------------- */
.bien__media { overflow: hidden; background: var(--navy-dark); }
.bien__media img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.bien:hover .bien__media img { transform: scale(1.07); }

.bien__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2, 41, 80, 0.5) 0%, rgba(2, 41, 80, 0) 60%);
  opacity: 0; transition: opacity 0.45s ease;
  pointer-events: none;
}
.bien:hover .bien__media::after { opacity: 1; }

/* Le prix glisse et passe en or */
.bien__prix { transition: background 0.4s ease, padding 0.4s ease; z-index: 1; }
.bien:hover .bien__prix { background: var(--blanc); padding-left: 24px; }

/* Filet or sous le titre */
.bien__titre { position: relative; padding-bottom: 10px; }
.bien__titre::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--or);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bien:hover .bien__titre::after { width: 42px; }

/* --- Images "vendre" / "acheter" ---------------------------------------- */
.duo__media { overflow: hidden; }
.duo__media img { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.duo__media:hover img { transform: scale(1.04); }

/* --- Apparition au defilement -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.vu { opacity: 1; transform: none; }
/* Decalage en cascade pour les elements d'une meme rangee */
.reveal[data-delai="1"] { transition-delay: 0.09s; }
.reveal[data-delai="2"] { transition-delay: 0.18s; }

/* --- Boutons : filet qui balaie ----------------------------------------- */
.btn { position: relative; overflow: hidden; }
.btn > * { position: relative; z-index: 1; }

/* --- Lien du menu : soulignement qui se deploie -------------------------- */
.nav__lien { position: relative; }
.nav__lien::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--or);
  transition: width 0.3s ease;
}
.nav__lien:hover::after,
.nav__lien[aria-current="page"]::after { width: 100%; }
.nav__lien:hover, .nav__lien[aria-current="page"] { border-bottom-color: transparent; }

/* --- Le survol n'existe pas au doigt ------------------------------------ */
@media (hover: none) {
  .bien:hover { transform: none; box-shadow: none; }
  .bien:hover .bien__media img,
  .duo__media:hover img { transform: none; }
  .bien:hover .bien__media::after { opacity: 0; }
  .bien:hover .bien__prix { background: var(--or); padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bien__media img, .duo__media img, .bien__prix { transition: none !important; }
  .bien:hover .bien__media img, .duo__media:hover img { transform: none; }
}

/* --- Coups de coeur alimentes par le flux XML ---------------------------- */
.bien__meta {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--or-dark);
  margin: 0 0 10px;
}
.compteur-chargement {
  grid-column: 1 / -1;
  text-align: center; color: var(--texte-doux);
  padding: 40px 0;
}

/* ==========================================================================
   Page Honoraires
   ========================================================================== */
.honoraires { max-width: 820px; margin: 0 auto; }

.honoraires__bloc {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-top: 3px solid var(--or);
  padding: 32px 36px;
  margin-bottom: 28px;
}
.honoraires__bloc h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.honoraires__sous {
  display: inline-block;
  font-family: var(--f-texte);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texte-doux);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}
.honoraires__charge {
  font-weight: 700;
  color: var(--or-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gris-bord);
}

.honoraires__exemple {
  background: var(--gris-fond);
  border-left: 3px solid var(--navy);
  padding: 18px 22px;
  margin: 20px 0;
}
.honoraires__exemple-titre {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.honoraires__exemple p:last-child { margin-bottom: 0; }

.honoraires__liste {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.honoraires__liste li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--gris-bord);
}
.honoraires__liste li:last-child { border-bottom: 0; }
.honoraires__liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 8px; height: 8px;
  background: var(--or);
  border-radius: 50%;
}
.honoraires__zones-intro { margin-top: 18px; font-weight: 600; }

.honoraires__tableau-wrap { overflow-x: auto; margin-top: 8px; }
.honoraires__tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.honoraires__tableau th {
  background: var(--navy);
  color: var(--blanc);
  font-family: var(--f-titre);
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
}
.honoraires__tableau td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gris-bord);
  font-weight: 600;
}
.honoraires__tableau tbody tr:nth-child(even) { background: var(--gris-fond); }
.honoraires__tableau tbody tr:hover { background: rgba(220, 178, 83, 0.12); }
.honoraires__tableau td:last-child { color: var(--or-dark); text-align: right; }

.honoraires__mentions {
  max-width: 820px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--texte-doux);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .honoraires__bloc { padding: 24px 20px; }
  .honoraires__bloc h2 { font-size: 1.35rem; }
  .honoraires__sous { display: block; margin-left: 0; margin-top: 4px; }
}

/* ==========================================================================
   Pages légales (confidentialité, mentions légales)
   ========================================================================== */
.legal { max-width: 780px; margin: 0 auto; }
.legal h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--or);
  display: inline-block;
}
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; }
.legal__liste {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.legal__liste li {
  padding: 8px 0 8px 24px;
  position: relative;
}
.legal__liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 7px; height: 7px;
  background: var(--or);
  border-radius: 50%;
}
.legal__maj {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gris-bord);
  font-size: 0.88rem;
  color: var(--texte-doux);
  font-style: italic;
}

/* ==========================================================================
   Page Devenir agent
   ========================================================================== */
.agent-hero {
  position: relative;
  min-height: 60vh;
  display: flex; align-items: center;
  background: var(--navy-dark) center/cover no-repeat;
  background-image: linear-gradient(90deg, rgba(2,26,51,.88) 0%, rgba(2,26,51,.55) 100%),
                    url("../img/agent-hero.jpg");
  color: var(--blanc);
  padding: 80px 0;
}
.agent-hero__contenu { max-width: 720px; }
.agent-hero h1 { color: var(--blanc); margin-bottom: 18px; }
.agent-hero__chapeau {
  font-size: 1.2rem; color: rgba(255,255,255,.9);
  margin-bottom: 30px; max-width: 56ch;
}

/* Bloc surtitre au-dessus d'un h2 (pages internes) */
.section .surtitre {
  display: block; font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--or-dark); margin-bottom: 10px;
}

/* Atouts */
.atouts {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.atout {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-top: 3px solid var(--or);
  padding: 30px 28px;
}
.atout h3 { font-size: 1.25rem; margin-bottom: 12px; }
.atout p { color: var(--texte-doux); margin: 0; }

/* ==========================================================================
   Formulaire candidature (Rejoignez-nous)
   ========================================================================== */
.form-label-bloc {
  display: block; margin-bottom: 10px;
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--navy);
}
.champ-options {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.option-radio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--gris-bord);
  background: var(--blanc);
  cursor: pointer;
  font-weight: 600; font-size: .95rem;
  transition: border-color .2s, background .2s;
}
.option-radio:hover { border-color: var(--navy); }
.option-radio input { accent-color: var(--navy); width: auto; margin: 0; }
.option-radio:has(input:checked) {
  border-color: var(--or); background: rgba(220,178,83,.12);
}

@media (max-width: 640px) {
  .agent-hero { min-height: auto; padding: 56px 0; }
  .champ-options { flex-direction: column; gap: 8px; }
  .option-radio { width: 100%; }
}

/* ==========================================================================
   Page Partenaires
   ========================================================================== */
.partenaires {
  max-width: 980px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
.partenaire {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px; align-items: center;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-left: 4px solid var(--or);
  padding: 32px 36px;
  transition: box-shadow .3s, transform .3s;
}
.partenaire:hover { box-shadow: 0 12px 30px rgba(2,41,80,.1); transform: translateY(-3px); }
.partenaire--inverse { grid-template-columns: 1fr 260px; }
.partenaire--inverse .partenaire__logo { order: 2; }

.partenaire__logo {
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  min-height: 140px;
}
.partenaire__logo img { max-width: 100%; max-height: 180px; width: auto; height: auto; }
.partenaire__logo--photo img { border-radius: 4px; max-height: 220px; }

.partenaire__corps h2 { font-size: 1.5rem; margin-bottom: 4px; }
.partenaire__role {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--or-dark); margin-bottom: 14px;
}
.partenaire__corps p { color: var(--texte); margin-bottom: 10px; }
.partenaire__corps .btn { margin-top: 8px; }

.btn--petit { padding: 9px 18px; font-size: .8rem; }

@media (max-width: 760px) {
  .partenaire,
  .partenaire--inverse { grid-template-columns: 1fr; gap: 20px; padding: 24px 22px; }
  .partenaire--inverse .partenaire__logo { order: 0; }
  .partenaire__logo { min-height: auto; }
  .partenaire__logo img { max-height: 130px; }
  .partenaire__logo--photo img { max-height: 240px; }
}

/* ==========================================================================
   Hero premium — badge avis + moteur de recherche (version large)
   ========================================================================== */

.hero { min-height: 92vh; }
.hero__contenu { width: 100%; max-width: 860px; }

/* Badge avis Google */
.hero__avis {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 30px;
  color: var(--blanc);
  transition: background .25s, transform .25s;
}
.hero__avis:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); color: var(--blanc); }
.hero__note { font-family: var(--f-titre); font-size: 1.55rem; font-weight: 800; color: var(--or); line-height: 1; }
.hero__etoiles { color: var(--or); letter-spacing: 3px; font-size: 1.05rem; }
.hero__avis-txt { font-size: .95rem; font-weight: 600; }

/* ---- Moteur de recherche : grand bloc blanc ---- */
.recherche {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(2,26,51,.4);
  overflow: hidden;
  width: 100%;
}

/* Onglets larges */
.recherche__onglets { display: flex; gap: 0; }
.recherche__onglet {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 20px 40px;
  font-family: var(--f-texte); font-size: 1rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--texte-doux);
  background: #eef1f4;
  border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.recherche__onglet:first-child { border-top-left-radius: 14px; }
.recherche__onglet:hover { color: var(--navy); }
.recherche__onglet.actif {
  color: var(--blanc);
  background: var(--or);
}

/* Ligne de champs, généreuse */
.recherche__champs {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr auto;
  align-items: stretch;
  padding: 10px;
  gap: 10px;
}
.recherche__champ {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  background: var(--gris-fond);
  text-align: left;
  transition: box-shadow .2s;
}
.recherche__champ:focus-within { box-shadow: inset 0 0 0 2px var(--or); }
.recherche__champ label {
  font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--or-dark); margin-bottom: 6px;
}
.recherche__champ input,
.recherche__champ select {
  border: 0; background: transparent;
  font-family: var(--f-texte); font-size: 1.05rem; font-weight: 600; color: var(--navy);
  padding: 2px 0; width: 100%;
}
.recherche__champ input:focus,
.recherche__champ select:focus { outline: none; }
.recherche__champ input::placeholder { color: #9aa5b1; font-weight: 400; }
.recherche__champ select { cursor: pointer; }

.recherche__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 40px;
  background: var(--navy);
  color: var(--blanc);
  border: 0; border-radius: 8px; cursor: pointer;
  font-family: var(--f-texte); font-size: 1rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  transition: background .2s, transform .2s;
  white-space: nowrap;
  min-height: 68px;
}
.recherche__submit::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 20px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 21l-4.35-4.35M17 11a6 6 0 11-12 0 6 6 0 0112 0z" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') center/contain no-repeat;
}
.recherche__submit:hover { background: var(--or); color: var(--navy); transform: translateY(-1px); }

@media (max-width: 820px) {
  .hero { min-height: auto; padding: 90px 0 60px; }
  .recherche__champs { grid-template-columns: 1fr 1fr; }
  .recherche__champ:nth-child(1) { grid-column: 1 / -1; }
  .recherche__submit { grid-column: 1 / -1; min-height: 56px; }
  .recherche__onglet { flex: 1; min-width: 0; padding: 16px 10px; }
}

/* ==========================================================================
   Section avis clients
   ========================================================================== */
.avis-note {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 18px;
  padding: 10px 22px;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.avis-note:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,41,80,.1); }
.avis-note__chiffre {
  font-family: var(--f-titre); font-size: 1.9rem; font-weight: 800;
  color: var(--navy); line-height: 1;
}
.avis-note__droite { display: flex; flex-direction: column; align-items: flex-start; }
.avis-note__etoiles { color: var(--or); letter-spacing: 2px; font-size: 1rem; }
.avis-note__txt { font-size: .82rem; color: var(--texte-doux); font-weight: 600; }

.avis-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 44px 0 36px;
}
.avis-carte {
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  border-radius: 10px;
  padding: 32px 30px;
  margin: 0;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.avis-carte:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(2,41,80,.12); }
.avis-carte::before {
  content: "\201C";
  position: absolute; top: 6px; right: 24px;
  font-family: Georgia, serif; font-size: 5rem; line-height: 1;
  color: var(--or); opacity: .18;
}
.avis-carte__etoiles { color: var(--or); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 16px; }
.avis-carte blockquote {
  margin: 0 0 22px; padding: 0; border: 0;
  font-size: 1.02rem; line-height: 1.6; color: var(--texte);
  flex-grow: 1;
}
.avis-carte figcaption { display: flex; flex-direction: column; gap: 2px; }
.avis-carte__nom { font-family: var(--f-titre); font-weight: 700; color: var(--navy); }
.avis-carte__source { font-size: .82rem; color: var(--texte-doux); }

/* Boutons de la section avis : côte à côte */
.avis-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Menu déroulant de navigation ("Nos secteurs")
   État fermé/ouvert piloté par aria-expanded sur .nav__bouton.
   Le survol desktop est une amélioration CSS ; main.js garde aria-expanded
   synchrone et gère clavier, clic extérieur et accordéon tactile.
   ========================================================================== */
.nav__item--deroulant { position: relative; }

.nav__bouton {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  /* border:0 réinitialise les 3 côtés hérités du <button>, puis on restitue
     le soulignement de .nav__lien : sans ça il ne reste que le chevron. */
  border: 0; border-bottom: 2px solid transparent;
}
/* Chevron sur ::before — ::after est déjà pris par le soulignement animé
   de .nav__lien (position:absolute + background:var(--or)). L'ordre flex
   le renvoie après le libellé. */
.nav__bouton::before {
  content: ""; order: 1; width: 6px; height: 6px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--transition);
}
.nav__bouton[aria-expanded="true"]::before { transform: translateY(1px) rotate(-135deg); }

.nav__sous {
  position: absolute; top: 100%; left: 0;
  min-width: 230px; padding: 8px 0; margin: 0;
  list-style: none;
  background: var(--blanc);
  border: 1px solid var(--gris-bord);
  box-shadow: 0 12px 24px rgba(2, 41, 80, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 101;
}
.nav__bouton[aria-expanded="true"] + .nav__sous {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav__sous-lien {
  display: block; padding: 11px 20px;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--navy);
}
.nav__sous-lien:hover,
.nav__sous-lien[aria-current="page"] { background: var(--gris-fond); color: var(--or-dark); }

/* Survol : uniquement sur les pointeurs fins, au-dessus du seuil du burger */
@media (hover: hover) and (min-width: 1181px) {
  .nav__item--deroulant:hover > .nav__sous {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}

/* Accordéon tactile — sous le seuil du burger (1180 px) */
@media (max-width: 1180px) {
  .nav__item--deroulant { position: static; }
  .nav__bouton {
    display: flex; width: 100%; justify-content: space-between;
    padding: 14px 0; border-bottom: 0;
  }
  .nav__sous {
    position: static; transform: none; opacity: 1;
    max-height: 0; overflow: hidden; visibility: hidden;
    padding: 0; border: 0; box-shadow: none;
    background: var(--gris-fond);
    transition: max-height 0.3s ease, visibility 0.3s ease;
  }
  .nav__bouton[aria-expanded="true"] + .nav__sous {
    max-height: 420px; visibility: visible;
  }
  .nav__sous li { border-bottom: 1px solid var(--gris-bord); }
  .nav__sous li:last-child { border-bottom: 0; }
  .nav__sous-lien { padding: 13px 18px; }
}
