:root {
  --ibs-green-950: #0b2b1e;
  --ibs-green-800: #124b34;
  --ibs-green-650: #1d6b49;
  --ibs-amber: #d9913b;
  --ibs-amber-dark: #b56f24;
  --ibs-cream: #f8f5ee;
  --ibs-ink: #18302a;
  --ibs-muted: #63716c;
  --ibs-border: #dfe8e3;
  --ibs-shadow: 0 18px 55px rgba(13, 50, 35, .11);
  --bs-primary: var(--ibs-green-800);
  --bs-primary-rgb: 18, 75, 52;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ibs-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px; /* Réduction de la taille de police de base */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ibs-green-800); }
a:hover { color: var(--ibs-amber-dark); }
img { max-width: 100%; height: auto; }

.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 2000; padding: .75rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

.section-space { padding: 5rem 0; } /* Légèrement réduit pour plus de dynamisme */
.section-soft { background: var(--ibs-cream); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--ibs-green-650); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--ibs-amber); }

/* Titres réduits pour un rendu plus moderne et moins massif */
.section-title { max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-lead { max-width: 720px; color: var(--ibs-muted); font-size: 1rem; }

/* En-tête et Navigation */
.topbar { background: var(--ibs-green-950); color: rgba(255,255,255,.82); font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.navbar { padding: 0.8rem 0; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(12,44,31,.08); }
.navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--ibs-green-950); font-weight: 850; line-height: 1.1; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: #fff; background: var(--ibs-green-800); box-shadow: inset 0 -6px 0 rgba(217,145,59,.9); font-size: .76rem; letter-spacing: .04em; }
.brand-name small { display: block; color: var(--ibs-muted); font-size: .65rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

.nav-link { margin: 0 .15rem; color: var(--ibs-ink); font-weight: 600; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--ibs-green-650); }
.nav-link.active { position: relative; }
.nav-link.active::after { content: ""; position: absolute; right: .5rem; bottom: .15rem; left: .5rem; height: 2px; background: var(--ibs-amber); }

/* Boutons */
.btn { padding: .7rem 1.25rem; border-radius: .75rem; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; }
.btn-primary { --bs-btn-bg: var(--ibs-green-800); --bs-btn-border-color: var(--ibs-green-800); --bs-btn-hover-bg: var(--ibs-green-650); --bs-btn-hover-border-color: var(--ibs-green-650); }
.btn-outline-primary { --bs-btn-color: var(--ibs-green-800); --bs-btn-border-color: var(--ibs-green-800); --bs-btn-hover-bg: var(--ibs-green-800); --bs-btn-hover-border-color: var(--ibs-green-800); --bs-btn-active-bg: var(--ibs-green-650); --bs-btn-active-border-color: var(--ibs-green-650); }
.btn-accent { color: #1d261f; background: var(--ibs-amber); border-color: var(--ibs-amber); }
.btn-accent:hover { color: #fff; background: var(--ibs-amber-dark); border-color: var(--ibs-amber-dark); box-shadow: 0 4px 12px rgba(217, 145, 59, 0.3); }
.btn-whatsapp { color: #fff; background: #168d48; border-color: #168d48; }
.btn-whatsapp:hover { color: #fff; background: #10733a; border-color: #10733a; box-shadow: 0 4px 12px rgba(22, 141, 72, 0.3); }

/* Hero Section */
.hero { position: relative; min-height: 600px; display: grid; align-items: center; overflow: hidden; background: var(--ibs-green-950); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,31,21,.96) 0%, rgba(7,31,21,.85) 48%, rgba(7,31,21,.24) 100%), url("../images/hero-architecture.webp") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; right: -12vw; bottom: -30vw; width: 55vw; height: 55vw; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 780px; padding: 5rem 0; color: #fff; }
/* Titre Hero réduit */
.hero h1 { margin: 1rem 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.03em; }
.hero p { max-width: 660px; color: rgba(255,255,255,.85); font-size: clamp(1rem, 1.5vw, 1.15rem); margin-bottom: 2rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.hero-pills span { padding: .4rem .7rem; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; background: rgba(255,255,255,.08); font-size: .8rem; }

.page-hero { padding: 5.5rem 0 4rem; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(217,145,59,.25), transparent 24%), var(--ibs-green-950); }
.page-hero h1 { max-width: 900px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -.03em; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.76); font-size: 1.05rem; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.72); font-size: 0.9rem; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* Cartes et Éléments Visuels */
.media-frame { position: relative; overflow: hidden; border-radius: 1.25rem; box-shadow: var(--ibs-shadow); }
.media-frame img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.media-note { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; padding: 1.2rem; border-radius: 1rem; color: #fff; background: rgba(11,43,30,.9); backdrop-filter: blur(8px); }

.feature-card, .service-card, .article-card, .contact-card { 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
  border: 1px solid var(--ibs-border); 
  border-radius: 1rem; 
  background: #fff; 
  box-shadow: 0 8px 24px rgba(13,50,35,.04); 
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; 
}
.feature-card:hover, .service-card:hover, .article-card:hover, .contact-card:hover { transform: translateY(-5px); border-color: rgba(29,107,73,.3); box-shadow: var(--ibs-shadow); }

.icon-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--ibs-green-800); background: #e9f4ee; font-size: 1.2rem; }
.service-card { overflow: hidden; }
.service-card img, .article-card img { width: 100%; height: 210px; object-fit: cover; border-bottom: 1px solid var(--ibs-border); }
.service-card .card-body, .article-card .card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.service-card .card-body a, .article-card .card-body a { margin-top: auto; padding-top: 1rem; } /* Pousse le lien tout en bas */
.service-card ul { padding-left: 1.2rem; color: var(--ibs-muted); }
.service-card li::marker { color: var(--ibs-amber); }

/* Statistiques et Processus */
.number-stat { padding: 1.5rem; border-left: 1px solid rgba(255,255,255,.16); }
.number-stat strong { display: block; color: #fff; font-family: Georgia, serif; font-size: 2.5rem; line-height: 1.1; }
.number-stat span { color: rgba(255,255,255,.7); font-size: 0.95rem; }
.stats-band { background: var(--ibs-green-950); }

.process-step { position: relative; padding-left: 3.5rem; margin-bottom: 1rem; }
.process-step .step-number { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--ibs-green-800); font-weight: 700; font-size: 1.1rem; }

.value-card { padding: 2rem; border-top: 4px solid var(--ibs-amber); border-radius: 0 0 1rem 1rem; background: #fff; box-shadow: var(--ibs-shadow); }
.person-card img { width: 100%; height: 350px; object-fit: cover; object-position: center 28%; border-radius: 1rem; }
.category-chip { display: inline-block; margin: .25rem; padding: .4rem .75rem; border: 1px solid var(--ibs-border); border-radius: 99px; color: var(--ibs-ink); background: #fff; text-decoration: none; font-size: .8rem; font-weight: 600; }
.category-chip:hover { border-color: var(--ibs-green-650); background: #edf7f1; }
.article-meta { color: var(--ibs-muted); font-size: .85rem; }
.placeholder-badge { color: #6b4b1e; background: #fff1d9; font-size: 0.75rem; padding: 0.4em 0.8em; }

/* Formulaires et Composants divers */
.form-control, .form-select { min-height: 48px; border-color: #ccd9d2; border-radius: .6rem; font-size: 0.95rem; }
.form-control:focus, .form-select:focus { border-color: var(--ibs-green-650); box-shadow: 0 0 0 .25rem rgba(29,107,73,.14); }
.map-wrap { min-height: 400px; overflow: hidden; border-radius: 1rem; background: #e7eee9; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; }

.cta-panel { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border-radius: 1.25rem; color: #fff; background: var(--ibs-green-800); }
.cta-panel::after { content: ""; position: absolute; right: -100px; bottom: -140px; width: 310px; height: 310px; border: 60px solid rgba(217,145,59,.22); border-radius: 50%; }
.cta-panel > * { position: relative; z-index: 1; }

.floating-whatsapp { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1040; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: #168d48; box-shadow: 0 8px 25px rgba(0,0,0,.2); font-size: 1.5rem; transition: transform 0.3s ease; }
.floating-whatsapp:hover { color: #fff; transform: translateY(-4px); }

.page-hero-meta { color: rgba(255,255,255,.72); font-size: .9rem; }
.page-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 1.25rem; box-shadow: var(--ibs-shadow); }

.article-content { color: var(--ibs-ink); font-size: 1.05rem; line-height: 1.75; }
.article-content h2, .article-content h3 { margin-top: 2rem; margin-bottom: 1rem; font-family: Georgia, "Times New Roman", serif; color: var(--ibs-green-950); }
.article-content p { margin-bottom: 1.25rem; }
.article-content img { border-radius: 1rem; margin: 1.5rem 0; }
.article-content ul, .article-content ol { padding-left: 1.3rem; margin-bottom: 1.25rem; }
.article-content li::marker { color: var(--ibs-amber); }
.article-content a { font-weight: 600; }
.article-content blockquote { padding: 1rem 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--ibs-amber); background: var(--ibs-cream); border-radius: 0 .75rem .75rem 0; }

/* Pages légales (mentions, confidentialité) */
.legal-updated { display: inline-block; margin-bottom: 2rem; padding: .35rem .8rem; border-radius: 99px; color: var(--ibs-green-800); background: #e9f4ee; font-size: .8rem; font-weight: 700; }
.legal-todo { color: var(--ibs-amber-dark); font-style: italic; }
.legal-toc { position: sticky; top: 6.5rem; padding: 1.5rem; border: 1px solid var(--ibs-border); border-radius: 1rem; background: var(--ibs-cream); }
.legal-toc-title { margin-bottom: .75rem; color: var(--ibs-muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin-bottom: .5rem; }
.legal-toc a { color: var(--ibs-ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.legal-toc a:hover { color: var(--ibs-green-650); }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; color: var(--ibs-green-950); scroll-margin-top: 6rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ibs-ink); }
.legal-content ul { padding-left: 1.2rem; }
.legal-content li::marker { color: var(--ibs-amber); }
.legal-content a { font-weight: 600; }

/* Footer */
.site-footer { padding: 4rem 0 2rem; color: rgba(255,255,255,.75); background: var(--ibs-green-950); font-size: 0.95rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #fff; font-weight: 800; font-size: 1.05rem; }
.footer-brand:hover { color: #fff; }
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: .6rem; }
.footer-contact i { width: 1.3rem; color: var(--ibs-amber); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; margin-top: 2rem; }
.footer-bottom p { margin: 0; }
.footer-legal a { color: rgba(255,255,255,.7); }
.back-to-top { position: fixed; right: 1.5rem; bottom: 5.5rem; z-index: 1039; display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ibs-green-950); background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.2); font-size: 1.1rem; transition: transform 0.3s ease; }
.back-to-top.is-visible { display: grid; }
.back-to-top:hover { transform: translateY(-4px); }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse { margin-top: 1rem; padding: 1rem; border-radius: 1rem; background: var(--ibs-cream); }
  .nav-link.active::after { right: auto; width: 24px; }
  .hero { min-height: 550px; }
  .hero::before { background: linear-gradient(rgba(7,31,21,.9), rgba(7,31,21,.87)), url("../images/hero-architecture.webp") center/cover no-repeat; }
  .section-space { padding: 4rem 0; }
  .number-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
}

@media (max-width: 575.98px) {
  .topbar .topbar-email { display: none; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .hero-copy { padding: 4rem 0; }
  .section-space { padding: 3.5rem 0; }
  .media-frame img { min-height: 300px; }
  .service-card img, .article-card img { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--ibs-amber); outline-offset: 3px; }