:root {
  --primary-color: #0b2a6f;
  --primary-dark: #071d4d;
  --primary-soft: #edf3ff;
  --secondary-color: #174ca6;
  --tertiary-color: #17a6a6;
  --coral-color: #ff8b78;
  --accent-color: #f6c343;
  --accent-dark: #a66e00;
  --dark-color: #10254e;
  --light-color: #f6f8fc;
  --text-color: #263653;
  --muted-color: #71809b;
  --border-color: #e5eaf3;
  --white: #fff;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(16, 37, 78, .06);
  --shadow-md: 0 18px 45px rgba(16, 37, 78, .10);
  --shadow-lg: 0 30px 80px rgba(7, 29, 77, .16);
  --transition: 220ms cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text-color); font-family: "Outfit", system-ui, sans-serif; line-height: 1.7; background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(246,195,67,.35); color: var(--dark-color); }
:focus-visible { outline: 3px solid rgba(246,195,67,.95); outline-offset: 4px; }

.section { position: relative; padding: clamp(76px, 9vw, 116px) 0; }
.section-soft { background: var(--light-color); }
.section-tint-teal { background: linear-gradient(135deg, #eefafa 0%, #f7fbff 100%); }
.section-tint-warm { background: linear-gradient(135deg, #fffaf0 0%, #f7f9fc 100%); }
.section-dark { background: var(--primary-dark); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-color); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 99px; background: var(--accent-color); }
.section-title { margin: 0; color: var(--dark-color); font-size: clamp(2.15rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; }
.section-title-light { color: #fff; }
.highlight { position: relative; color: var(--accent-dark); z-index: 0; white-space: nowrap; }
.highlight::after { content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: 1px; height: 9px; border-radius: 99px; background: rgba(246,195,67,.32); }
.lead-copy { color: var(--muted-color); font-size: 1.05rem; }

.btn-pill { border-radius: 999px; padding: .85rem 1.3rem; font-weight: 800; border-width: 1px; transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition); }
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(11,42,111,.14); }
.btn-yellow { background: var(--accent-color); border-color: var(--accent-color); color: var(--dark-color); }
.btn-yellow:hover, .btn-yellow:focus { background: #e9b52e; border-color: #e9b52e; color: var(--dark-color); }
.btn-outline-light-soft { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.btn-outline-light-soft:hover { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.14); }

/* Navbar */
.navbar-floating { position: fixed; z-index: 1050; top: 18px; left: 50%; width: min(1240px, calc(100% - 32px)); transform: translateX(-50%); padding: 10px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: 0 14px 45px rgba(7,29,77,.13); backdrop-filter: blur(18px); transition: top var(--transition), background-color var(--transition), box-shadow var(--transition), border-radius var(--transition); }
.navbar-floating.is-scrolled { top: 10px; background: rgba(255,255,255,.96); box-shadow: 0 16px 42px rgba(7,29,77,.16); }
.navbar-brand img { width: auto; height: 52px; display: block; border-radius: 9px; }
.navbar-toggler { border-radius: 12px; padding: 8px 10px; }
.nav-link { position: relative; color: var(--primary-color) !important; font-weight: 700; padding: .7rem .78rem !important; transition: color var(--transition), transform var(--transition); }
.nav-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .34rem; height: 3px; border-radius: 99px; background: var(--accent-color); transform: scaleX(0); transform-origin: center; transition: transform var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--secondary-color) !important; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: stretch; background: var(--primary-dark); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(5,22,60,.96) 0%, rgba(7,35,86,.78) 38%, rgba(7,35,86,.28) 72%, rgba(7,35,86,.16) 100%), url("../images/hero.jpg") center/cover no-repeat; transform: scale(1.01); }
.hero::after { content: ""; position: absolute; width: 680px; height: 680px; right: -360px; top: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(246,195,67,.22), transparent 68%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; padding-top: 130px; padding-bottom: 75px; }
.hero-copy { max-width: 760px; color: #fff; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .85rem; backdrop-filter: blur(8px); }
.hero-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-color); box-shadow: 0 0 0 5px rgba(246,195,67,.12); }
.hero-title { margin: 22px 0 18px; max-width: 760px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.06em; font-weight: 800; color: #fff; }
.hero-title span { color: var(--accent-color); }
.hero-text { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.8vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stat { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 44px; }
.hero-stat-item { padding-left: 16px; border-left: 2px solid rgba(246,195,67,.65); }
.hero-stat strong { display: block; color: #fff; font-size: 1.25rem; }
.hero-stat span { color: rgba(255,255,255,.58); font-size: .84rem; }
.hero-scroll { position: absolute; right: 14px; bottom: 36px; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.62); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-scroll::before { content: ""; width: 1px; height: 48px; background: rgba(255,255,255,.35); }

/* Cards */
.value-card, .mission-card, .step-card, .level-card, .partner-panel, .contact-card, .faq-card { height: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.value-card, .step-card, .level-card { padding: 30px; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.value-card:hover, .step-card:hover, .level-card:hover { transform: translateY(-7px); border-color: rgba(23,76,166,.18); box-shadow: var(--shadow-md); }
.icon-circle { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 22px; font-weight: 800; }
.icon-yellow { color: var(--primary-color); background: var(--accent-color); }
.icon-blue { color: #fff; background: var(--primary-color); }
.card-index { display: inline-flex; margin-bottom: 18px; color: var(--accent-dark); font-size: 2rem; font-weight: 800; line-height: 1; }
.value-card h2, .mission-card h2, .level-card h3 { color: var(--dark-color); font-weight: 800; }
.value-card p, .mission-card p, .level-card p, .level-card li { color: var(--muted-color); }
.mission-card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px); }
.mission-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -75px; top: -75px; border-radius: 50%; background: rgba(246,195,67,.13); }
.mission-card.objective::after { background: rgba(11,42,111,.07); }
.step-number { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-color); font-weight: 800; }
.step-card h3 { color: var(--dark-color); font-size: 1.12rem; font-weight: 800; }
.level-badge { display: inline-flex; align-items: center; padding: .5rem .8rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-color); font-size: .78rem; font-weight: 800; }
.level-card ul { margin: 22px 0 0; padding-left: 1.1rem; }
.level-card li { margin-bottom: 10px; }

.partner-panel { padding: clamp(22px, 4vw, 34px); }
.partner-accordion .accordion-button { margin-bottom: 10px; border-radius: 15px !important; background: #f7f9fc; color: var(--primary-color); font-weight: 800; box-shadow: none; }
.partner-accordion .accordion-button:not(.collapsed) { background: var(--primary-soft); color: var(--primary-color); }
.partner-accordion .accordion-item { border: 0; background: transparent; }
.partner-accordion .accordion-body { color: var(--muted-color); padding-top: 4px; }
.testimonial-card { position: relative; height: 100%; padding: 32px; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(145deg, var(--primary-color), #123d8e); color: #fff; box-shadow: var(--shadow-md); }
.testimonial-card::after { content: "“"; position: absolute; right: 20px; top: -12px; color: rgba(255,255,255,.08); font: 900 9rem/1 Georgia,serif; }
.placeholder { display: inline-flex; padding: .28rem .58rem; border-radius: 999px; background: rgba(246,195,67,.16); color: var(--accent-color); font-size: .74rem; font-weight: 800; }

/* FAQ / contact */
.faq-card { overflow: hidden; }
.faq-card .accordion-button { padding: 21px 24px; color: var(--primary-color); font-weight: 800; box-shadow: none; }
.faq-card .accordion-button:not(.collapsed) { background: var(--primary-soft); color: var(--primary-color); }
.faq-card .accordion-body { padding: 0 24px 22px; color: var(--muted-color); }
.contact-section { background: var(--light-color); }
.contact-card { padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-label { margin-bottom: 7px; color: var(--primary-color); font-weight: 800; }
.form-control, .form-select { min-height: 52px; border: 1px solid #d9e1ed; border-radius: 14px; padding: .8rem 1rem; color: var(--dark-color); background: #fff; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 .22rem rgba(23,76,166,.10); }
.consent { color: var(--muted-color); font-size: .84rem; }
.whatsapp-link { color: #087746; font-weight: 800; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.success-panel { padding: 20px 0; }

/* Footer */
footer { position: relative; overflow: hidden; padding: 68px 0 24px; background: #061a46; color: rgba(255,255,255,.68); }
footer::before { content: ""; position: absolute; width: 420px; height: 420px; right: -200px; top: -240px; border-radius: 50%; background: rgba(246,195,67,.08); }
footer h3 { margin-bottom: 18px; color: #fff; font-size: 1rem; font-weight: 800; }
footer p { margin-bottom: .65rem; }
footer a { color: rgba(255,255,255,.68); transition: color var(--transition), transform var(--transition); }
footer a:hover { color: #fff; }
.footer-logo { height: 54px; width: auto; border-radius: 8px; background: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.11); font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

@media (max-width: 991.98px) {
  .navbar-floating { top: 10px; border-radius: 18px; }
  .navbar-floating .navbar-collapse { margin-top: 10px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.97); }
  .nav-link::after { left: .8rem; right: auto; width: 30px; }
  .hero-title { max-width: 700px; }
  .hero-scroll { display: none; }
}
@media (max-width: 575.98px) {
  .section { padding: 70px 0; }
  .navbar-floating { width: calc(100% - 20px); padding: 8px 10px; }
  .navbar-brand img { height: 44px; }
  .hero::before { background-image: linear-gradient(100deg, rgba(5,22,60,.94), rgba(7,35,86,.55)), url("../images/hero.jpg"); background-position: 64% center; }
  .hero-inner { padding-top: 118px; padding-bottom: 58px; }
  .hero-title { font-size: clamp(2.75rem, 15vw, 4.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-stat { gap: 16px; margin-top: 34px; }
  .value-card, .step-card, .level-card { padding: 25px; }
  .contact-card { padding: 24px 20px; }
  .highlight { white-space: normal; }
}

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


/* Diversification visuelle */
.visual-showcase { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7); }
.visual-showcase img { display:block; width:100%; height:auto; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.visual-showcase:hover img { transform: scale(1.035); }
.visual-badge { position:absolute; left:22px; bottom:22px; padding:.65rem .9rem; border-radius:999px; background:rgba(255,255,255,.88); color:var(--primary-color); font-weight:800; font-size:.78rem; box-shadow:0 10px 30px rgba(7,29,77,.14); backdrop-filter:blur(10px); }
.accent-teal { color:var(--tertiary-color)!important; }
.accent-coral { color:#d85f50!important; }
.accent-panel-teal { border-left:5px solid var(--tertiary-color); }
.accent-panel-coral { border-left:5px solid var(--coral-color); }
.value-card:nth-child(2) { background:linear-gradient(145deg,#fff,#f0fbfb); }
.value-card:nth-child(3) { background:linear-gradient(145deg,#fff,#fff5f2); }
.step-card:nth-child(3n+2) .step-number { background:#e7f8f8; color:var(--tertiary-color); }
.step-card:nth-child(3n) .step-number { background:#fff0ed; color:#d85f50; }
.level-card:first-child { border-top:4px solid var(--tertiary-color); }
.level-card:last-child { border-top:4px solid var(--coral-color); }
@media (max-width: 767.98px){ .visual-showcase{border-radius:22px}.visual-badge{left:14px;bottom:14px} }

/* Contact details / brand logo update */
.contact-card a[href^="mailto:"], footer a[href^="mailto:"] { font-weight: 700; }
.navbar-brand img, .footer-logo { object-fit: contain; }

/* Témoignages avec visuels */
.testimonial-image-card { padding: 0; min-height: 420px; background: var(--primary-dark); }
.testimonial-image-card > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.testimonial-image-card:hover > img { transform: scale(1.035); }
.testimonial-overlay { position: absolute; inset: auto 0 0; padding: 80px 28px 28px; background: linear-gradient(transparent, rgba(5,22,60,.96) 48%); }
.testimonial-overlay p { margin: 14px 0 8px; font-size: 1.02rem; line-height: 1.55; }
.testimonial-overlay small { color: rgba(255,255,255,.68); }

/* WhatsApp interactif */
.whatsapp-contact { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:var(--muted-color); }
.whatsapp-trigger { display:inline-flex; align-items:center; gap:9px; border:0; border-radius:999px; padding:.62rem .9rem; background:#25D366; color:#fff; font-weight:800; cursor:pointer; box-shadow:0 8px 20px rgba(37,211,102,.2); transition:transform var(--transition), box-shadow var(--transition); }
.whatsapp-trigger:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(37,211,102,.28); }
.whatsapp-trigger svg { width:21px; height:21px; fill:currentColor; }
.whatsapp-number { display:inline-flex; align-items:center; padding:.55rem .8rem; border-radius:12px; background:#eafaf0; border:1px solid #c9efd8; }
.whatsapp-number a { color:#087746; font-weight:900; text-decoration:none; }
.whatsapp-number a:hover { text-decoration:underline; }
.footer-whatsapp { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.whatsapp-trigger-footer { padding:.5rem .75rem; }
.footer-whatsapp-number { background:rgba(37,211,102,.1); border-color:rgba(37,211,102,.22); }
.footer-whatsapp-number a { color:#8df0b4; }
@media (max-width:575.98px){ .whatsapp-contact { align-items:flex-start; flex-direction:column; } .testimonial-image-card,.testimonial-image-card > img{min-height:390px;} }
