:root {
  /* Palette AM INNOVATE (couleurs du logo) */
  --primary: #0A6CC0;       /* bleu du logo, liens et titres */
  --dark: #0D1B2E;          /* bleu nuit : hero, pied de page, sections sombres */
  --primary-light: #1570C8; /* bleu du texte « AM INNOVATE » */
  --accent: #2EC4F6;        /* cyan du losange, boutons d'action */
  --accent-dark: #1EB2EC;
  --tint: #EEF5FB;
  --sky: #E8F5FD;           /* fond bleu très clair */
  --line: #DCE8F3;
  --ink: #0E1B2E;
  --muted: #52627A;
  --radius: 18px;
  --shadow-sm: 0 2px 6px rgba(13,27,46,.04), 0 10px 24px rgba(13,27,46,.06);
  --shadow-lg: 0 4px 10px rgba(13,27,46,.06), 0 24px 48px rgba(13,27,46,.14);
  --shadow-glow: 0 18px 40px rgba(21,112,200,.22);
  /* Dégradés de l'icône AM INNOVATE */
  --gradient: linear-gradient(135deg, #2EC4F6 0%, #1570C8 100%);
  --gradient-soft: linear-gradient(135deg, #E8F7FE 0%, #EEF3FC 100%);
  --gradient-dark: linear-gradient(135deg, #0D1B2E 0%, #0F3B6E 100%);
  /* Motifs du logo : chevrons (avec petit losange) et losange tressé (SVG) */
  --motif-chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='471 135 313 508'%3E%3Cpath d='M512,137 L550,195 L512,253 L475,195Z' fill='%230A8FD8'/%3E%3Cpath d='M566,218 L678,390 L515.3,641 L473,583 L597,390 L525.5,279.8Z' fill='%230592D9'/%3E%3Cpath d='M618,137 L782,390 L618,641 L578,583 L702,390 L577,195Z' fill='%230380CA'/%3E%3C/svg%3E");
  --motif-chevrons-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='471 135 313 508'%3E%3Cpath d='M512,137 L550,195 L512,253 L475,195Z' fill='%23ffffff' fill-opacity='.7'/%3E%3Cpath d='M566,218 L678,390 L515.3,641 L473,583 L597,390 L525.5,279.8Z' fill='%23ffffff' fill-opacity='.9'/%3E%3Cpath d='M618,137 L782,390 L618,641 L578,583 L702,390 L577,195Z' fill='%23ffffff' fill-opacity='.5'/%3E%3C/svg%3E");
  --motif-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='246 135 331 508'%3E%3Cpath d='M411,137 L321.9,274.5 L411,412 L500.1,274.5Z' fill='%231BB8EF'/%3E%3Cpath d='M321.9,274.5 L248,390 L336.8,526.5 L397.4,433 L330.9,330.4 L350,318 L411,412Z' fill='%232DC9F8'/%3E%3Cpath d='M485.2,526.5 L575,390 L513.7,295.5 L424.6,433Z' fill='%232DC9F8'/%3E%3Cpath d='M336.8,526.5 L411,641 L485.2,526.5 L424.6,433 L411,454 L397.4,433Z' fill='%231BB8EF'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  --bs-body-font-family: "Figtree", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color: var(--primary);
}
h1, h2, h3, .brand, .display-font { font-family: "Bricolage Grotesque", "Figtree", sans-serif; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; text-wrap: balance; }
h3 { text-wrap: balance; }
p { line-height: 1.65; }
.text-muted-2 { color: var(--muted); }
section { padding: 6rem 0; }
.bg-tint { background: var(--sky); }

/* Titres de section */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-light);
}
.eyebrow::before { content: ""; width: 14px; height: 18px; background: var(--motif-chevrons) center / contain no-repeat; }
.eyebrow-light { color: var(--accent); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .9rem; }
.section-head p, .section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }

/* Barre de navigation */
.navbar { padding: .9rem 0; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid #E2E7EF; transition: box-shadow .3s; }
.navbar.is-scrolled { box-shadow: 0 8px 28px rgba(13,27,46,.08); }
.brand { font-weight: 700; font-size: 1.3rem; letter-spacing: .04em; color: var(--primary-light); text-decoration: none; display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.brand-mark { width: 45px; height: 40px; flex-shrink: 0; }
.navbar .nav-link { font-weight: 600; color: var(--ink); padding: .5rem .8rem !important; white-space: nowrap; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link { position: relative; }
.navbar .nav-link:not(.dropdown-toggle)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .1rem; height: 2px; border-radius: 2px; background: var(--gradient); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.dropdown-menu { border: 0; border-radius: 14px; box-shadow: 0 16px 40px rgba(13,27,46,.16); padding: .5rem; }
.dropdown-item { border-radius: 8px; padding: .6rem .9rem; font-weight: 500; }
.dropdown-item:hover, .dropdown-item.active, .dropdown-item:active { background: var(--sky); color: var(--primary); }

.btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-devis {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #6AD8FA 0%, var(--accent) 45%, var(--accent-dark) 100%); color: var(--ink);
  font-weight: 700; border: 0; padding: .75rem 1.4rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(46,196,246,.28);
}
/* reflet qui traverse le bouton au survol */
.btn-devis::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-devis:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46,196,246,.42); }
.btn-devis:hover::after { transform: translateX(120%); }
.btn-outline-maj { border: 2px solid var(--primary); color: var(--primary); font-weight: 700; padding: .65rem 1.3rem; border-radius: 999px; }
.btn-outline-maj:hover { background: var(--primary); color: #fff; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.4); color: #fff; font-weight: 700; padding: .65rem 1.3rem; border-radius: 999px; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--ink); }

/* Hero : photo de résidence en plein fond, voile navy pour la lisibilité du texte */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: #fff;
  min-height: calc(100vh - 74px); display: flex; align-items: center; padding: 6rem 0;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* vidéo de fond : apparaît par-dessus l'image une fois la lecture lancée */
.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13,27,46,.78) 0%, rgba(13,27,46,.62) 40%, rgba(13,27,46,.28) 70%, rgba(13,27,46,.1) 100%);
}
/* chevrons du logo qui flottent à droite du hero */
.hero::after {
  content: ""; position: absolute; z-index: 1; right: -4%; top: 50%; width: min(34vw, 460px); aspect-ratio: 110 / 144;
  background: var(--motif-chevrons-light) center / contain no-repeat; opacity: .14; transform: translateY(-50%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 18px)); } }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 5.5vw, 4.4rem); line-height: 1.02; color: #fff; }
.hero h1::after { content: ""; display: block; width: 88px; height: 5px; margin-top: 1.4rem; border-radius: 5px; background: var(--gradient); }
.hero .lead { max-width: 34rem; color: #D5DDEA; font-size: 1.15rem; }
.hero .btn-outline-maj { border-color: rgba(255,255,255,.7); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-outline-maj:hover { background: #fff; border-color: #fff; color: var(--dark); }
/* carte « verre dépoli » */
.hero-badge {
  position: relative; color: #fff; border-radius: 20px; padding: 1.3rem 1.4rem 1.3rem 1.5rem; max-width: 250px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 20px 44px rgba(0,0,0,.28);
}
.hero-badge::before { content: ""; position: absolute; top: -18px; right: 18px; width: 30px; height: 44px; background: var(--motif-diamond) center / contain no-repeat; filter: drop-shadow(0 6px 12px rgba(0,0,0,.3)); }
.hero-badge strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 2.2rem; background: linear-gradient(135deg, #7FE0FC, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: .35rem; }
.hero-badge .text-muted-2 { color: #D5DDEA; }

/* Chiffres */
.figures { border-top: 1px solid #D5DCE8; padding-top: 2rem; margin-top: 2.5rem; }
.figures strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 2rem; color: var(--primary); display: block; }
.figures span { color: var(--muted); font-size: .95rem; }
.hero .figures { border-top-color: rgba(255,255,255,.25); }
.hero .figures strong { background: linear-gradient(135deg, #fff 40%, #9BE6FD); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .figures span { color: #C3CEE0; }

/* Qui sommes-nous : photo encadrée par le losange et les chevrons du logo */
.about-media { position: relative; max-width: 440px; margin: 0 auto; }
.about-media::before { content: ""; position: absolute; z-index: 0; width: 110px; height: 160px; top: -34px; right: -40px; background: var(--motif-diamond) center / contain no-repeat; filter: drop-shadow(0 18px 30px rgba(21,112,200,.3)); }
.about-media::after { content: ""; position: absolute; z-index: 0; inset: 28px -22px -22px 28px; border-radius: 32px; background: var(--gradient); opacity: .9; }
.about-arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--primary); box-shadow: var(--shadow-lg); }
.about-arch img { width: 100%; height: 100%; object-fit: cover; }
.about-chip {
  position: absolute; z-index: 2; left: -1rem; bottom: 2.5rem; display: flex; align-items: center; gap: .6rem;
  background: #fff; border-radius: 999px; padding: .75rem 1.2rem; font-weight: 700; color: var(--dark); box-shadow: var(--shadow-lg);
}
.about-chip i { color: var(--accent); font-size: 1.1rem; }
.promise-list { list-style: none; padding: 0; margin: 2.2rem 0 2.4rem; display: grid; gap: 1.4rem; }
.promise-list li { display: flex; gap: 1rem; align-items: flex-start; }
.promise-list h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .2rem; }
.promise-list p { color: var(--muted); margin: 0; }
.promise-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 10px 20px rgba(21,112,200,.25); }

/* Services */
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  /* bordure en dégradé révélée au survol (double fond) */
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--line), var(--line)) border-box;
  border: 1.5px solid transparent; border-radius: 22px; padding: 2rem 1.75rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s;
}
.service-card::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 92px; height: 120px; background: var(--motif-chevrons) center / contain no-repeat; opacity: .07; transition: opacity .35s, transform .35s; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); color: var(--ink); background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; }
.service-card:hover::after { opacity: .2; transform: translateX(-8px); }
.service-icon {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 1.6rem;
  background: var(--gradient-soft); color: var(--primary-light); display: grid; place-items: center; font-size: 1.55rem;
  transition: background .35s, color .35s, transform .35s;
}
.service-card:hover .service-icon { background: var(--gradient); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); margin-bottom: 1.6rem; }
.more { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .45rem; }
.more i { transition: transform .25s; }
a:hover .more i { transform: translateX(5px); }

/* Méthode : vraie séquence, donc numérotée */
.steps-section { position: relative; overflow: hidden; background: var(--dots) 0 0 / 22px 22px, radial-gradient(90% 120% at 100% 0%, #0F3B6E 0%, var(--dark) 60%); color: #fff; }
.steps-section::before { content: ""; position: absolute; left: -60px; bottom: -70px; width: 260px; height: 340px; background: var(--motif-chevrons-light) center / contain no-repeat; opacity: .05; }
.steps-section .container { position: relative; }
.steps-section h2 { color: #fff; margin: 0; }
.steps-lead { color: #AEBBD2; font-size: 1.1rem; margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { position: relative; padding: 2rem; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); transition: background .3s, border-color .3s, transform .3s; }
.step:hover { background: rgba(255,255,255,.07); border-color: rgba(46,196,246,.45); transform: translateY(-4px); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 3.75rem; left: calc(2rem + 56px + 1rem); right: -2rem; border-top: 1px dashed rgba(46,196,246,.5); }
.step-no {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.5rem;
  background: var(--gradient); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(46,196,246,.3);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.1rem;
}
.step h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: #AEBBD2; margin: 0; }

.digital-media { max-width: 820px; margin: 0 auto; }
.digital-media img { display: block; width: 100%; height: auto; }

/* Références */
.ref { height: 100%; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(var(--line), var(--line)) border-box; border: 1.5px solid transparent; border-radius: 22px; padding: 1.6rem; transition: transform .3s, box-shadow .3s; }
.ref:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); background: linear-gradient(#fff, #fff) padding-box, var(--gradient) border-box; }
.ref-photo { aspect-ratio: 4 / 3; margin: -1.6rem -1.6rem 1.3rem; border-radius: 20px 20px 0 0; overflow: hidden; background: var(--sky); display: grid; place-items: center; }
.ref-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ref:hover .ref-photo img { transform: scale(1.05); }
.ref-mark { display: block; width: 30px; height: 46px; background: var(--motif-diamond) center / contain no-repeat; transition: transform .3s; }
.ref:hover .ref-mark { transform: rotate(-8deg) scale(1.08); }
.ref h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .9rem; }
.ref-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; }
.ref-meta i { color: var(--primary-light); margin-right: .3rem; }
.ref-lots { background: var(--sky); color: var(--primary); font-weight: 700; font-size: .8rem; padding: .25rem .75rem; border-radius: 999px; }

/* Actualités */
.news a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border-radius: 22px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: transform .35s, box-shadow .35s; }
.news a:hover { transform: translateY(-8px); box-shadow: var(--shadow-glow); }
/* Visuel d'article : icône + chevrons du logo et trame de points, couleur selon la catégorie */
.news-img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; padding: 1.4rem 1.6rem; background-color: var(--dark); background-image: var(--dots), var(--gradient-dark); background-size: 18px 18px, auto; display: grid; place-items: end start; color: #fff; font-size: 2.4rem; }
.news-img::before { content: ""; position: absolute; right: 6%; top: 50%; width: 34%; aspect-ratio: 110 / 144; transform: translateY(-50%); background: var(--motif-chevrons-light) center / contain no-repeat; opacity: .22; transition: transform .45s, opacity .45s; }
.news-img i { position: relative; z-index: 1; line-height: 1; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.news a:hover .news-img::before { transform: translate(10px, -50%); opacity: .35; }
.cat-juridique { background-image: var(--dots), linear-gradient(135deg, #0D1B2E, #0A6CC0); }
.cat-entretien { background-image: var(--dots), linear-gradient(135deg, #0A6CC0, #2EC4F6); }
.cat-finances { background-image: var(--dots), linear-gradient(135deg, #0F3B6E, #1EB2EC); }
.cat-espaces-verts { background-image: var(--dots), linear-gradient(135deg, #1D4638, #3F9A6E); }
.cat-securite { background-image: var(--dots), linear-gradient(135deg, #0D1B2E, #138AD8); }
.news-featured .news-img::before { width: 26%; }
.news-flag { position: absolute; z-index: 1; top: 1.2rem; left: 1.4rem; padding: .35rem .85rem; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.6rem 1.6rem; }
.news-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.news-cat { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--sky); color: var(--primary-light); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news-date { color: var(--muted); font-size: .85rem; }
.news h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: .6rem; }
.news a:hover h3 { color: var(--primary); }
.news p { color: var(--muted); margin-bottom: 1.2rem; }
@media (min-width: 992px) {
  .news-featured a { flex-direction: row; }
  .news-featured .news-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; padding: 2rem 2.2rem; font-size: 3.4rem; }
  .news-featured .news-body { justify-content: center; padding: 2.6rem 2.8rem; }
  .news-featured h3 { font-size: 1.75rem; }
  .news-featured p { font-size: 1.05rem; }
}

/* Blog : filtres par catégorie */
.blog-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.blog-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.blog-count { color: var(--muted); font-weight: 600; margin: 0; }

/* Blog : page article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.article-hero h1 { max-width: 24ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.news-cat-light { background: var(--accent); color: var(--ink); margin-bottom: 1.2rem; }
.article-meta { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: #C3CEE0; font-size: .95rem; }
.article-meta i { color: var(--accent); margin-right: .45rem; }
.prose { max-width: 44rem; font-size: 1.075rem; color: #2A3550; }
.prose-lead { font-size: 1.25rem; line-height: 1.6; font-weight: 500; color: var(--ink); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--dark); margin: 2.6rem 0 1rem; scroll-margin-top: 110px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; }
.prose ul:not(.check-list) { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose ul:not(.check-list) li::marker { color: var(--accent); }
.prose a { color: var(--primary-light); font-weight: 600; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.callout { margin: 2.4rem 0; padding: 1.6rem 1.8rem; background: var(--sky); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .check-list li { border-bottom-color: var(--line); }
.callout .check-list li::before { background: #fff; }
.prose-note { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; max-width: 44rem; margin-top: 2.4rem; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-share > span:first-child { margin-right: .4rem; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--primary); font-size: 1.1rem; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.share-btn:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.back-link i { transition: transform .25s; }
.back-link:hover i { transform: translateX(-4px); }
.article-aside { position: sticky; top: 100px; display: grid; gap: 1.5rem; }
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc li { margin-bottom: .55rem; }
.toc li::marker { color: var(--accent); font-weight: 700; }
.panel.toc a { color: var(--muted); font-weight: 500; }
.panel.toc a:hover, .panel.toc a.is-active { color: var(--primary); text-decoration: none; }
.panel.toc a.is-active { font-weight: 700; }
.panel.panel-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.panel-dark h2 { color: #fff; }
.panel-dark p { color: #C3CEE0; }
.panel.panel-dark a:not(.btn) { color: var(--accent); }

/* Appel à l'action, commun à toutes les pages */
.cta { padding-top: 0; }
.bg-tint + .cta, .steps-section + .cta, .reviews-section + .cta { padding-top: 6rem; }
.cta-card {
  position: relative; overflow: hidden; padding: 4rem 3.5rem; border-radius: 32px; color: #fff;
  background: var(--dots) 0 0 / 22px 22px, radial-gradient(70% 140% at 100% 100%, #0A6CC0 0%, transparent 60%), var(--gradient-dark);
  box-shadow: 0 30px 60px rgba(13,27,46,.25);
}
/* logo en grand : losange + chevrons */
.cta-card::before { content: ""; position: absolute; right: calc(6% + 150px); top: 50%; width: 170px; height: 260px; transform: translateY(-50%) rotate(-8deg); background: var(--motif-diamond) center / contain no-repeat; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); animation: float-rotated 8s ease-in-out infinite; }
.cta-card::after { content: ""; position: absolute; right: 5%; top: 50%; width: 150px; height: 200px; transform: translateY(-50%); background: var(--motif-chevrons-light) center / contain no-repeat; opacity: .8; }
@keyframes float-rotated { 0%, 100% { transform: translateY(-50%) rotate(-8deg); } 50% { transform: translateY(calc(-50% - 14px)) rotate(-4deg); } }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 20ch; margin-bottom: .9rem; }
.cta-card p { color: #C3CEE0; font-size: 1.1rem; max-width: 34rem; margin-bottom: 2rem; }

/* Pied de page */
body > footer { position: relative; background: var(--dots) 0 0 / 22px 22px, var(--ink); color: #A9B3C7; padding: 4.5rem 0 2rem; }
body > footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gradient); }
body > footer a { color: #D5DDEA; text-decoration: none; transition: color .2s; }
body > footer a:hover { color: var(--accent); }
body > footer h3 { color: #fff; font-family: "Figtree", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
body > footer p.mb-1 { margin-bottom: .6rem !important; }
body > footer .bi { color: var(--accent); }
body > footer hr { border-color: rgba(255,255,255,.1) !important; opacity: 1; }

.whatsapp { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); z-index: 1000; transition: transform .2s; }
.whatsapp:hover { color: #fff; transform: scale(1.06); }

/* Réseaux sociaux : pied de page et liste flottante au milieu du bord droit */
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); font-size: 1.05rem; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
body > footer .footer-social .bi { color: #fff; }
.social-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 999; display: flex; flex-direction: column; background: var(--gradient); border-radius: 14px 0 0 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.social-rail a { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; transition: background .2s, color .2s; }
.social-rail a:hover { background: #fff; color: var(--primary); }
/* un seul réseau : bouton rond aligné sur WhatsApp, et lien avec libellé dans le pied de page */
.social-rail .social-label { display: none; }
.social-rail.is-single { right: 26px; top: auto; bottom: 92px; transform: none; background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.social-rail.is-single a { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient); font-size: 1.3rem; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .2s; }
.social-rail.is-single a:hover { background: var(--gradient); color: #fff; transform: scale(1.08); }
.footer-social.is-single a { width: auto; padding: 0 1.1rem 0 .9rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 600; font-size: .95rem; }
.footer-social.is-single a:hover, body > footer .footer-social.is-single a:hover .bi { color: var(--ink); }
@media (max-width: 575.98px) {
  .social-rail a { width: 36px; height: 36px; font-size: 1rem; }
  .social-rail.is-single { right: 28px; }
  .social-rail.is-single a { width: 42px; height: 42px; font-size: 1.2rem; }
}

/* Apparition au défilement (main.js ne masque que ce qui est sous la ligne de flottaison) */
.reveal-pending { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal-pending.is-visible { opacity: 1; transform: none; }
.reveal-group > .reveal-pending:nth-child(4n+2) { transition-delay: .08s; }
.reveal-group > .reveal-pending:nth-child(4n+3) { transition-delay: .16s; }
.reveal-group > .reveal-pending:nth-child(4n+4) { transition-delay: .24s; }

@media (min-width: 1200px) and (max-width: 1399px) {
  .navbar .nav-link { padding: .5rem .6rem !important; }
  .brand { font-size: 1.25rem; }
}
@media (max-width: 1199px) {
  .navbar-collapse { padding: 1rem 0 .5rem; }
  .navbar .btn-devis { margin-top: .75rem; }
}
@media (max-width: 991px) {
  /* Les gouttières .g-5 dépassent la marge du conteneur sur petit écran : défilement horizontal */
  .g-5, .gx-5 { --bs-gutter-x: 1.5rem; }
  .hero { min-height: 0; padding: 4.5rem 0; }
  .hero::before { background: rgba(13,27,46,.65); }
  section { padding: 4.5rem 0; }
  .bg-tint + .cta, .steps-section + .cta, .reviews-section + .cta { padding-top: 4.5rem; }
  .about-media { max-width: 360px; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; padding: 1.5rem; }
  .step-no { margin: 0; }
  .step:not(:last-child)::after { display: none; }
  .hero::after { width: 46vw; right: -14%; opacity: .08; }
  .cta-card { padding: 3rem 2rem; }
  .cta-card::before { right: -30px; top: auto; bottom: -40px; width: 110px; height: 170px; opacity: .5; animation: none; transform: rotate(-8deg); }
  .cta-card::after { display: none; }
  .page-header::before { display: none; }
}
@media (max-width: 575px) {
  /* Téléphone : la vidéo occupe un carré dégagé en haut du hero, le texte passe dessous sur fond sombre */
  .hero { padding: calc(100vw - 6.5rem) 0 3.5rem; align-items: flex-start; }
  .hero-bg { bottom: auto; height: 100vw; }
  .hero::before { bottom: auto; height: 100vw; background: linear-gradient(180deg, rgba(13,27,46,.2) 0%, rgba(13,27,46,.2) 45%, var(--dark) 100%); }
  .hero::after { display: none; }
  .about-chip { left: 0; }
  .about-media::before { right: -8px; width: 80px; height: 116px; }
  .about-media::after { inset: 20px -10px -14px 20px; }
  .cta-card { padding: 2.5rem 1.5rem; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .reveal-pending { opacity: 1; transform: none; } }

/* En-tête des pages intérieures : même photo que l'accueil */
.page-header {
  position: relative; overflow: hidden; color: #fff; padding: 6rem 0 5rem;
  background: linear-gradient(90deg, rgba(13,27,46,.95) 0%, rgba(13,27,46,.84) 50%, rgba(13,27,46,.6) 100%), url("../img/residence-1024.webp") center 45% / cover no-repeat var(--dark);
}
.page-header h1 { font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 3.6rem); max-width: 18ch; }
.page-header p { color: #C3CEE0; max-width: 40rem; font-size: 1.1rem; margin: 0; }
.breadcrumb a { color: #C3CEE0; text-decoration: none; } .breadcrumb a:hover { color: var(--accent); }
.breadcrumb-item.active { color: #fff; } .breadcrumb-item + .breadcrumb-item::before { color: #7F8FAD; }
.page-header .container { position: relative; z-index: 2; }
.page-header::before { content: ""; position: absolute; z-index: 1; right: 4%; top: 50%; width: min(22vw, 260px); aspect-ratio: 110 / 144; transform: translateY(-50%); background: var(--motif-chevrons-light) center / contain no-repeat; opacity: .12; }
.page-header::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 4px; background: var(--gradient); }
.check-list { list-style: none; padding: 0; } .check-list li { padding: .7rem 0 .7rem 2.2rem; position: relative; border-bottom: 1px solid #E2E7EF; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .6rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--sky); color: var(--primary-light); font-size: 1.1rem; display: grid; place-items: center; }
.panel { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid #E2E7EF; box-shadow: var(--shadow-sm); }
.panel ul:not(.check-list) { padding-left: 1.1rem; } .panel ul:not(.check-list) li { margin-bottom: .35rem; }
.panel ul:not(.check-list) li::marker { color: var(--accent); }
.panel a:not(.btn) { color: var(--primary); font-weight: 600; text-decoration: none; } .panel a:not(.btn):hover { color: var(--primary-light); text-decoration: underline; }
.quote { position: relative; height: 100%; background: #fff; border-radius: var(--radius); padding: 2.2rem 2rem 1.8rem; box-shadow: var(--shadow-sm); }
.quote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 4rem; line-height: .8; height: 2rem; color: var(--accent); }
.quote p { font-size: 1.08rem; }
.quote footer { background: none; padding: 1rem 0 0; margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; }
/* Avis clients : cartes blanches sur fond bleu nuit */
.reviews-section { position: relative; background: var(--dots) 0 0 / 22px 22px, radial-gradient(90% 120% at 0% 0%, #0F3B6E 0%, var(--dark) 60%); color: #fff; }
.reviews-section h2 { color: #fff; }
.reviews-section .section-head p { color: #AEBBD2; }
.reviews-section .quote { display: flex; flex-direction: column; color: var(--ink); }
.reviews-section .quote footer { margin-top: auto; }
.reviews-section .quote footer strong { display: block; color: var(--ink); font-size: 1rem; }
/* carrousel : défilement horizontal aimanté, 1 carte sur mobile, 2 sur tablette, 3 sur ordinateur */
.reviews-track { --gap: 1.5rem; display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { flex: 0 0 calc(100% - var(--peek)); height: auto; scroll-snap-align: start; }
.review-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.review-more { align-self: flex-start; margin: -.4rem 0 1rem; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 600; font-size: .92rem; }
.review-more:hover { color: var(--accent-dark); }
.reviews-nav { display: flex; gap: .6rem; }
.reviews-nav button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 1.1rem; transition: background .2s, border-color .2s, opacity .2s; }
.reviews-nav button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.reviews-nav button:disabled { opacity: .35; cursor: default; }
@media (min-width: 768px) { .review-card { flex-basis: calc((100% - var(--gap) * (var(--per-view-md) - 1)) / var(--per-view-md)); } }
@media (min-width: 992px) { .review-card { flex-basis: calc((100% - var(--gap) * (var(--per-view-lg) - 1)) / var(--per-view-lg)); } }
.review-stars { display: flex; gap: .2rem; margin: .6rem 0 .9rem; color: #F5B301; font-size: 1rem; }
.value { counter-increment: value; }
.value h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); padding-top: 1.2rem; border-top: 2px solid var(--primary); }
.value h3::before { content: counter(value, decimal-leading-zero); display: block; margin-bottom: .5rem; font-size: .85rem; color: var(--accent); letter-spacing: .08em; }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--shadow-sm); } .map-wrap iframe { width: 100%; height: 100%; border: 0; }
.form-light .form-control, .form-light .form-select { border: 1px solid #D5D8E6; border-radius: 10px; padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s; }
.form-light .form-control:focus, .form-light .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 .25rem rgba(21,112,200,.15); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-light label { font-weight: 600; margin-bottom: .35rem; }
