/*==============================================================
# Thème « tech premium clair »
# Chargé après main.css et site.css : ne modifie que l'apparence.
# Fond blanc + vert #127f26 conservés. Contraste WCAG AA vérifié
# pour chaque couple texte/fond indiqué en commentaire.
==============================================================*/

:root {
  /* Couleurs */
  --t-green:        #127f26;   /* blanc sur vert : 5,3:1 */
  --t-green-dark:   #0b5a1a;
  --t-green-deep:   #0a4a16;
  --t-green-mid:    #16852c;   /* blanc sur ce vert : 4,9:1 */
  --t-green-bright: #1a9632;   /* fin de dégradé texte (titres ≥ 24 px gras : 3,9:1) */
  --t-green-50:     #eef7f0;
  --t-green-100:    #d7ecdc;
  --t-green-200:    #b5dcbf;
  --t-tint:         #f7faf8;   /* sections alternées */
  --t-text:         #1a2330;   /* texte principal : 15,6:1 sur blanc */
  --t-text-soft:    #4f5b69;   /* texte secondaire : 6,9:1 sur blanc, 6,6:1 sur --t-tint */
  --t-line:         #e4e9e6;   /* lignes décoratives */
  --t-input-bg:     #f5f7f6;
  --t-input-border: #8a948d;   /* bord des champs : 3:1 (WCAG 1.4.11) */
  --t-grid-line:    rgba(30, 70, 45, 0.045);
  --t-grid-light:   rgba(255, 255, 255, 0.08);

  /* Rayons */
  --t-r-sm:   10px;
  --t-r-md:   16px;
  --t-r-pill: 999px;

  /* Ombres et glow */
  --t-shadow:       0 1px 2px rgba(16, 32, 24, 0.04), 0 8px 28px -10px rgba(16, 32, 24, 0.12);
  --t-shadow-hover: 0 2px 4px rgba(16, 32, 24, 0.05), 0 18px 40px -14px rgba(16, 32, 24, 0.2);
  --t-glow:         0 6px 18px -6px rgba(18, 127, 38, 0.32);
  --t-glow-strong:  0 10px 30px -6px rgba(18, 127, 38, 0.5);
  --t-focus:        0 0 0 4px rgba(18, 127, 38, 0.16);

  /* Textures */
  --t-grid-size: 60px;
  --t-grid: linear-gradient(var(--t-grid-line) 1px, transparent 1px),
            linear-gradient(90deg, var(--t-grid-line) 1px, transparent 1px);
  --t-grid-white: linear-gradient(var(--t-grid-light) 1px, transparent 1px),
                  linear-gradient(90deg, var(--t-grid-light) 1px, transparent 1px);
  --t-gradient:      linear-gradient(135deg, var(--t-green-deep) 0%, var(--t-green) 55%, var(--t-green-mid) 100%);
  --t-text-gradient: linear-gradient(100deg, var(--t-green-dark) 0%, var(--t-green) 45%, var(--t-green-bright) 100%);

  /* Typo */
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --nav-font: "Inter", system-ui, sans-serif;

  /* Variables du template remappées */
  --default-color: var(--t-text);
  --heading-color: var(--t-text);
  --accent-color: var(--t-green);
  --nav-color: var(--t-text);
  --nav-dropdown-color: var(--t-text);
}

.light-background { --background-color: var(--t-tint); --surface-color: #ffffff; }
.footer.dark-background { --background-color: #0c1611; --surface-color: #16231c; }

/*--------------------------------------------------------------
# Base et typographie
--------------------------------------------------------------*/
body {
  font-family: var(--default-font);
  color: var(--t-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--heading-font);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h3, h4, h5, h6, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -0.015em; }
p { line-height: 1.65; }

.text-gradient {
  background: var(--t-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .text-gradient { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}

/*--------------------------------------------------------------
# Sections : grille fine qui s'estompe, halos verts, alternance
--------------------------------------------------------------*/
.main > section:not(.hero):not(.cta) {
  position: relative;
  isolation: isolate;      /* les pseudo-éléments (z-index -1) restent derrière le contenu */
  padding: 88px 0;
}
.main > section:not(.hero):not(.cta) + section:not(.cta) { border-top: 1px solid var(--t-line); }

.main > section:not(.hero):not(.cta)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--t-grid);
  background-size: var(--t-grid-size) var(--t-grid-size);
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 40%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 40%, transparent 85%);
}
.main > section:not(.hero):not(.cta)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -220px;
  right: -180px;
  width: 680px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 127, 38, 0.11), rgba(18, 127, 38, 0));
}
.main > section:not(.hero):not(.cta):nth-of-type(even)::after { right: auto; left: -200px; }

@media (max-width: 767px) {
  .main > section:not(.hero):not(.cta) { padding: 64px 0; }
  .main > section:not(.hero):not(.cta)::after { width: 420px; height: 360px; right: -160px; }
}

/*--------------------------------------------------------------
# Titres de section + badge en pilule
--------------------------------------------------------------*/
.section-title { padding-bottom: 52px; }
.section-title h2 {
  text-transform: none;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding-bottom: 0;
  margin-bottom: 14px;
}
.section-title h2::after { display: none; }
.section-title p { color: var(--t-text-soft); font-size: 17px; max-width: 620px; margin-inline: auto; }

.section-title[data-eyebrow]::before,
.eyebrow {
  content: attr(data-eyebrow);
  content: attr(data-eyebrow) / "";   /* décoratif : ignoré par les lecteurs d'écran */
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px 6px 28px;
  border: 1px solid var(--t-green-200);
  border-radius: var(--t-r-pill);
  /* petit point vert dessiné en dégradé */
  background: radial-gradient(circle at 15px 50%, var(--t-green) 3.5px, transparent 4px), var(--t-green-50);
  color: var(--t-green-dark);          /* 7,6:1 sur --t-green-50 */
  font-family: var(--default-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* « Warum … ? » de l'accueil */
.about .inner-title { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; }

/*--------------------------------------------------------------
# Navbar flottante : capsule en verre dépoli, liens en pastilles
--------------------------------------------------------------*/
:root { --t-header-h: 80px; }
@media (max-width: 1199px) { :root { --t-header-h: 72px; } }
.header {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 14px 0 0;
  pointer-events: none;            /* seule la capsule capte les clics */
}
.header > .container {
  pointer-events: auto;
  isolation: isolate;
  min-height: 64px;
  padding: 10px 10px 10px 26px;
  border-radius: var(--t-r-pill);
}
/* Fond et flou portés par des pseudo-éléments : un backdrop-filter sur le
   conteneur casserait le menu mobile (position fixe). */
.header > .container::before,
.header > .container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.header > .container::before {
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(26, 35, 48, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 34px -16px rgba(16, 32, 24, 0.22);
}
.header > .container::after {        /* ombre plus marquée une fois la page défilée */
  box-shadow: 0 18px 44px -16px rgba(16, 32, 24, 0.32);
  opacity: 0;
  transition: opacity 250ms var(--ease-out);
}
.scrolled .header > .container::after { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header > .container::before { background: rgba(255, 255, 255, 0.97); }
}
@media (max-width: 575px) {
  .header { padding-top: 10px; }
  .header > .container { width: calc(100% - 20px); }
}

.header .logo .sitename { font-family: var(--heading-font); font-weight: 800; letter-spacing: -0.02em; color: var(--t-text); }

@media (min-width: 1200px) {
  .navmenu ul { gap: 2px; }
  .navmenu a, .navmenu a:focus {
    font-family: var(--nav-font);
    text-transform: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--t-text-soft);
    padding: 9px 16px;
    border-radius: var(--t-r-pill);
  }
  .navmenu li:last-child a { padding-right: 16px; }
  .navmenu li:hover > a { color: var(--t-text); background: rgba(26, 35, 48, 0.05); }
  .navmenu .active, .navmenu .active:focus, .navmenu li:hover > a.active {
    color: var(--t-green-dark);
    background: var(--t-green-50);
    box-shadow: inset 0 0 0 1px var(--t-green-100);
    font-weight: 600;
  }
}

.btn-getstarted {
  font-family: var(--default-font);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 20px 11px 22px;
  border-radius: var(--t-r-pill);
  margin-left: 14px;
}

/* Menu mobile : bouton rond, panneau arrondi sous la capsule */
@media (max-width: 1199px) {
  .header > .container { min-height: 58px; padding: 8px 8px 8px 20px; }
  .mobile-nav-toggle {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--t-green-50);
    color: var(--t-green-dark);
    font-size: 24px;
    margin-right: 0;
  }
  .mobile-nav-active .navmenu { background: rgba(8, 20, 12, 0.5); }
  .mobile-nav-active .mobile-nav-toggle { top: 18px; right: 18px; color: var(--t-green-dark); background: #ffffff; font-size: 26px; }
  .mobile-nav-active .navmenu > ul {
    inset: 84px 14px auto 14px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid var(--t-line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
  }
  .navmenu a, .navmenu a:focus { font-family: var(--nav-font); font-size: 17px; font-weight: 500; padding: 13px 16px; border-radius: 14px; color: var(--t-text); }
  .navmenu a:hover { background: rgba(26, 35, 48, 0.05); }
  .navmenu .active, .navmenu .active:focus { background: var(--t-green-50); color: var(--t-green-dark); font-weight: 600; }
}

/* Le héros et le bandeau de titre passent sous la capsule (fond continu) */
.main > .hero-x, .main > .page-title { margin-top: calc(-1 * var(--t-header-h)); }
.main > .page-title.accent-background { padding-top: calc(var(--t-header-h) + 44px); }

/*--------------------------------------------------------------
# Boutons : vert plein + glow, flèche qui glisse ; secondaire contour
--------------------------------------------------------------*/
.btn { border-radius: var(--t-r-sm); font-weight: 600; letter-spacing: -0.005em; }
.btn-lg { padding: 13px 28px; font-size: 16.5px; }

.btn-accent, .btn-getstarted, .hero .btn-get-started:not(.btn-ghost), #calc-apply {
  position: relative;
  isolation: isolate;
  background: var(--t-green);
  border: 1px solid var(--t-green);
  color: #ffffff;
  box-shadow: var(--t-glow);
}
.btn-accent:hover, .btn-accent:focus-visible,
.btn-getstarted:hover, .btn-getstarted:focus-visible,
.hero .btn-get-started:not(.btn-ghost):hover,
#calc-apply:hover, #calc-apply:focus-visible {
  background: var(--t-green-dark);
  border-color: var(--t-green-dark);
  color: #ffffff;
}
/* Glow renforcé au survol : calque d'ombre dont seule l'opacité change. */
.btn-accent::before, .btn-getstarted::before, .hero .btn-get-started:not(.btn-ghost)::before, #calc-apply::before, .btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--t-glow-strong);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
  pointer-events: none;
}
.btn-accent:hover::before, .btn-getstarted:hover::before, .hero .btn-get-started:not(.btn-ghost):hover::before,
#calc-apply:hover::before, .btn-cta:hover::before,
.btn-accent:focus-visible::before, .btn-getstarted:focus-visible::before { opacity: 1; }

/* Flèche → (icône Bootstrap, décorative) */
.btn-accent:not(.btn-submit):not(.calc-submit)::after,
.btn-getstarted::after,
.hero .btn-get-started:not(.btn-ghost)::after,
#calc-apply::after,
.btn-cta::after {
  content: "\f138";
  content: "\f138" / "";
  font-family: "bootstrap-icons";
  font-weight: normal;
  display: inline-block;
  margin-left: 0.5em;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: -0.1em;
  transition: transform 220ms var(--ease-out);
}
.btn-accent:hover::after, .btn-getstarted:hover::after, .hero .btn-get-started:hover::after,
#calc-apply:hover::after, .btn-cta:hover::after,
.btn-accent:focus-visible::after, .btn-getstarted:focus-visible::after { transform: translateX(4px); }
.consent-banner .consent-actions .btn::after { content: none; }

/* Bouton « retour en haut » */
.scroll-top {
  border-radius: var(--t-r-sm);
  background-color: var(--t-green);
  box-shadow: var(--t-glow);
}
.scroll-top:hover { background-color: var(--t-green-dark); }

/* Secondaires : contour vert fin sur fond blanc */
.btn-outline-dark, .btn-outline-secondary, .btn-outline-success, .consent-actions .btn-outline-light {
  background: #ffffff;
  border: 1px solid var(--t-green-200);
  color: var(--t-green-dark);
}
.btn-outline-dark:hover, .btn-outline-dark:focus-visible,
.btn-outline-secondary:hover, .btn-outline-success:hover,
.consent-actions .btn-outline-light:hover {
  background: var(--t-green-50);
  border-color: var(--t-green);
  color: var(--t-green-dark);
}

/* CTA sur fond vert : bouton blanc, texte vert */
.btn-cta {
  position: relative;
  isolation: isolate;
  border-radius: var(--t-r-sm);
  color: var(--t-green-dark);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}
.btn-cta::before { box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.45); }
.btn-cta:hover { background: #ffffff; color: var(--t-green-deep); }

/* Héros (photos) : boutons arrondis, le « ghost » reste un contour blanc */
.hero .btn-get-started { border-radius: var(--t-r-sm); font-weight: 600; letter-spacing: 0; padding: 11px 26px; }
.hero .btn-get-started.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.85); }
.hero h1, .hero h2 { font-weight: 800; letter-spacing: -0.03em; }

/*--------------------------------------------------------------
# Bandeaux verts : titre de page et CTA
--------------------------------------------------------------*/
.page-title.accent-background,
.cta.accent-background {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--t-gradient);
}
.page-title.accent-background::before,
.cta.accent-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--t-grid-white);
  background-size: var(--t-grid-size) var(--t-grid-size);
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}
.page-title.accent-background::after,
.cta.accent-background::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -60%;
  right: 4%;
  width: 560px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 255, 190, 0.28), rgba(170, 255, 190, 0));
}

.page-title.accent-background {
  padding: 54px 0 62px;
  border-radius: 0 0 50% 50% / 0 0 26px 26px;   /* courbe douce en bas */
  box-shadow: 0 14px 30px -18px rgba(10, 74, 22, 0.55);
  margin-bottom: 4px;
}
.page-title h1 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
}
.page-title .breadcrumbs ol { font-size: 14px; }
.page-title .breadcrumbs a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); }
.page-title .breadcrumbs .current { color: rgba(255, 255, 255, 0.92); }
.page-title .breadcrumbs ol li+li::before { color: rgba(255, 255, 255, 0.6); }

.cta.accent-background { padding: 72px 0; }
.cta h2 { font-size: clamp(24px, 3vw, 32px); }
.cta p { color: rgba(255, 255, 255, 0.92); }

/*--------------------------------------------------------------
# Cartes : bordure fine, rayon 16, ombre diffuse ; survol = élévation + bordure vert pâle
--------------------------------------------------------------*/
.services .service-item,
.features .features-item, .process-item, .value-item,
.blog-posts article,
.faq-item,
.app-form, .calc-form, .calc-result,
.loan-form .info, .contact .info,
.thanks-card,
.service-details .services-list,
.testimonials .testimonial-item,
.about .our-story {
  background-color: #ffffff;
  border: 1px solid var(--t-line);
  border-radius: var(--t-r-md);
  box-shadow: var(--t-shadow);
}
.services .service-item, .features .features-item, .blog-posts article { position: relative; }

/* calque de survol (opacité seule) : ombre plus marquée + bordure vert pâle */
.services .service-item::after,
.features .features-item::after,
.blog-posts article::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--t-green-200);
  box-shadow: var(--t-shadow-hover);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .services .service-item:hover::after,
  .features .features-item:hover::after,
  .blog-posts article:hover::after { opacity: 1; }
}
.services .service-item:hover { box-shadow: var(--t-shadow); }
.features .features-item:hover { border-color: var(--t-line); }

/* Services : icônes vertes (au lieu des couleurs du template) */
.services .service-item { padding: 48px 28px; }
.services .service-item h3 { font-size: 21px; }
.services .service-item p { color: var(--t-text-soft); font-size: 15px; line-height: 1.6; }
.services .service-item .icon i { color: var(--t-green) !important; }
.services .service-item .icon svg path { fill: var(--t-green-50) !important; }
.services .service-item:hover .icon svg path { fill: var(--t-green) !important; }
.services .service-item:hover .icon i { color: #ffffff !important; }

/* Étapes : numéros en pastilles vertes avec glow */
.process-item, .value-item { padding: 30px 26px !important; }
.process-item i, .value-item i { font-size: 30px; }
.process-item p, .value-item p { color: var(--t-text-soft); }
.step-no {
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--t-green);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 5px var(--t-green-50), var(--t-glow);
}
.step-badge {
  width: 32px;
  height: 32px;
  font-family: var(--heading-font);
  font-weight: 800;
  background: var(--t-green);
  box-shadow: 0 0 0 4px var(--t-green-50), var(--t-glow);
}

/* « Pourquoi nous » */
.about .our-story { padding: 44px; }
.about .our-story h3 { color: var(--t-text); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; }
.about .our-story p { color: var(--t-text-soft); }
.about ul li i { color: var(--t-green); }
.about .about-img img { border-radius: var(--t-r-md); }
@media (min-width: 991px) { .about .our-story { padding-right: 35%; } }
@media (max-width: 575px) { .about .our-story { padding: 28px 20px; } }

/* FAQ */
.faq-item { margin-bottom: 12px; }
.faq-item summary { font-family: var(--heading-font); letter-spacing: -0.01em; padding: 20px 24px; }
.faq-item[open] { border-color: var(--t-green-200); }
.faq-toggle { color: var(--t-green); }
.faq-content { padding: 0 24px 20px; color: var(--t-text-soft); }

/* Blog */
.blog-posts article { overflow: hidden; }
.blog-posts .post-img img { transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .blog-posts article:hover .post-img img { transform: scale(1.03); } }

/*--------------------------------------------------------------
# Simulateur : carte claire, mensualité en grand dégradé vert
--------------------------------------------------------------*/
.calc-form { padding: 34px; }
.calc-result {
  background: linear-gradient(180deg, var(--t-green-50) 0%, #ffffff 60%);
  border-color: var(--t-green-100);
  color: var(--t-text);
  padding: 34px;
}
.calc-label { color: var(--t-text-soft); font-weight: 500; }
.calc-monthly {
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: var(--t-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.calc-details div { border-bottom: 1px solid var(--t-line); }
.calc-details dt { color: var(--t-text-soft); }
.calc-details dd { color: var(--t-text); }
.calc-note { color: var(--t-text-soft); }
#calc-apply { color: #ffffff; }
.form-range::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--t-green-100); }
.form-range::-moz-range-thumb { box-shadow: 0 0 0 4px var(--t-green-100); }
.form-range::-webkit-slider-runnable-track { background: var(--t-green-100); }
.form-range::-moz-range-track { background: var(--t-green-100); }

/* Autres chiffres clés */
.error-code, .thanks-ref {
  background: var(--t-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.thanks-ref { position: relative; border-radius: var(--t-r-sm); }
.thanks-icon { color: var(--t-green); }
@media (forced-colors: active) {
  .calc-monthly, .error-code, .thanks-ref { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}

/*--------------------------------------------------------------
# Formulaires : champs plus hauts, fond gris clair, focus vert + halo
--------------------------------------------------------------*/
.app-form { padding: 38px; }
@media (max-width: 575px) {
  .app-form, .calc-form, .calc-result, .contact .info, .loan-form .info { padding: 24px 18px; }
}
.form-section legend { font-size: 21px; letter-spacing: -0.02em; }
.form-label { font-weight: 600; font-size: 14.5px; color: var(--t-text); margin-bottom: 6px; }
.form-text, .opt { color: var(--t-text-soft); }

.form-control, .form-select {
  min-height: 50px;
  padding: 12px 16px;
  background-color: var(--t-input-bg);
  border: 1px solid var(--t-input-border);
  border-radius: var(--t-r-sm);
  color: var(--t-text);
  font-size: 16px;               /* 16 px : pas de zoom automatique sur iOS */
}
.form-select { padding-right: 40px; background-position: right 14px center; }
textarea.form-control { min-height: 140px; }
.form-control::placeholder { color: #6b7682; opacity: 1; }
.form-control:hover, .form-select:hover { border-color: #6f7a73; }
.form-control:focus, .form-select:focus {
  background-color: #ffffff;
  border-color: var(--t-green);
  box-shadow: var(--t-focus);
}
.form-control.is-invalid, .form-select.is-invalid { background-color: #fffafa; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14); }
.form-check-input { border-color: var(--t-input-border); }
.form-check-input:focus { box-shadow: var(--t-focus); border-color: var(--t-green); }
.input-group-text { background: var(--t-green-50); border-color: var(--t-input-border); border-radius: var(--t-r-sm); color: var(--t-green-dark); font-weight: 600; }

.loan-form .info-item i, .contact .info-item i, .contact .info i { color: var(--t-green); }
.error-summary { border-radius: var(--t-r-sm); }

/*--------------------------------------------------------------
# Bandeau cookies : carte flottante
--------------------------------------------------------------*/
.consent-banner {
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin-inline: auto;
  padding: 20px 22px;
  background: #ffffff;
  color: var(--t-text);
  border: 1px solid var(--t-line);
  border-radius: var(--t-r-md);
  box-shadow: 0 2px 6px rgba(16, 32, 24, 0.06), 0 24px 60px -18px rgba(16, 32, 24, 0.3);
}
.consent-banner .container { padding: 0; max-width: none; }
.consent-banner h2 { color: var(--t-text); font-family: var(--heading-font); }
.consent-banner p { color: var(--t-text-soft); }
.consent-banner a { color: var(--t-green); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner:not([hidden]) { animation: consent-in 320ms var(--ease-out); }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/*--------------------------------------------------------------
# Pied de page (reste sombre, teinté vert, même grille)
--------------------------------------------------------------*/
.footer.dark-background {
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: var(--t-grid-size) var(--t-grid-size);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer h2.h4 { font-family: var(--heading-font); letter-spacing: -0.01em; }

/*--------------------------------------------------------------
# Mouvement réduit
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .header > .container::after,
  .btn-accent::before, .btn-getstarted::before, #calc-apply::before, .btn-cta::before,
  .btn-accent::after, .btn-getstarted::after, .btn-cta::after, #calc-apply::after,
  .services .service-item::after, .features .features-item::after, .blog-posts article::after,
  .blog-posts .post-img img { transition: none !important; }
  .btn-accent:hover::after, .btn-getstarted:hover::after, .btn-cta:hover::after, #calc-apply:hover::after,
  .hero .btn-get-started:hover::after,
  .blog-posts article:hover .post-img img { transform: none !important; }
}

/* Logo téléversé (Admin → Paramètres → Logo) */
.header .logo img.site-logo { max-height: none; width: auto; max-width: min(240px, 55vw); object-fit: contain; margin-right: 10px; }
@media (max-width: 575px) { .header .logo img.site-logo { max-height: 40px; } }

/* Nom de marque : « BEST » foncé + « KREDIT UG » en dégradé vert, en grand */
.header .logo .sitename {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--t-text);
}
.header .logo .sitename .brand-accent,
.footer .footer-about .logo .sitename .brand-accent {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  background: var(--t-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.header .logo > span[aria-hidden="true"] { font-size: clamp(23px, 2.2vw, 29px); font-weight: 800; color: var(--t-green-bright); line-height: 1; }
/* Pied de page sombre : vert clair lisible (≥ 7:1 sur #0c1611) */
.footer .footer-about .logo .sitename { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; color: #ffffff; }
.footer .footer-about .logo .sitename .brand-accent { background: linear-gradient(100deg, #6fdc85, #3ddc5a); -webkit-background-clip: text; background-clip: text; }
.footer .footer-about .logo .dot { color: #3ddc5a; font-size: 28px; font-weight: 800; }
@media (forced-colors: active) {
  .sitename .brand-accent { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}

/*==============================================================
# Finitions « design engineering » (principes d'Emil Kowalski)
# - transform / opacity uniquement, ease-out marqué, < 300 ms pour l'UI
# - entrées échelonnées de 60 ms, jamais depuis scale(0)
# - survols réservés à la souris, retour tactile à l'appui
==============================================================*/
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* --- Typographie : pas de mot orphelin, chiffres alignés --- */
h1, h2, h3, .h1, .h2, .h3, .h4, legend, .faq-item summary { text-wrap: balance; }
p, li, dd, .form-text { text-wrap: pretty; }
.calc-monthly, .calc-details dd, .step-no, .step-badge, .thanks-ref, .stat-value { font-variant-numeric: tabular-nums; }
::selection { background: var(--t-green-100); color: var(--t-green-deep); }

/* --- Tactile : pas de flash gris, appui immédiat --- */
a, button, .btn, summary, label, .form-check-input, .form-select { -webkit-tap-highlight-color: transparent; }
.btn, .btn-getstarted, .mobile-nav-toggle, .faq-item summary, .hero-bg .carousel-indicators [data-bs-target] { touch-action: manipulation; }
.btn-outline-dark:active, .consent-actions .btn:active, .mobile-nav-toggle:active { transform: scale(0.97); }
.mobile-nav-toggle { transition: transform 160ms var(--ease-out); }
.faq-item summary { transition: transform 160ms var(--ease-out); }
.faq-item summary:active { transform: scale(0.995); }

/* --- Apparitions au scroll (AOS) : distances courtes, courbe marquée --- */
[data-aos] { transition-timing-function: var(--ease-out) !important; }
html:not(.no-js) [data-aos="fade-up"] { transform: translate3d(0, 18px, 0); }
html:not(.no-js) [data-aos="fade-left"] { transform: translate3d(18px, 0, 0); }
html:not(.no-js) [data-aos="fade-right"] { transform: translate3d(-18px, 0, 0); }
html:not(.no-js) [data-aos="zoom-in"] { transform: scale(0.96); }
html:not(.no-js) [data-aos="zoom-out"] { transform: scale(1.04); }
html:not(.no-js) [data-aos].aos-animate { transform: none; }

/* --- Héros : entrée échelonnée au chargement --- */
@keyframes t-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes t-pop-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

.hero-copy > * { animation: t-rise 600ms var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: 40ms; }
.hero-copy > :nth-child(2) { animation-delay: 100ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 220ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }

/* Photo active : zoom très lent (effet « Ken Burns »), transform uniquement */
@keyframes t-kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-bg .carousel-item.active img,
.hero-bg .carousel-item-next img,
.hero-bg .carousel-item-prev img { animation: t-kenburns 6500ms linear both; }
/* Fondu entre photos un peu plus doux que Bootstrap (0,6 s) */
.hero-bg.carousel-fade .carousel-item { transition-duration: 900ms; transition-timing-function: ease; }

/* --- Menu mobile : le panneau naît du bouton (coin haut droit) --- */
@media (max-width: 1199px) {
  .mobile-nav-active .navmenu > ul {
    transform-origin: top right;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  }
  @starting-style {
    .mobile-nav-active .navmenu > ul { opacity: 0; transform: scale(0.96) translateY(-6px); }
  }
  .mobile-nav-active .navmenu { transition: opacity 200ms var(--ease-out); }
  @starting-style {
    .mobile-nav-active .navmenu { opacity: 0; }
  }
  .mobile-nav-active .navmenu > ul > li { animation: t-rise 260ms var(--ease-out) both; }
  .mobile-nav-active .navmenu > ul > li:nth-child(2) { animation-delay: 30ms; }
  .mobile-nav-active .navmenu > ul > li:nth-child(3) { animation-delay: 60ms; }
  .mobile-nav-active .navmenu > ul > li:nth-child(4) { animation-delay: 90ms; }
  .mobile-nav-active .navmenu > ul > li:nth-child(5) { animation-delay: 120ms; }
  .mobile-nav-active .navmenu > ul > li:nth-child(6) { animation-delay: 150ms; }
}

/* --- Bandeau cookies : entrée douce, sans grand déplacement --- */
.consent-banner:not([hidden]) { animation: t-pop-in 320ms var(--ease-out) both; }

/* --- Mouvement réduit : on garde les fondus, on retire les déplacements --- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .mobile-nav-active .navmenu > ul > li, .consent-banner:not([hidden]) { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-bg .carousel-item img { animation: none !important; }
}

/*==============================================================
# Corrections de mise en page (audit mobile / tablette / PC)
==============================================================*/

/* Capsule plus opaque : logo net même au-dessus des bandeaux verts */
.header > .container::before { background: rgba(255, 255, 255, 0.86); }

/* Bouton « retour en haut » : discret, rond, blanc ; glisse à l'apparition */
.scroll-top {
  width: 44px; height: 44px;
  right: 16px; bottom: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--t-line);
  box-shadow: 0 10px 24px -10px rgba(16, 32, 24, 0.35);
  z-index: 996;                                   /* sous la navbar et le menu mobile */
  transform: translateY(8px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
}
.scroll-top.active { transform: none; }
.scroll-top i { color: var(--t-green-dark); font-size: 20px; }
.scroll-top:hover { background-color: var(--t-green-50); }
.scroll-top:active { transform: scale(0.94); }

/* « Warum … ? » : deux colonnes nettes sur PC, la carte chevauche volontairement la photo */
@media (min-width: 992px) {
  .about .row.position-relative { align-items: center; }
  .about .about-img {
    position: relative; top: auto; right: auto;
    order: 2; flex: 0 0 auto; width: 54%;
    min-height: 540px;
  }
  .about .about-img + [class*="col-lg-7"] { order: 1; flex: 0 0 auto; width: 46%; position: relative; z-index: 2; }
  .about .our-story { padding: 44px !important; margin-right: -72px; }
  .about .inner-title { margin-bottom: 22px; }
}
@media (max-width: 991px) {
  .about .about-img { min-height: 0; aspect-ratio: 16 / 10; margin-bottom: 28px; border-radius: var(--t-r-md); overflow: hidden; }
}

/* Services : cartes plus compactes sur mobile */
@media (max-width: 767px) {
  .services .service-item { padding: 30px 22px; }
  .services .service-item .icon { width: 80px; height: 80px; }
  .services .service-item .icon svg { width: 80px; height: 80px; }
  .services .service-item h3 { font-size: 19px; margin: 6px 0 10px; }
  .process-item, .value-item { padding: 24px 22px !important; }
  .section-title { padding-bottom: 36px; }
}

/* Leistungen : bandeau d'icône compact sur mobile / tablette, texte d'intro lisible */
@media (max-width: 991px) {
  .service-icon-box { aspect-ratio: auto; height: 160px; }
  .service-icon-box i { font-size: 64px; }
  .services-intro .lead { font-size: 17px; line-height: 1.65; }
}

/* Pied de page : lignes de copyright équilibrées */
.footer p:has(> .sitename) { text-wrap: balance; }
@media (max-width: 767px) {
  .footer .footer-links { margin-top: 8px; }
}

/*--------------------------------------------------------------
# Héros de l'accueil : photo plein écran, texte incrusté en bas
--------------------------------------------------------------*/
.main > section.hero-x.hero-full.section {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--t-header-h) + 48px) 0 88px;
  background: #0b1a10;
  color: #ffffff;
  overflow: hidden;
}
.main > section.hero-full::before, .main > section.hero-full::after { display: none; }

/* Photos en fond, bord à bord */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .carousel-inner, .hero-bg .carousel-item { height: 100%; }
.hero-bg .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg .carousel-item:nth-child(2) img { object-position: center 22%; }
/* Voile : sombre en bas et à gauche (là où est le texte), la photo respire en haut à droite */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(4, 18, 9, 0.94) 0%, rgba(4, 18, 9, 0.72) 30%, rgba(4, 18, 9, 0.28) 62%, rgba(4, 18, 9, 0.18) 100%),
    linear-gradient(90deg, rgba(4, 18, 9, 0.55) 0%, rgba(4, 18, 9, 0) 62%);
}

/* Points du carrousel : en bas à droite, alignés sur le conteneur */
.hero-bg .carousel-indicators {
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  left: auto;
  right: max(16px, calc((100vw - 1320px) / 2 + 12px));
  bottom: 40px;
  justify-content: flex-end;
  gap: 8px;
}
.hero-bg .carousel-indicators [data-bs-target] {
  flex: 0 0 auto;
  width: 22px; height: 4px; margin: 0;
  border: 0; border-radius: 999px;
  background: #ffffff;
  opacity: 0.4;
  text-indent: -999px; overflow: hidden;
  transition: opacity 200ms var(--ease-out);
}
.hero-bg .carousel-indicators .active { opacity: 1; }

/* Texte incrusté */
.hero-content { position: relative; z-index: 2; }
.hero-copy { max-width: 720px; }
.hero-copy .eyebrow {
  content: normal;
  margin-bottom: 20px;
  background: radial-gradient(circle at 15px 50%, #5fe07a 3.5px, transparent 4px), rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-copy h1 {
  color: #ffffff;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero-copy h1 .text-gradient {
  background: linear-gradient(100deg, #8debA0 0%, #5fe07a 50%, #3ddc5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}
.hero-lead { font-size: clamp(16.5px, 1.4vw, 19px); color: rgba(255, 255, 255, 0.88); max-width: 600px; margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-full .btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-full .btn-outline-dark:hover, .hero-full .btn-outline-dark:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}
.hero-full :focus-visible { outline-color: #5fe07a; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: #5fe07a; font-size: 17px; }

@media (max-width: 991px) {
  .main > section.hero-x.hero-full.section { min-height: 88svh; padding-bottom: 76px; }
  .hero-bg .carousel-indicators { bottom: 28px; }
}
@media (max-width: 575px) {
  .main > section.hero-x.hero-full.section { min-height: 92svh; padding-bottom: 64px; }
  .hero-bg::after {
    background: linear-gradient(to top, rgba(4, 18, 9, 0.95) 0%, rgba(4, 18, 9, 0.8) 42%, rgba(4, 18, 9, 0.35) 72%, rgba(4, 18, 9, 0.2) 100%);
  }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-trust { gap: 8px 18px; font-size: 13.5px; }
  .hero-bg .carousel-indicators { right: 16px; bottom: 22px; }
}
@media (forced-colors: active) {
  .hero-copy h1 .text-gradient { -webkit-text-fill-color: currentColor; color: CanvasText; background: none; }
}
