/* ============================================================
   MON PLAN IMMO — Site vitrine
   Charte graphique officielle MPI :
   turquoise #0097B2 · bleu pétrole #15667E · clair #C1E3E8
   cartes #F1F9FB · texte #545454 / muted #7A8FA6 · navy #0F1A2E
   Typo : Montserrat (titres + corps), Open Sans (secondaire)
   Motif de marque : double tiret turquoise
   ============================================================ */

:root {
  --turquoise: #0097B2;
  --petrole: #15667E;
  --petrole-2: #206779;
  --teal: #2ECFBE;
  --clair: #C1E3E8;
  --carte: #F1F9FB;
  --offwhite: #F5F8FA;
  --navy: #0F1A2E;
  --texte: #545454;
  --muted: #7A8FA6;
  --border: #E2EAF0;
  --white: #FFFFFF;
  --titres: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --corps: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(2.8rem, 5.5vw, 4.5rem);
  --shadow: 0 10px 30px rgba(21, 102, 126, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  overflow-x: clip;
  font-family: var(--corps);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texte);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--petrole); text-decoration: none; }
a:hover { color: var(--turquoise); }

:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 3px;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
}

.site-nav a {
  font-family: var(--titres);
  font-weight: 600;
  color: var(--petrole);
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--turquoise); }
.site-nav a.active {
  color: var(--turquoise);
  border-bottom: 3px solid var(--turquoise);
  padding-bottom: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-family: var(--titres);
  font-weight: 600;
  color: var(--petrole);
  cursor: pointer;
}

.site-header .nav-cta { display: none; }

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--petrole);
  transition: transform 0.25s ease, top 0.25s ease, background 0.2s ease;
}
.nav-toggle .bars { position: relative; margin: 0 auto; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .site-header .wrap { height: 66px; gap: 0.75rem; }
  .brand img { height: 40px; }
  .site-header .nav-cta {
    display: inline-block;
    margin-left: auto;
    padding: 0.5rem 1.05rem;
    font-size: 0.85rem;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    flex: none;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(15, 26, 46, 0.12);
    padding: 0.35rem 0 0.6rem;
  }
  .site-nav.open { display: flex; animation: menu-deroule 0.22s ease; }
  @keyframes menu-deroule {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .site-nav a {
    font-size: 1rem;
    padding: 0.85rem var(--gutter);
    border-bottom: 1px solid var(--carte);
  }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav a.active {
    border-bottom: 1px solid var(--carte);
    padding-bottom: 0.85rem;
    color: var(--turquoise);
    box-shadow: inset 3px 0 0 var(--turquoise);
  }
  .site-nav a.btn-solid { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 2px solid var(--petrole);
  color: var(--petrole);
  background: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--petrole);
  color: var(--white);
}

.btn-solid {
  background: var(--petrole);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(21, 102, 126, 0.25);
}
.btn-solid:hover {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: var(--white);
}

.btn-light {
  border-color: var(--white);
  color: var(--white);
}
.btn-light:hover { background: var(--white); color: var(--petrole); }

.site-nav a.btn-solid { color: var(--white); padding: 0.6rem 1.4rem; }
.site-nav a.btn-solid:hover { color: var(--white); }

/* ---------- Bouton YouTube ---------- */

.btn-youtube {
  background: #FF0000;
  border-color: #FF0000;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.25);
}
.btn-youtube:hover {
  background: #CC0000;
  border-color: #CC0000;
  color: #FFFFFF;
}

/* ---------- Motif de marque : double tiret ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--titres);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 12px;
  background:
    linear-gradient(var(--turquoise), var(--turquoise)) 0 0 / 34px 4px no-repeat,
    linear-gradient(var(--turquoise), var(--turquoise)) 8px 8px / 26px 4px no-repeat;
  border-radius: 2px;
}

.on-dark .eyebrow { color: var(--teal); }
.on-dark .eyebrow::before {
  background:
    linear-gradient(var(--teal), var(--teal)) 0 0 / 34px 4px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 8px 8px / 26px 4px no-repeat;
}

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--titres);
  color: var(--petrole);
  line-height: 1.18;
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

h1 .accent, h2 .accent { color: var(--turquoise); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 44em;
}

.muted { color: var(--muted); }

/* ---------- Sections ---------- */

section { padding: var(--section) 0; }
section.tight { padding: calc(var(--section) * 0.6) 0; }

.alt { background: var(--carte); }

.on-dark {
  background: var(--petrole);
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  overflow: hidden;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .muted { color: rgba(255, 255, 255, 0.65); }

/* Grands cercles turquoise translucides (style slides de section MPI) */
.on-dark::before, .on-dark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 151, 178, 0.28);
  pointer-events: none;
}
.on-dark::before {
  width: 420px; height: 420px;
  top: -160px; right: -120px;
}
.on-dark::after {
  width: 300px; height: 300px;
  bottom: -140px; left: -100px;
  background: rgba(46, 207, 190, 0.14);
}
.on-dark .wrap { position: relative; z-index: 1; }

.section-head { max-width: 46em; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 1rem; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  background:
    radial-gradient(640px 320px at 88% 0%, rgba(193, 227, 232, 0.45), transparent 70%),
    var(--white);
}

.hero h1 { max-width: 17em; }
.hero .lead { margin-top: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Stats (gros chiffres charte) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat .num {
  font-family: var(--titres);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  color: var(--turquoise);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat p {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22em;
}
.on-dark .stat p { color: rgba(255, 255, 255, 0.65); }
.on-dark .stat .num { color: var(--teal); }

/* ---------- Cartes (style charte : fond F1F9FB + barre turquoise) ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.3rem, 2.6vw, 2rem);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.3rem, 2.6vw, 2rem);
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--carte);
  border-left: 5px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow);
}
.alt .card { background: var(--white); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; }

.step-num {
  display: block;
  font-family: var(--titres);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--clair);
  -webkit-text-stroke: 1.5px var(--turquoise);
  margin-bottom: 0.8rem;
  line-height: 1;
}

/* ---------- Fiches projet (avant / après) ---------- */

.projet {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.projet iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
.grid-3 .projet iframe { height: 215px; }
@media (max-width: 900px) {
  .projet iframe, .grid-3 .projet iframe { height: 300px; }
}

.projet figcaption { padding: 1.3rem 1.5rem 1.5rem; }
.projet h3 { margin-bottom: 0.8rem; }

.fiche {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.fiche td {
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.fiche td:last-child {
  text-align: right;
  color: var(--petrole);
  font-family: var(--titres);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Témoignage ---------- */

blockquote.quote {
  background: var(--carte);
  border-left: 5px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--petrole);
  max-width: 46em;
  box-shadow: var(--shadow);
}
.alt blockquote.quote { background: var(--white); }
blockquote.quote footer {
  margin-top: 1.2rem;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--turquoise);
}

/* ---------- Listes d'options (formations) ---------- */

.option-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.7rem, 3.2vw, 2.4rem) 0;
  border-top: 1px solid var(--border);
}
.option-row:last-of-type { border-bottom: 1px solid var(--border); }

.option-row .idx {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--clair);
  -webkit-text-stroke: 1.5px var(--turquoise);
}
.option-row h3 { margin-bottom: 0.5rem; }
.option-row .ideal {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.option-row .cta { align-self: center; white-space: nowrap; }

@media (max-width: 900px) {
  .option-row { grid-template-columns: 1fr; gap: 0.9rem; }
  .option-row .idx { font-size: 1.9rem; }
}

/* ---------- Split / portraits ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.portrait {
  background: linear-gradient(160deg, var(--clair), var(--carte));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portrait.duo { position: relative; }
.portrait.duo img { display: block; width: 100%; }
.duo-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
}
.duo-labels span {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--petrole);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ---------- Équipe ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.member .ph {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.member .desc {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.84);
  color: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  padding: 1.2rem 1.1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.member:hover .desc,
.member:focus-within .desc { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .member .desc { transition: none; } }
.member .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member h3 {
  margin-top: 0.8rem;
  font-size: 1rem;
}
.member .role {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- Image large fondue (façon vidéo du hero) ---------- */

.photo-wide {
  position: relative;
  height: min(72vh, 620px);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 700px) { .photo-wide { height: 46vh; } }
.photo-wide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-wide .fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 78%, var(--white) 100%),
    linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0) 88%, var(--white) 100%);
}

/* ---------- Photo mise en scène (cadre décalé + badge) ---------- */

.photo-frame {
  position: relative;
  margin: 1.2rem 1.6rem 1.6rem 0;
}
.photo-frame::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  right: -1.4rem;
  bottom: -1.4rem;
  background: linear-gradient(150deg, var(--clair), rgba(46, 207, 190, 0.55));
  border-radius: var(--radius);
}
.photo-frame img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(15, 26, 46, 0.22);
}
.photo-frame .photo-badge {
  position: absolute;
  bottom: -0.9rem;
  left: 1.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--petrole);
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.18);
}
.photo-frame .photo-badge::before {
  content: "";
  flex: none;
  width: 26px;
  height: 10px;
  background:
    linear-gradient(var(--turquoise), var(--turquoise)) 0 0 / 26px 3px no-repeat,
    linear-gradient(var(--turquoise), var(--turquoise)) 6px 6px / 20px 3px no-repeat;
  border-radius: 2px;
}

/* ---------- Vidéo ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ ---------- */

details.faq {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.9rem;
}
details.faq[open] { border-color: var(--turquoise); }

details.faq summary {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 1rem;
  color: var(--petrole);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--turquoise);
  flex: none;
}
details.faq[open] summary::after { content: "–"; }

details.faq p { margin-top: 0.7rem; max-width: 56em; }

/* ---------- Bandeau CTA ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22em; margin: 0 auto; }
.cta-band p { max-width: 40em; margin: 1.1rem auto 0; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .eyebrow { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer .brand img {
  height: 52px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer h4 {
  font-family: var(--titres);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 700;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }

/* ---------- Hero + vidéo fondue dans le blanc (style entrepreneurs.com) ---------- */

.hero-dark {
  overflow: hidden;
  background: var(--white);
  padding: clamp(2.8rem, 5vw, 4rem) 0 0;
  text-align: center;
}
.hero-dark .eyebrow { justify-content: center; }
.hero-dark h1 { max-width: 17em; margin-left: auto; margin-right: auto; }
.hero-dark .lead { margin-left: auto; margin-right: auto; }
.hero-dark .hero-actions { justify-content: center; }

.cine {
  position: relative;
  height: min(82vh, 700px);
  margin-top: clamp(1rem, 2.5vw, 2rem);
  cursor: pointer;
  background: var(--white);
}
@media (max-width: 700px) { .cine { height: 58vh; } }

.cine video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bords fondus dans le blanc (la « transparence ») */
.cine .fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 72%, var(--white) 100%),
    linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, var(--white) 100%);
}

.cine .veil {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cine.playing .veil { opacity: 0; }

.cine .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, opacity 0.3s ease;
}
.cine .play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.cine .play-btn::after {
  content: "";
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent var(--petrole);
  margin-left: 6px;
}
.cine.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

.cine .cine-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--titres);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 26, 46, 0.45);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cine.playing .cine-hint { opacity: 0; }
.cine.playing:hover .cine-hint { opacity: 1; }
.cine.playing .cine-hint.alt { opacity: 0; }
.cine.playing:hover .cine-hint.alt { opacity: 1; }

/* ---------- Grille logements (façon Airbnb) ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}
@media (max-width: 900px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }

.listing { display: block; color: inherit; }
.listing:hover { color: inherit; }

.listing .ph {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--carte);
  box-shadow: var(--shadow);
}
.listing .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.listing:hover .ph img { transform: scale(1.045); }

.listing h3 {
  margin-top: 0.85rem;
  font-size: 1.02rem;
}
.listing .who {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.listing .who .pin {
  width: 13px;
  height: 13px;
  fill: #F75F5F;
  flex: none;
}
.listing .cash {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--turquoise);
  margin-top: 0.3rem;
}

.listing .ph.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--clair), var(--carte));
}
.listing .ph.placeholder span {
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrole);
  opacity: 0.55;
}

/* Carrousel de photos façon Airbnb */
.ph.carousel { position: relative; }
.ph.carousel .track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}
.ph.carousel .track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--petrole);
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 2;
}
.car-btn:hover { transform: translateY(-50%) scale(1.08); }
.car-prev { left: 10px; }
.car-next { right: 10px; }
.listing:hover .car-btn { opacity: 1; }
@media (hover: none) { .car-btn { opacity: 1; } }

.car-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.car-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease;
}
.car-dots span.on { background: var(--white); }

.listing .ext {
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* ---------- Avis Trustpilot ---------- */

.tp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.tp-stars { display: inline-flex; gap: 3px; }
.tp-stars span {
  width: 26px;
  height: 26px;
  background: #00B67A;
  display: inline-grid;
  place-items: center;
}
.tp-stars span::before {
  content: "★";
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.tp-score {
  font-family: var(--titres);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--petrole);
}
.tp-count { color: var(--muted); font-size: 0.95rem; }

.tp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.tp-card .tp-stars span { width: 18px; height: 18px; }
.tp-card .tp-stars span::before { font-size: 11px; }
.tp-card p { font-size: 0.95rem; margin-top: 0.8rem; }
.tp-card footer {
  margin-top: 0.9rem;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--petrole);
}

/* ---------- Cartes vidéo YouTube ---------- */

.yt-card { display: block; }
.yt-card .ph {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.yt-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.yt-card:hover .ph img { transform: scale(1.045); }
.yt-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt-card .play::before {
  content: "";
  width: 58px;
  height: 42px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.yt-card .play::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
}
.yt-card h3 {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.4;
}
.yt-card:hover h3 { color: var(--turquoise); }

/* ---------- Icônes réseaux sociaux ---------- */

.socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
}
.socials a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Certificat protégé ---------- */

.certif-shield {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.certif-shield img {
  width: 100%;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.certif-shield::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Bandeau Qualiopi officiel (footer) ---------- */

.qualiopi-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2.2rem 0 0.6rem;
}
.qualiopi-strip .q-card {
  background: #FFFFFF;
  border-radius: 0;
  padding: 0;
  font-size: 0;
}
.qualiopi-strip .q-card img {
  width: 150px;
  height: auto;
  display: block;
}
.qualiopi-strip .q-mention {
  margin: 0.75rem 0 0;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #FFFFFF;
}
.qualiopi-strip .q-mention strong {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Fenêtres modales (certificat, handicap) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  z-index: 200;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.modal-box h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.4rem; }
.modal-box h3 { margin-top: 1.4rem; margin-bottom: 0.3rem; font-size: 1.02rem; }
.modal-box p { font-size: 0.95rem; }
.modal-box .fiche { margin-top: 1rem; }

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.modal-close:hover { color: var(--petrole); }

.modal-certif { max-width: 760px; padding: 2.6rem 1.2rem 1.2rem; }
.modal-box .doc-lines p { margin: 0.55rem 0; }
.modal-box .sig { margin-top: 1.6rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: 0.95rem; }
.modal-certif .certif-shield { margin-top: 0; }

/* certificat protégé */
.certif-shield {
  position: relative;
  margin-top: 1.2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.certif-shield img {
  width: 100%;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.certif-shield::after { content: ""; position: absolute; inset: 0; }

/* ---------- Badge option + listes des cartes ---------- */

.card .opt {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.45rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--clair);
  color: var(--petrole);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.card ul {
  margin: 0.5rem 0 0 1.15rem;
  padding: 0;
}
.card ul li { margin: 0.35rem 0; }

/* ---------- Carrousel coverflow 3D (études de cas) ---------- */

.cover-carousel {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 0;
  perspective: 1200px;
}
.cover-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
  transform-style: preserve-3d;
}
.cover-carousel.no-anim .cover-track,
.cover-carousel.no-anim .cover-slide { transition: none !important; }

.cover-slide {
  flex: 0 0 auto;
  width: min(420px, 78vw);
  transition: transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
  position: relative;
}
.cover-slide h3 {
  font-size: 0.95rem;
  margin: 0.7rem 0.2rem 0;
}
.cover-slide.c-left h3,
.cover-slide.c-right h3 { opacity: 0.55; }
.cover-slide .ph {
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 26, 46, 0.22);
}
/* voile latéral façon swiper-slide-shadow */
.cover-slide .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(15, 26, 46, 0);
  transition: background 0.7s ease;
  pointer-events: none;
}
.cover-slide.c-left .ph::after  { background: linear-gradient(to left,  rgba(15,26,46,0.45), rgba(15,26,46,0.12)); }
.cover-slide.c-right .ph::after { background: linear-gradient(to right, rgba(15,26,46,0.45), rgba(15,26,46,0.12)); }

.cover-slide.c-left  { transform: rotateY(38deg) translateZ(-120px); z-index: 1; }
.cover-slide.c-right { transform: rotateY(-38deg) translateZ(-120px); z-index: 1; }
.cover-slide.active  { transform: rotateY(0) translateZ(0); z-index: 3; }

.cover-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--petrole);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.18);
  transition: background 0.2s, color 0.2s;
}
.cover-arrow:hover { background: var(--petrole); color: #fff; }
.cover-arrow.prev { left: clamp(0.6rem, 3vw, 2.2rem); }
.cover-arrow.next { right: clamp(0.6rem, 3vw, 2.2rem); }
@media (max-width: 640px) {
  .cover-arrow { width: 40px; height: 40px; }
}

/* ---------- Ressources / articles ---------- */

.art-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--texte);
}
.art-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(21,102,126,0.16); color: var(--texte); }
.art-card .ph { aspect-ratio: 16/10; overflow: hidden; }
.art-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.art-card h3 { padding: 1rem 1.2rem 0.2rem; font-size: 1.02rem; color: var(--petrole); }
.art-card p { padding: 0.3rem 1.2rem 0; font-size: 0.92rem; }
.art-card .lire {
  display: inline-block;
  padding: 0.7rem 1.2rem 1.1rem;
  font-family: var(--titres);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--turquoise);
}

.article { max-width: 800px; }
.article h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 2rem 0 0.7rem; }
.article p { margin: 0.8rem 0; }
.article a { text-decoration: underline; }
.article a.btn { text-decoration: none; }
.art-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.8rem;
  aspect-ratio: 16/8;
}
.art-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pourquoi ça marche + est-ce fait pour toi ---------- */

.why-list { display: flex; flex-direction: column; gap: clamp(1.6rem, 3vw, 2.4rem); max-width: 880px; }
.why-row {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: flex-start;
}
.why-num {
  flex: none;
  font-family: var(--titres);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--clair);
  -webkit-text-stroke: 1.5px var(--turquoise);
  margin-top: 0.2rem;
}
.why-row h3 { margin-bottom: 0.35rem; }
.why-row p { max-width: 46em; }
.why-row a { text-decoration: underline; }

.fit-oui ul, .fit-non ul { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.fit-oui li, .fit-non li { position: relative; padding-left: 1.7rem; margin: 0.65rem 0; }
.fit-oui li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal);
  font-weight: 700;
}
.fit-non li::before {
  content: "✕";
  position: absolute; left: 0; top: 0;
  color: #F75F5F;
  font-weight: 700;
}
.fit-oui h3 { color: var(--petrole); }
.fit-non h3 { color: var(--muted); }

/* ---------- Photo illustrative avec légende ---------- */

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.photo-card img { width: 100%; display: block; }
.photo-card .legende {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.4rem 0.9rem;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.75), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--titres);
  font-weight: 600;
}

/* ---------- Mosaïque de photos ---------- */

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: clamp(300px, 38vw, 440px);
  margin-bottom: clamp(2.2rem, 4.5vw, 3.8rem);
}
.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.photo-mosaic .grande { grid-row: span 2; }
@media (max-width: 640px) {
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .photo-mosaic .grande { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .photo-mosaic img:not(.grande) { aspect-ratio: 4/3; }
}

/* ---------- Continuer la visite ---------- */

.suite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--carte);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1.3rem, 3.5vw, 2.4rem);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.suite:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--turquoise);
}
.suite-txt { display: flex; flex-direction: column; gap: 0.25rem; }
.suite-sur {
  font-family: var(--titres);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.suite-titre {
  font-family: var(--titres);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--petrole);
}
.suite-desc { color: var(--texte); font-size: 0.95rem; max-width: 34em; }
.suite-fleche {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--petrole);
  color: #fff;
  font-size: 1.4rem;
  transition: background 0.2s ease, transform 0.25s ease;
}
.suite:hover .suite-fleche { background: var(--turquoise); transform: translateX(4px); }
@media (max-width: 560px) {
  .suite { gap: 1rem; }
  .suite-fleche { width: 44px; height: 44px; }
}

/* ---------- Indicateurs Qualiopi ---------- */

.card.taux { text-align: left; }
.on-dark .card.taux { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: none; }
.on-dark .card.taux h3 { color: #fff; }
.on-dark .card.taux p { color: rgba(255, 255, 255, 0.82); }
.on-dark .taux-num { color: var(--teal); }
.on-dark .taux-maj { color: rgba(255, 255, 255, 0.55); }
.taux-num {
  display: block;
  font-family: var(--titres);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  color: var(--turquoise);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.card.taux p { font-size: 0.9rem; }
.taux-maj {
  margin-top: 0.6rem;
  font-size: 0.8rem !important;
  color: var(--muted);
}

/* ---------- Révélation au scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
