/* SIRA Santé - couche d'amélioration (chargée après style.css d'origine) */

/* =====================================================================
   PALETTE : c'est la SEULE section à modifier pour changer les couleurs
   du site (par ex. quand le logo SIRA Santé officiel sera disponible).
   Les variables *-rgb sont les mêmes couleurs en "R, G, B" (pour les
   transparences) : à garder cohérentes avec leur couleur de base.
   ===================================================================== */
:root {
    --brand: #2850c8;          /* couleur principale : boutons, liens, icônes */
    --brand-dark: #172a6e;     /* bleu nuit : pied de page, sections sombres */
    --brand-ink: #131f4a;      /* titres et texte fort */
    --brand-tint: #b4e3bc;     /* teinte claire : accents sur fond sombre */
    --brand-soft: #e3eaf9;     /* pastilles d'icônes, étiquettes */
    --brand-bg: #f1f5fd;       /* fonds de sections */
    --brand-mid: #8aa3e3;      /* teinte intermédiaire (graphiques) */
    --brand-line: #d9e2f7;     /* fins contours */
    --brand-2: #2347b4;        /* dégradés : milieu */
    --brand-3: #1f3fa0;        /* dégradés : fin */
    --brand-band: #cdd9f5;     /* bandes claires (newsletter, copyright) */
    --brand-rgb: 40, 80, 200;
    --brand-dark-rgb: 23, 42, 110;
    --brand-ink-rgb: 19, 31, 74;
    --brand-tint-rgb: 180, 227, 188;
    --brand-night-rgb: 15, 25, 66;    /* voile sombre sur les photos */
    --brand-night2-rgb: 22, 36, 90;

    /* anciens noms, conservés pour les règles existantes */
    --blue: var(--brand);
    --blue-dark: var(--brand-dark);
    --blue-soft: var(--brand-bg);
    --green: var(--brand-tint);
    --green-dark: var(--brand);
    --ink: var(--brand-ink);
    --text: #3c4658;
    --line: #dbe3f5;
    --shadow: 0 10px 30px rgba(var(--brand-rgb), .12);
}


html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: "Open Sans", system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Barre du haut ---------- */
#topbar { height: 42px; }
#topbar .contact-info i { color: var(--green); font-weight: 700; }
#topbar .contact-info i a { color: #fff; margin-left: 6px; }
#topbar .contact-info i a:hover { color: var(--green); }
#topbar .social-links a { transition: transform .25s, background .25s; }
#topbar .social-links a:hover { transform: translateY(-2px); }

/* ---------- En-tête collant ---------- */
#header { position: sticky; top: 0; height: 78px; z-index: 997; transition: box-shadow .3s; box-shadow: 0 0 0 rgba(0, 0, 0, 0); border-bottom: 1px solid transparent; }
#header.is-stuck { box-shadow: 0 8px 24px rgba(var(--brand-ink-rgb), .12); border-bottom-color: var(--line); }
#header .logo { margin: 0; }
#header .logo img { height: 56px; width: auto; max-height: none; display: block; }

.navbar a, .navbar a:focus { position: relative; font-size: 15px; }
.navbar ul a:not(.nav-cta)::after { content: ""; position: absolute; left: 30px; right: 0; bottom: 4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.navbar ul a:not(.nav-cta):hover::after, .navbar ul a.active:not(.nav-cta)::after { transform: scaleX(1); }
.navbar .nav-cta { position: relative; overflow: hidden; margin-left: 28px; padding: 10px 22px; border-radius: 50px; background: var(--green); color: #0f2a44; font-weight: 700; box-shadow: 0 6px 16px rgba(var(--brand-tint-rgb), .45); transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.navbar .nav-cta:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--brand-rgb), .35); }
.navbar .nav-cta::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
button.mobile-nav-toggle { background: none; border: 0; padding: 4px 8px; color: var(--ink); cursor: pointer; line-height: 1; }
body.menu-open { overflow: hidden; }

/* ---------- Diaporama ---------- */
#hero { height: 560px; margin-bottom: -110px; background: #0a1f6b; }
#hero .carousel-item { height: 560px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transform: scale(1.02); will-change: transform; }
.carousel-item.active .hero-bg { animation: kenburns 11s ease-out forwards; }
.hero-slide::before { z-index: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-slide .carousel-container { z-index: 2; }

.s1 .hero-bg { background-image: url(../img/opt/hero-1.webp); background-position: left center; }
.s1::after { background: linear-gradient(90deg, rgba(0, 20, 90, 0) 0%, rgba(0, 20, 90, .18) 45%, rgba(0, 20, 90, .35) 100%); }
.s2 .hero-bg { background-image: url(../img/opt/hero-2.webp); background-position: center 30%; }
.s2::after { background: linear-gradient(90deg, rgba(35,60,125, .72) 0%, rgba(35,60,125, .5) 55%, rgba(35,60,125, .68) 100%); }
.s3 .hero-bg { background-image: url(../img/opt/hero-3.webp); background-position: left center; }
.s3::after { background: linear-gradient(90deg, rgba(35,60,125, 0) 0%, rgba(35,60,125, .3) 38%, rgba(33,57,120, .93) 62%, rgba(33,57,120, .96) 100%); }

#hero .carousel-content { position: relative; max-width: 980px; margin: 0 auto; padding: 0 16px; }
#hero h1, #hero h2 { margin-bottom: 30px; color: #fff; font-family: "Raleway", sans-serif; font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15; text-shadow: 0 3px 18px rgba(0, 10, 60, .55); }
#hero h1 span, #hero h2 span { color: #a9c1ff; }
#hero h1 em, #hero h2 em { font-style: normal; color: var(--green); }
#hero p { color: #fff; font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; text-shadow: 0 2px 10px rgba(0, 10, 60, .55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
#hero .btn-get-started { position: relative; overflow: hidden; margin: 0; padding: 14px 32px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 24px rgba(0, 20, 90, .35); }
#hero .btn-get-started::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
#hero .btn-get-started:hover { background: #fff; border-color: #fff; color: var(--blue); transform: translateY(-2px); }
#hero .btn-get-started.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
#hero .btn-get-started.btn-ghost:hover { background: var(--green); border-color: var(--green); color: #0f2a44; }
@media (min-width: 992px) { .s3 .carousel-content { margin-right: 0; margin-left: auto; width: 58%; max-width: none; padding-left: 4%; padding-right: 8%; } }

#hero .carousel-indicators { margin-bottom: 150px; gap: 8px; }
#hero .carousel-indicators button { width: 12px; height: 12px; border: 0; border-radius: 50px; background: var(--green); opacity: .45; margin: 0; transition: width .3s, opacity .3s; text-indent: -9999px; }
#hero .carousel-indicators button.active { width: 34px; opacity: 1; }
#hero .carousel-control-prev, #hero .carousel-control-next { z-index: 3; background: none; border: 0; }
#hero .carousel-control-prev-icon, #hero .carousel-control-next-icon { color: #fff; opacity: .8; transition: transform .25s, color .25s, opacity .25s; }
#hero .carousel-control-prev:hover .carousel-control-prev-icon { transform: translateX(-4px); color: var(--green); opacity: 1; }
#hero .carousel-control-next:hover .carousel-control-next-icon { transform: translateX(4px); color: var(--green); opacity: 1; }

@media (max-width: 1200px), (max-height: 768px) { #hero { margin-bottom: 60px; } #hero .carousel-indicators { margin-bottom: 20px; } }
@media (max-width: 700px) {
    #hero, #hero .carousel-item { height: 88vh; min-height: 520px; }
    .s1 .hero-bg { background-image: url(../img/opt/hero-1m.webp); background-position: center; }
    .s2 .hero-bg { background-image: url(../img/opt/hero-2m.webp); }
    .s3 .hero-bg { background-image: url(../img/opt/hero-3m.webp); background-position: center top; }
    .s1::after { background: linear-gradient(180deg, rgba(0, 20, 90, .55), rgba(0, 20, 90, .1) 45%, rgba(0, 20, 90, .6)); }
    .s3::after { background: linear-gradient(180deg, rgba(33,57,120, .2), rgba(33,57,120, .85) 55%, rgba(33,57,120, .95)); }
    #hero .carousel-content { padding: 0 20px; }
    #hero .carousel-control-prev, #hero .carousel-control-next { display: none; }
}

/* ---------- Trois cartes bleues ---------- */
.featured .icon-box { position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.featured .icon-box::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: transform .5s; }
.featured .icon-box:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(var(--brand-rgb), .35); }
.featured .icon-box:hover::after { transform: scale(1.5); }
.featured .icon-box i { transition: transform .35s; }
.featured .icon-box:hover i { transform: scale(1.12) rotate(-6deg); }
.featured .icon-box h3 { color: #fff; font-family: "Raleway", sans-serif; }
.featured .icon-box p { text-align: left; }

/* ---------- Chiffres ---------- */
.stats { padding: 70px 0 10px; }
.stat { position: relative; height: 100%; text-align: center; padding: 28px 16px; border-radius: 18px; background: var(--blue-soft); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, background .3s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: #fff; }
.stat i { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--blue); font-size: 28px; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .15); margin-bottom: 12px; }
.stat strong { display: block; font-family: "Poppins", sans-serif; font-size: clamp(34px, 4vw, 46px); font-weight: 700; color: var(--blue); line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--text); }

/* ---------- À propos ---------- */
.about { padding-top: 60px; }
.about-visual { position: relative; }
.about-visual img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; }
.about-visual::before { content: ""; position: absolute; left: -14px; top: -14px; width: 55%; height: 55%; border-radius: 22px; border: 3px solid var(--green); z-index: -1; }
.about-badge { position: absolute; right: -12px; bottom: 26px; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: 0 12px 28px rgba(var(--brand-ink-rgb), .18); font-size: 14px; line-height: 1.3; color: var(--ink); animation: floaty 5s ease-in-out infinite; }
.about-badge i { font-size: 28px; color: var(--green); }
.about .content h3 { font-family: "Raleway", sans-serif; }
.about .content ul li { margin-bottom: 8px; }
.about .content p { line-height: 1.75; }

.btn-pro { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border: 2px solid var(--blue); border-radius: 50px; background: var(--blue); color: #fff; font-family: "Raleway", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .3px; cursor: pointer; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn-pro:hover { background: #fff; color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(var(--brand-rgb), .25); }
.btn-pro i { transition: transform .25s; }
.btn-pro:hover i { transform: translateX(4px); }
.btn-pro-light { background: var(--green); border-color: var(--green); color: #0f2a44; }
.btn-pro-light:hover { background: #fff; border-color: #fff; color: var(--blue); }
.btn-pro.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Titres de section ---------- */
.section-title h2, .section-title1 h2 { font-family: "Poppins", sans-serif; }
html.js .section-title[data-reveal] h2::after, html.js .section-title1[data-reveal] h2::after { transform: scaleX(0); transition: transform .8s .25s; }
html.js .section-title.in h2::after, html.js .section-title1.in h2::after { transform: scaleX(1); }

/* ---------- Cartes services / outils ---------- */
.services .icon-box, .services .icon-box1 { width: 100%; padding: 60px 24px; background: #fff; }
.services .icon-box:hover, .services .icon-box1:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(var(--brand-rgb), .22); }
.services .icon-box .icon, .services .icon-box1 .icon { transition: transform .35s; }
.services .icon-box:hover .icon, .services .icon-box1:hover .icon { transform: translateY(-4px) scale(1.06); }
.services .icon-box h4, .services .icon-box1 h4 { font-family: "Raleway", sans-serif; }
.services .icon-box p, .services .icon-box1 p { line-height: 1.7; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-pro { padding: 30px 0 60px; }
.cta-pro-inner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 52px); border-radius: 26px; color: #fff; background: linear-gradient(120deg, var(--blue) 0%, var(--brand-2) 55%, var(--brand-3) 100%); box-shadow: 0 24px 50px rgba(var(--brand-rgb), .3); }
.cta-pro-inner::before, .cta-pro-inner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(var(--brand-tint-rgb), .28); animation: floaty 7s ease-in-out infinite; }
.cta-pro-inner::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.cta-pro-inner::after { width: 140px; height: 140px; right: 26%; bottom: -70px; animation-delay: -3s; background: rgba(255, 255, 255, .1); }
.cta-pro-inner > * { position: relative; z-index: 1; }
.cta-pro h2 { margin: 0 0 8px; color: #fff; font-family: "Raleway", sans-serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); max-width: 620px; }
.cta-pro p { margin: 0; opacity: .92; }

/* ---------- Partenaires ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 24px; }
.partner { display: grid; place-items: center; width: 240px; height: 140px; padding: 20px 26px; background: #fff; border: 1px solid var(--brand-line); border-radius: 18px; box-shadow: 0 8px 24px rgba(var(--brand-dark-rgb), .07); transition: transform .3s, box-shadow .3s, border-color .3s; }
.partner img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.partner:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: 0 18px 40px rgba(var(--brand-dark-rgb), .16); }

/* ---------- Bandeau de page interne ---------- */
.breadcrumbs { padding: 44px 0 36px; background: linear-gradient(120deg, #eef3ff 0%, #f4fbf7 100%); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.breadcrumbs::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(var(--brand-rgb), .07); animation: floaty 8s ease-in-out infinite; }
.breadcrumbs .container { position: relative; z-index: 1; }
.breadcrumbs h1 { margin: 6px 0 0; font-family: "Raleway", sans-serif; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; color: var(--ink); }
.breadcrumbs-lead { margin: 10px 0 0; max-width: 720px; color: var(--text); font-size: 17px; }
.breadcrumbs ol { padding: 0; margin: 0; }

/* ---------- Page à propos ---------- */
.team .member { border-radius: 20px; border: 2px solid var(--blue); transition: transform .3s, box-shadow .3s; padding: 34px 28px; height: 100%; }
.team .member:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(var(--brand-rgb), .2); }
.team .member .m-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-size: 28px; margin-bottom: 14px; }
.team .member h4 { font-family: "Raleway", sans-serif; }
.team .member ul { padding: 0; list-style: none; text-align: left; }
.team .member ul li { margin-bottom: 8px; }
.team .member ul i { color: var(--green-dark); }

/* ---------- Formulaires ---------- */
.flash { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 14px 18px; border-radius: 12px; font-weight: 600; border: 1px solid; }
.flash-success { background: #e9f9f1; border-color: #a6e2c4; color: #0e6b45; }
.flash-error { background: #fdecea; border-color: #f3b3ad; color: #a3271b; }

.pro-form { padding: clamp(22px, 3.4vw, 38px); background: #fff; border: 2px solid var(--blue); border-radius: 22px; box-shadow: 0 18px 44px rgba(var(--brand-rgb), .14); }
.pro-form .field { margin-bottom: 18px; }
.pro-form label, .pro-form legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.pro-form .req { color: #c0392b; }
.pro-form input[type=text], .pro-form input[type=email], .pro-form input[type=tel], .pro-form input[type=password], .pro-form select, .pro-form textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c6e6; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.pro-form textarea { min-height: 140px; resize: vertical; }
.pro-form input:focus, .pro-form select:focus, .pro-form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .18); }
.pro-form .has-error input, .pro-form .has-error select, .pro-form .has-error textarea { border-color: #c0392b; }
.field-error { margin: 6px 0 0; font-size: 13px; color: #b3261e; font-weight: 600; }
.pro-form .hint { margin: 14px 0 0; font-size: 13px; color: #5d6a80; }
.pro-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1.5px solid #b9c6e6; border-radius: 12px; cursor: pointer; font-weight: 600; transition: border-color .2s, background .2s; }
.radio-row label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.radio-row input { accent-color: var(--blue); width: 18px; height: 18px; }

.contact-cards .info-card { height: 100%; padding: 26px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 20px rgba(var(--brand-ink-rgb), .06); transition: transform .3s, box-shadow .3s, border-color .3s; }
.contact-cards .info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue); }
.contact-cards .info-card i { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-size: 24px; margin-bottom: 10px; }
.contact-cards .info-card h3 { font-size: 18px; font-family: "Raleway", sans-serif; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.contact-cards .info-card p, .contact-cards .info-card a { margin: 0; color: var(--text); font-size: 15px; }
.contact-cards .info-card a:hover { color: var(--blue); }

.side-panel { position: relative; overflow: hidden; height: 100%; min-height: 320px; border-radius: 22px; color: #fff; background: linear-gradient(160deg, var(--blue), var(--brand-3)); padding: 34px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.side-panel::before { content: ""; position: absolute; inset: 0; background: url(../img/opt/about.webp) center/cover; opacity: .28; mix-blend-mode: luminosity; }
.side-panel > * { position: relative; }
.side-panel h3 { color: #fff; font-family: "Raleway", sans-serif; font-weight: 700; }
.side-panel ul { padding: 0; margin: 12px 0 0; list-style: none; }
.side-panel li { margin-bottom: 8px; display: flex; gap: 10px; }
.side-panel li i { color: var(--green); }
.side-panel a { color: #fff; text-decoration: underline; }

/* ---------- Espace client ---------- */
.auth { position: relative; overflow: hidden; min-height: calc(100vh - 120px); display: flex; align-items: center; padding: 60px 16px; background: linear-gradient(90deg, rgba(var(--brand-dark-rgb), .97) 0%, rgba(var(--brand-dark-rgb), .9) 40%, rgba(var(--brand-dark-rgb), .65) 70%, rgba(var(--brand-dark-rgb), .45) 100%), url("/assets/img/opt/hero-care.webp") right center / cover no-repeat, var(--brand-dark); color: #dfe6f7; }
.auth::before, .auth::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.auth::before { width: 340px; height: 340px; left: -150px; bottom: -60px; border-radius: 50%; background: rgba(var(--brand-rgb), .35); animation: floaty 9s ease-in-out infinite; }
.auth::after { width: 220px; height: 300px; right: 4%; bottom: -40px; border-radius: 0 100% 0 100%; background: rgba(var(--brand-tint-rgb), .18); transform: rotate(-12deg); }
.auth-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(0, 440px); align-items: center; gap: 60px; width: 100%; max-width: 1140px; margin: 0 auto; }
.auth-kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #aebce0; }
.auth-kicker::after { content: ""; width: 70px; height: 2px; background: var(--green); }
.auth-intro h2 { margin: 0 0 18px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; color: #fff; }
.auth-intro h2 span { color: var(--green); }
.auth-lead { max-width: 460px; margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: #c9d3ee; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.auth-perks li { display: flex; align-items: center; gap: 18px; }
.auth-perks i { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 24px; }
.auth-perks li.is-green i { background: rgba(var(--brand-tint-rgb), .2); border-color: rgba(var(--brand-tint-rgb), .4); color: var(--green); }
.auth-perks strong { display: block; font-size: 17px; color: #fff; }
.auth-perks span { font-size: 15px; color: #aebce0; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 38px 34px; background: #fff; border: 1px solid var(--brand-line); border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; font-size: 14px; color: #7d8bb0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--brand-line); }
@media (max-width: 991px) {
    .auth { background: linear-gradient(rgba(var(--brand-dark-rgb), .9), rgba(var(--brand-dark-rgb), .9)), url("/assets/img/opt/hero-care.webp") center / cover no-repeat, var(--brand-dark); }
    .auth-wrap { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
    .auth-intro { max-width: 440px; width: 100%; }
}
.auth-card .auth-logo { display: block; width: 230px; height: auto; margin: 0 auto 16px; }
.auth-card h1 { margin: 0 0 6px; text-align: center; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 26px; color: var(--ink); }
.auth-card .auth-sub { margin: 0 0 22px; text-align: center; color: #5d6a80; font-size: 15px; }
.input-icon { position: relative; }
.input-icon > i:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7d8bb0; font-size: 18px; pointer-events: none; }
.pro-form .input-icon input { padding-left: 44px; }
.input-icon .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: #5d6a80; cursor: pointer; border-radius: 10px; }
.input-icon .toggle-pass:hover { color: var(--blue); }
.auth-card .btn-pro { width: 100%; justify-content: center; padding: 14px; }
.auth-help { margin: 10px 0 0; text-align: center; font-size: 14px; color: #5d6a80; }

.dash-hello { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 26px; }
.dash-hello h2 { margin: 0; font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ink); font-size: 26px; }
.btn-out { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid var(--line); border-radius: 50px; color: var(--ink); font-weight: 600; background: #fff; transition: border-color .25s, color .25s; }
.btn-out:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Pied de page ---------- */
.footer-newsletter form { position: relative; }
.footer-newsletter input[type=email] { border-radius: 50px; }
#footer .footer-contact a, #footer .footer-links a { transition: color .2s, padding-left .2s; }
#footer .footer-links a:hover { padding-left: 4px; }
#footer .footer-contact a { color: #fff; }
#footer .copyright { line-height: 1.8; }
.legal-links { display: inline-block; margin-left: 12px; }
.legal-links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#footer .social-links a { transition: transform .25s, background .25s; }
#footer .social-links a:hover { transform: translateY(-3px); background: var(--green); }

/* ---------- Boutons flottants ---------- */
.float, .float1 { display: grid; place-items: center; right: 22px; width: 56px; height: 56px; margin: 0; border-radius: 50%; font-size: 28px; box-shadow: 0 8px 20px rgba(var(--brand-ink-rgb), .28); transition: transform .25s, box-shadow .25s; }
.float { bottom: 22px; background: var(--brand); }
.float1 { bottom: 90px; background: #1faa52; }
.float .my-float, .float1 .my-float { margin: 0; line-height: 1; color: #fff; }
.float:hover, .float1:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(var(--brand-ink-rgb), .34); }
.float i:hover { color: #fff; }
.float1::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1faa52; animation: pulse 2.4s ease-out infinite; pointer-events: none; }
.back-to-top { right: 28px; bottom: 160px; width: 44px; height: 44px; margin: 0; border-radius: 50%; background: #fff; border: 1px solid var(--brand-line); box-shadow: 0 8px 20px rgba(var(--brand-ink-rgb), .2); }
.back-to-top i { font-size: 26px; color: var(--brand); }
.back-to-top:hover { background: var(--brand); border-color: var(--brand); }
.back-to-top:hover i { color: #fff; }
.back-to-top.active { visibility: visible; opacity: 1; }

/* ---------- Apparition ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; transition-delay: calc(var(--d, 0) * 120ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1%, -1%, 0); } }
@keyframes shine { 0%, 55% { left: -120%; } 80%, 100% { left: 160%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
    #header { height: 68px; }
    .navbar-mobile ul { padding-top: 60px; }
    .navbar .nav-cta { margin: 14px 20px 0; justify-content: center; }
    .navbar ul a:not(.nav-cta)::after { display: none; }
    .about-visual::before { display: none; }
    .about-badge { right: 12px; }
}
@media (max-width: 575px) {
    .float, .float1 { width: 50px; height: 50px; right: 14px; font-size: 25px; }
    .float { bottom: 14px; }
    .float1 { bottom: 74px; }
    .back-to-top { right: 19px; bottom: 136px; width: 40px; height: 40px; }
    .stat { padding: 20px 10px; }
    .stat i { width: 46px; height: 46px; font-size: 24px; }
    .cta-pro-inner .btn-pro { width: 100%; justify-content: center; }
    .partners { gap: 24px 36px; }
    .partner { width: 100%; max-width: 280px; height: 120px; }
    .partner img { max-height: 72px; }
    .legal-links { display: block; margin: 6px 0 0; }
    .auth-card { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    html.js [data-reveal] { opacity: 1; transform: none; }
    html.js .steps[data-reveal] .step-n, html.js .steps[data-reveal] h3, html.js .steps[data-reveal] p { opacity: 1; transform: none; }
    html.js .steps[data-reveal] li:not(:last-child)::after { transform: none; }
    html.js .tools-anim[data-reveal] .mock-win, html.js .tools-anim[data-reveal] .shot-win,
    html.js .tools-anim[data-reveal] .mock-phone, html.js .tools-anim[data-reveal] .shot-phone,
    html.js .tools-anim[data-reveal] .mock-phone-row { opacity: 1; transform: none; }
    html.js .tools-anim[data-reveal] .mock-chart i, html.js .tools-anim[data-reveal] .mock-rows i,
    html.js .tools-anim[data-reveal] .mock-kpis b { transform: none; }
    html.js .cta-pro[data-reveal] .cta-pro-media { clip-path: none; }
    html.js .cta-pro[data-reveal] .cta-pro-media img { transform: none; }
}

/* ---------- Pages légales et erreurs ---------- */
.legal { padding: 50px 0 70px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 32px; font-size: 22px; font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ink); }
.prose p, .prose li { line-height: 1.8; }
.prose ul { padding-left: 20px; }
.todo { background: #fff3cd; border-radius: 4px; padding: 0 .35em; font-weight: 700; color: #7a5b00; }
.error-page { padding: 90px 0 110px; }
.error-code { margin: 0; font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(80px, 14vw, 150px); line-height: 1; color: var(--blue); }
.error-page h1 { font-family: "Raleway", sans-serif; font-weight: 700; color: var(--ink); }
.contact { padding: 50px 0 70px; }

/* ---------- Détails ---------- */
.auth-card .auth-form { padding: 0; border: 0; box-shadow: none; background: transparent; }
.side-panel .step { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #0f2a44; font-weight: 700; font-size: 14px; }
.team .member { text-align: left; }
.team .member p { text-align: left; font-size: 15px; line-height: 1.75; }
.team .member h4 { text-align: left; }

/* ---------- Ajustements mobile ---------- */
@media (max-width: 767px) {
    #topbar { height: auto; padding: 7px 0; }
    #topbar .contact-info { flex-wrap: wrap; justify-content: center; gap: 2px 18px; font-size: 13px; }
    #topbar .contact-info i, #topbar .contact-info i.ms-4 { margin: 0 !important; }
    #topbar .contact-info i a { line-height: 1.5; padding-left: 4px; }
    #hero { margin-bottom: 24px; }
    .stats { padding-top: 34px; }
    .about { padding-top: 40px; }
}

/* ---------- Lisibilité : texte foncé sur les bandes vertes ---------- */
#footer .footer-newsletter h4, #footer .footer-newsletter p { color: #0f2a44; }
#footer .copyright, #footer .copyright strong, #footer .legal-links a { color: #0f2a44; }

/* ---------- Palette unique : un seul bleu doux + teintes claires ---------- */
.navbar .nav-cta { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .3); }
.navbar .nav-cta:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 10px 22px rgba(var(--brand-dark-rgb), .35); }
.navbar .nav-cta::before { display: none; }
.btn-pro-light:hover { background: #fff; color: var(--blue); }
#footer .footer-top { background: var(--brand-dark); }

/* ---------- Hero (proposition) : un slide = une section complete ---------- */
.hero5 { position: relative; z-index: 1; padding: 0; overflow: hidden; background: var(--brand-ink); color: #fff; }
.hero5 .carousel, .hero5 .carousel-inner { height: clamp(640px, 80vh, 720px); }
.hero5-slide { height: 100%; }
.hero5-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: center; will-change: transform; }
.carousel-item.active .hero5-bg { animation: hero5zoom 12s ease-out forwards; }
.h5-s1 .hero5-bg { background-image: url(../img/opt/hero-3r.webp); background-position: 40% center; }
.h5-s2 .hero5-bg { background-image: url(../img/opt/hero-2.webp); background-position: 72% center; }
.h5-s3 .hero5-bg { background-image: url(../img/opt/hero-outils.webp); background-position: 62% center; }
.hero5-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--brand-night-rgb), .9) 0%, rgba(var(--brand-night2-rgb), .66) 42%, rgba(var(--brand-night2-rgb), .2) 100%), linear-gradient(0deg, rgba(var(--brand-night-rgb), .85) 0%, rgba(var(--brand-night-rgb), .45) 24%, rgba(var(--brand-night-rgb), 0) 48%); }
.hero5-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 30px; padding-bottom: 200px; }

.hero5-text { max-width: 640px; text-align: left; }
.hero5-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50px; background: rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fff; }
.hero5-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-tint); }
.hero5 h1, .hero5 h2 { margin: 22px 0 20px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.5px; color: #fff; }
.hero5 h1 span, .hero5 h2 span { display: block; color: var(--brand-tint); }
.hero5-text p { max-width: 540px; margin: 0; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.hero5-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.hero5-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 10px; background: #fff; color: var(--brand-ink); font-family: "Raleway", sans-serif; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.hero5-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); color: var(--brand-ink); }
.hero5-btn i { transition: transform .25s; }
.hero5-btn:hover i { transform: translateX(4px); }
.hero5-link { font-family: "Raleway", sans-serif; font-weight: 700; font-size: 15px; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .35); padding-bottom: 3px; transition: border-color .25s; }
.hero5-link:hover { color: #fff; border-bottom-color: var(--brand-tint); }

.hero5-glass { flex: none; align-self: flex-end; width: 310px; padding: 24px 26px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); text-align: left; }
.hero5-glass h3 { margin: 0 0 14px; font-family: "Raleway", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand-tint); }
.hero5-glass ul { margin: 0; padding: 0; list-style: none; }
.hero5-glass li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: 15px; line-height: 1.45; color: #fff; }
.hero5-glass li:last-child { margin-bottom: 0; }
.hero5-glass li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-tint); }

.carousel-item.active .hero5-text > * { animation: hero5up .7s ease-out both; }
.carousel-item.active .hero5-text > :nth-child(2) { animation-delay: .08s; }
.carousel-item.active .hero5-text > :nth-child(3) { animation-delay: .16s; }
.carousel-item.active .hero5-text > :nth-child(4) { animation-delay: .24s; }
.carousel-item.active .hero5-glass { animation: hero5up .8s .3s ease-out both; }
@keyframes hero5zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes hero5up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero5-tabsbar { position: absolute; left: 0; right: 0; bottom: 112px; z-index: 5; }
.hero5-tabs.carousel-indicators { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; }
.hero5 .hero5-tabs button { position: relative; display: block; width: auto; height: auto; margin: 0; padding: 18px 0 0; border: 0; background: none; text-indent: 0; opacity: 1; text-align: left; color: rgba(255, 255, 255, .6); cursor: pointer; transition: color .25s; }
.hero5 .hero5-tabs button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.hero5 .hero5-tabs button::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: 3px; background: var(--brand-tint); }
.hero5 .hero5-tabs button.active::after { animation: hero5bar 7s linear forwards; }
.hero5:hover .hero5-tabs button.active::after { animation-play-state: paused; }
.hero5 .hero5-tabs small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1px; color: rgba(255, 255, 255, .55); }
.hero5 .hero5-tabs span { display: block; font-family: "Raleway", sans-serif; font-size: 15px; font-weight: 700; }
.hero5 .hero5-tabs button:hover, .hero5 .hero5-tabs button.active { color: #fff; }
@keyframes hero5bar { from { width: 0; } to { width: 100%; } }

@media (max-width: 991px) { .hero5-glass { display: none; } }
@media (max-width: 575px) {
    .hero5 .carousel, .hero5 .carousel-inner { height: 660px; }
    .hero5-text p { font-size: 16px; }
    .hero5-tabs.carousel-indicators { gap: 10px; }
    .hero5 .hero5-tabs span { font-size: 12px; }
}


/* ---------- Trois atouts : cartes sobres ---------- */
.featured { margin-top: 64px; }
.featured .icon-box { padding: 34px 30px; background: #fff; border: 1px solid var(--brand-soft); border-radius: 18px; box-shadow: 0 10px 30px rgba(var(--brand-dark-rgb), .08); }
.featured .icon-box::after { display: none; }
.featured .icon-box:hover { transform: translateY(-6px); background: #fff; border-color: var(--brand-tint); box-shadow: 0 20px 44px rgba(var(--brand-dark-rgb), .14); }
.featured .icon-box i { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 28px; line-height: 1; transition: background .3s, color .3s; }
.featured .icon-box:hover i { transform: none; background: var(--brand); color: #fff; }
.featured .icon-box h3 { margin-bottom: 10px; font-size: 20px; color: var(--brand-ink); }
.featured .icon-box p { font-size: 15px; line-height: 1.7; color: #4a5568; }
.featured .icon-box:hover h3, .featured .icon-box:hover p { color: inherit; }
.featured .icon-box:hover h3 { color: var(--brand-ink); }
.featured .icon-box:hover p { color: #4a5568; }

/* ---------- Les 3 atouts chevauchent le bas du hero ---------- */
.featured { position: relative; z-index: 6; margin-top: -88px; margin-bottom: 20px; }
.featured .icon-box { box-shadow: 0 24px 56px rgba(var(--brand-night-rgb), .22); border-color: transparent; }
.featured + .stats { padding-top: 60px; }

/* ---------- Partenaires : fond teinte ---------- */
.clients { background: var(--brand-bg); }
.clients { padding: 70px 0 80px; }
#footer .footer-top .social-links a { background: rgba(var(--brand-tint-rgb), .18); color: #fff; }
#footer .footer-top .social-links a:hover, #footer .social-links a:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* ================= Accueil : rythme, sections et cartes ================= */
.sec-head { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.sec-kicker { display: inline-block; margin-bottom: 12px; font-family: "Raleway", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brand); }
.sec-kicker-light { color: var(--brand-tint); }
.sec-title { margin: 0 0 16px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.3px; color: var(--brand-ink); }
.sec-title-light { color: #fff; }
.sec-lead { margin: 0 0 22px; font-size: 17px; line-height: 1.75; color: #4a5568; }
.sec-lead-light { color: rgba(255, 255, 255, .85); }
.sec-head .sec-title { margin-bottom: 0; }

/* ---------- Offre + chiffres ---------- */
.home-about { padding: 90px 0; background: var(--brand-bg); }
.home-about .about-visual::before { border-color: var(--brand-tint); }
.home-checks { margin: 0 0 28px; padding: 0; list-style: none; }
.home-checks li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 16px; font-weight: 600; color: var(--brand-ink); }
.home-checks i { font-size: 20px; color: var(--brand); }
.about-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 30px; padding: 20px 0; list-style: none; background: #fff; border: 1px solid var(--brand-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(var(--brand-dark-rgb), .06); }
.about-figs li { display: flex; flex-direction: column; align-items: center; padding: 4px 8px; text-align: center; }
.about-figs li + li { border-left: 1px solid var(--brand-soft); }
.about-figs strong { font-family: "Poppins", sans-serif; font-size: 26px; line-height: 1.15; color: var(--brand-dark); }
.about-figs li > span { font-size: 12.5px; color: #5d6a80; }

/* ---------- Services ---------- */
.home-svc { padding: 90px 0; background: #fff; }
.svc-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 32px 28px; background: #fff; border: 1px solid var(--brand-soft); border-radius: 18px; box-shadow: 0 8px 26px rgba(var(--brand-dark-rgb), .06); color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--brand-tint); box-shadow: 0 20px 44px rgba(var(--brand-dark-rgb), .14); color: inherit; }
.svc-ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 28px; transition: background .3s, color .3s; }
.svc-card:hover .svc-ico { background: var(--brand); color: #fff; }
.svc-card h3 { margin: 0 0 10px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--brand-ink); }
.svc-card p { flex: 1; margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: #4a5568; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 14px; color: var(--brand); }
.svc-more i { transition: transform .25s; }
.svc-card:hover .svc-more i { transform: translateX(5px); }

/* ---------- Outils (section bleu nuit) ---------- */
.home-tools { position: relative; overflow: hidden; padding: 100px 0; background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-dark) 100%); color: #fff; }
.home-tools::before { content: ""; position: absolute; right: -160px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: rgba(var(--brand-tint-rgb), .07); }
.home-tools .container { position: relative; z-index: 1; }
.tool-list { margin: 30px 0 34px; padding: 0; list-style: none; }
.tool-list li { display: flex; gap: 16px; margin-bottom: 22px; }
.tool-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--brand-tint); font-size: 26px; }
.tool-list h3 { margin: 0 0 4px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 18px; color: #fff; }
.tool-list p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.tools-visual { position: relative; max-width: 560px; margin-left: auto; padding: 0 70px 60px 0; }
.mock-win { background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--brand-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #b4c4e2; }
.mock-bar span { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.mock-body { padding: 18px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-kpis > div { padding: 12px; border-radius: 12px; background: var(--brand-bg); }
.mock-kpis small { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700; color: #5d6a80; }
.mock-kpis b, .mock-phone-row b { display: block; height: 10px; border-radius: 6px; background: var(--brand); }
.w45 { width: 45%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 14px; border-radius: 12px; background: var(--brand-bg); }
.mock-chart i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--brand-tint); }
.mock-chart i:nth-child(1) { height: 35%; } .mock-chart i:nth-child(2) { height: 55%; } .mock-chart i:nth-child(3) { height: 42%; }
.mock-chart i:nth-child(4) { height: 70%; } .mock-chart i:nth-child(5) { height: 58%; } .mock-chart i:nth-child(6) { height: 85%; background: var(--brand); }
.mock-chart i:nth-child(7) { height: 66%; } .mock-chart i:nth-child(8) { height: 78%; background: var(--brand-mid); } .mock-chart i:nth-child(9) { height: 60%; }
.mock-rows { margin-top: 14px; }
.mock-rows i { display: block; height: 9px; margin-bottom: 9px; border-radius: 6px; background: var(--brand-soft); }
.mock-rows i:nth-child(2) { width: 82%; } .mock-rows i:nth-child(3) { width: 64%; }
.mock-phone { position: absolute; right: 0; bottom: 0; width: 190px; padding: 14px; background: #fff; border: 6px solid var(--brand-ink); border-radius: 28px; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.mock-phone-head { margin-bottom: 12px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 13px; color: var(--brand-dark); }
.mock-phone-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 9px; border-radius: 12px; background: var(--brand-bg); }
.mock-phone-row span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 16px; }
.mock-phone-row b { flex: 1; height: 8px; background: var(--brand-tint); }

/* ---------- Comment ça marche ---------- */
.home-steps { padding: 90px 0; background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(50% + 44px); width: calc(100% - 88px + 36px); border-top: 2px dashed var(--brand-tint); }
.step-n { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 22px; box-shadow: 0 10px 22px rgba(var(--brand-rgb), .3); }
.steps h3 { margin: 0 0 10px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 20px; color: var(--brand-ink); }
.steps p { max-width: 300px; margin: 0 auto; font-size: 15px; line-height: 1.7; color: #4a5568; }

/* ---------- Bandeau d'appel et partenaires ---------- */
.cta-pro { padding: 0 0 90px; }
.clients .sec-head { margin-bottom: 36px; }

@media (max-width: 991px) {
    .home-about, .home-svc, .home-steps { padding: 64px 0; }
    .home-tools { padding: 72px 0; }
    .tools-visual { margin: 0 auto; }
}
@media (max-width: 767px) {
    .steps { grid-template-columns: 1fr; gap: 34px; }
    .steps li:not(:last-child)::after { display: none; }
    .about-figs { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .about-figs li:nth-child(3) { border-left: 0; }
    .tools-visual { padding: 0 24px 56px 0; }
    .mock-phone { width: 160px; }
}

/* ================= Pages internes ================= */
.breadcrumbs { padding: 56px 0 50px; background: linear-gradient(135deg, var(--brand-ink) 0%, var(--brand-dark) 100%); border-bottom: 0; color: #fff; }
.breadcrumbs::after { right: -80px; top: -110px; width: 340px; height: 340px; background: rgba(var(--brand-tint-rgb), .08); animation: none; }
.breadcrumbs ol { display: flex; gap: 8px; font-size: 14px; color: var(--brand-tint); }
.breadcrumbs ol li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: var(--brand-tint); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs h1 { margin: 10px 0 0; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.breadcrumbs-lead { color: rgba(255, 255, 255, .85); }
.sec-tint { background: var(--brand-bg); }
.svc-card p + p { margin-top: -6px; }
.pillar-list { margin: 0; padding: 0; list-style: none; }
.pillar-list li { display: flex; gap: 10px; margin-bottom: 9px; font-size: 15px; line-height: 1.55; color: var(--brand-ink); }
.pillar-list i { flex: none; margin-top: 3px; color: var(--brand); }

/* ---------- Menu telephone : bleu nuit, panneau compact ---------- */
@media (max-width: 991px) {
    .navbar-mobile { background: rgba(var(--brand-ink-rgb), .88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    .navbar-mobile .mobile-nav-toggle { top: 14px; right: 16px; color: #fff; font-size: 34px; }
    .navbar-mobile ul { top: 64px; right: 16px; bottom: auto; left: 16px; max-height: calc(100vh - 90px); padding: 14px 10px 20px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
    .navbar-mobile ul li { margin: 0; }
    .navbar-mobile a:not(.nav-cta) { padding: 14px 18px; border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--brand-ink); }
    .navbar-mobile a:not(.nav-cta):hover, .navbar-mobile a.active:not(.nav-cta) { background: var(--brand-soft); color: var(--brand); }
    .navbar-mobile .nav-cta { margin: 14px 8px 0; }
}

/* ---------- Liaisons animées entre les cartes ---------- */
/* Un trait pointillé qui avance et un point lumineux qui le parcourt, dans la gouttière (24 px) entre deux cartes. */
.row-links > [class*="col"] { position: relative; }
.row-links > [class*="col"]::before,
.row-links > [class*="col"]::after { content: ""; display: none; position: absolute; pointer-events: none; }

/* horizontale : dans la gouttière à droite de la carte */
.row-links > [class*="col"]::after {
    top: 50%; left: 100%; width: 24px; height: 12px; margin: -6px 0 0 -12px;
    background:
        radial-gradient(circle, var(--blue) 0 3.2px, rgba(var(--brand-rgb), .32) 3.7px, transparent 6px) -12px 50% / 12px 12px no-repeat,
        repeating-linear-gradient(90deg, rgba(var(--brand-rgb), .7) 0 3px, transparent 3px 7px) 0 50% / 100% 2px repeat-x;
    animation: linkX 2.2s linear infinite;
}
/* verticale : dans la gouttière sous la carte */
.row-links > [class*="col"]::before {
    top: 100%; left: 50%; width: 12px; height: 24px; margin-left: -6px;
    background:
        radial-gradient(circle, var(--blue) 0 3.2px, rgba(var(--brand-rgb), .32) 3.7px, transparent 6px) 50% -12px / 12px 12px no-repeat,
        repeating-linear-gradient(180deg, rgba(var(--brand-rgb), .7) 0 3px, transparent 3px 7px) 50% 0 / 2px 100% repeat-y;
    animation: linkY 2.2s linear infinite;
}
.row-links > [class*="col"]:nth-child(2)::after, .row-links > [class*="col"]:nth-child(2)::before { animation-delay: -.7s; }
.row-links > [class*="col"]:nth-child(3)::after, .row-links > [class*="col"]:nth-child(3)::before { animation-delay: -1.4s; }

/* mobile : cartes empilées, liaisons verticales */
.row-links > [class*="col"]:not(:last-child)::before { display: block; }

/* tablette : grille à 2 colonnes (services) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .row-links-md > [class*="col"]:nth-child(odd):not(:last-child)::after { display: block; }
    .row-links-md > [class*="col"]:nth-last-child(-n+2)::before { display: none; }
}
/* ordinateur : 3 colonnes */
@media (min-width: 992px) {
    .row-links > [class*="col"]::before { display: none !important; }
    .row-links > [class*="col"]:not(:last-child)::after { display: block; }
    .row-links-md > [class*="col"]:nth-child(3n)::after { display: none; }
    .row-links-md > [class*="col"]:not(:nth-last-child(-n+3))::before { display: block !important; }
}

@keyframes linkX { from { background-position: -12px 50%, 0 50%; } to { background-position: 24px 50%, 7px 50%; } }
@keyframes linkY { from { background-position: 50% -12px, 50% 0; } to { background-position: 50% 24px, 50% 7px; } }

@media (max-width: 575px) { #header .logo img { height: 46px; } }

/* ---------- Barre du haut en bleu nuit ; bandes claires restent bleues ---------- */
#topbar { background: var(--brand-dark); }

/* ---------- Vraies captures des outils ---------- */
.tools-real .shot-win { margin: 0; background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); overflow: hidden; }
.tools-real .shot-win img { display: block; width: 100%; height: auto; }
.tools-real .shot-phone { position: absolute; right: 0; bottom: 0; width: 190px; margin: 0; border: 6px solid var(--brand-ink); border-radius: 28px; background: #fff; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); overflow: hidden; }
.tools-real .shot-phone img { display: block; width: 100%; height: auto; }
.tools-real.no-phone { padding-right: 0; }
.tools-real .shot-phone:only-child { position: static; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { .tools-real .shot-phone { width: 150px; } }

/* ---------- Demande de cotation ---------- */
.quote { position: relative; overflow: hidden; padding: 34px 0 70px; background: radial-gradient(700px 420px at 0% 30%, rgba(var(--brand-rgb), .12), transparent 70%), radial-gradient(600px 400px at 100% 10%, rgba(var(--brand-tint-rgb), .28), transparent 70%), linear-gradient(180deg, #e7edf8 0%, #edf2f9 100%); }
.quote::before { content: ""; position: absolute; left: -40px; top: 60px; width: 150px; height: 210px; border-radius: 0 100% 0 100%; background: rgba(var(--brand-tint-rgb), .45); transform: rotate(-24deg); pointer-events: none; }
.quote::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(var(--brand-rgb), .1); pointer-events: none; }
.quote .container { position: relative; z-index: 1; }
.quote-head { margin-bottom: 28px; }
.quote-crumb { display: flex; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; color: var(--blue); }
.quote-crumb li + li::before { content: "/"; margin-right: 8px; color: #8a96b3; }
.quote-crumb a { color: #4a5670; }
.quote-crumb a:hover { color: var(--blue); }
.quote-head h1 { margin: 0 0 8px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 42px); color: var(--ink); }
.quote-head h1 span { color: var(--blue); }
.quote-head p { margin: 0; font-size: 17px; color: #4a5670; }
.quote-form { height: 100%; border: 1px solid var(--brand-line); box-shadow: 0 20px 44px rgba(var(--brand-ink-rgb), .1); }
.quote-form-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 18px; color: var(--ink); }
.quote-form-title::before { content: ""; width: 24px; height: 4px; border-radius: 4px; background: var(--blue); }
.pro-form .input-icon select { padding-left: 44px; }
.pro-form .input-icon textarea { padding-left: 44px; }
.input-icon.is-top > i:first-child { top: 14px; transform: none; }
.pro-form ::placeholder { color: #98a3bd; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-form .choice { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1.5px solid #b9c6e6; border-radius: 10px; background: #fff; font-weight: 500; color: #4a5670; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice i { font-size: 18px; }
.pro-form .choice:hover { border-color: var(--blue); }
.pro-form .choice:has(input:checked) { border-color: var(--blue); background: var(--brand-soft); color: var(--blue); font-weight: 600; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .18); }
.quote-submit { text-align: center; }
.quote-submit .btn-pro { padding: 13px 30px; }
.quote-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; border-radius: 22px; background: linear-gradient(170deg, var(--brand-2) 0%, var(--brand-dark) 100%); color: #c9d3ee; box-shadow: 0 20px 44px rgba(var(--brand-ink-rgb), .2); }
.quote-panel-img { display: block; flex: 1 1 220px; width: 100%; min-height: 220px; height: 0; object-fit: cover; object-position: 30% 20%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.quote-panel-body { position: relative; flex: none; display: flex; flex-direction: column; padding: 0 26px 26px; margin-top: -30px; }
.quote-panel h3 { margin: 0 0 22px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 22px; color: #fff; }
.quote-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.quote-steps li { display: grid; grid-template-columns: 38px 28px 1fr; align-items: start; gap: 12px; }
.quote-steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); border: 2px solid rgba(255, 255, 255, .25); color: #fff; font-weight: 700; }
.quote-steps .n.is-green { background: #2f9e57; }
.quote-steps li > i { padding-top: 6px; font-size: 22px; color: #fff; }
.quote-steps strong { display: block; margin-bottom: 3px; font-size: 15px; color: #fff; }
.quote-steps span:not(.n) { font-size: 13.5px; line-height: 1.5; }
.quote-ask { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.quote-ask > i { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; }
.quote-ask p { margin: 0; font-size: 14px; }
.quote-ask strong { display: block; color: #fff; }
.quote-ask a { color: #fff; font-weight: 600; }
.quote-ask a:hover { color: var(--green); }

/* ==========================================================================
   Bandeau des pages internes : photo, dégradé bleu, décors et points animés
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 280px; padding: 64px 0 60px; background: rgb(var(--brand-night-rgb)); border-bottom: 0; color: #fff; }
.page-hero::after { display: none; }
.page-hero .container { position: relative; z-index: 2; }

/* Photo à droite, zoom lent */
.page-hero .ph-media { position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: min(64%, 1040px); background: url(../img/opt/hero-3r.webp) 72% 30% / cover no-repeat; animation: phZoom 22s ease-in-out infinite alternate; }
.page-hero--team .ph-media { background-image: url(../img/opt/about.webp); background-position: center 35%; }
/* Dégradé : bleu nuit à gauche, la photo apparaît à droite */
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgb(var(--brand-night-rgb)) 0%, rgba(var(--brand-dark-rgb), .98) 30%, rgba(var(--brand-rgb), .82) 48%, rgba(var(--brand-rgb), .32) 66%, rgba(var(--brand-rgb), 0) 86%),
        linear-gradient(0deg, rgba(var(--brand-night-rgb), .35), rgba(var(--brand-night-rgb), 0) 45%); }

/* Décors */
.ph-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ph-cross { position: absolute; left: 1.4%; top: 50%; width: 86px; height: 86px; margin-top: -60px; color: rgba(var(--brand-tint-rgb), .28); animation: phFloat 7s ease-in-out infinite; }
.ph-leaf { position: absolute; left: 3%; bottom: -46px; width: 120px; height: 150px; border-radius: 0 100% 0 100%; background: linear-gradient(140deg, rgba(var(--brand-tint-rgb), .95), #2f9e62); opacity: .85; transform-origin: 0 100%; animation: phSway 6s ease-in-out infinite; }
.ph-ring { position: absolute; right: 30%; top: 18%; width: 14px; height: 14px; border-radius: 50%; background: rgba(var(--brand-tint-rgb), .95); box-shadow: 0 0 0 0 rgba(var(--brand-tint-rgb), .55); animation: phBeacon 2.6s ease-out infinite; }
.ph-dots { position: absolute; left: 42%; top: 24px; width: 170px; height: 110px; background: radial-gradient(circle, rgba(255, 255, 255, .55) 1.5px, transparent 1.9px) 0 0 / 16px 16px; -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); animation: phDots 6s linear infinite, phTwinkle 3.2s ease-in-out infinite; }

/* Particules qui montent */
.ph-p { position: absolute; bottom: -12px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: 0 0 10px rgba(255, 255, 255, .6); opacity: 0; animation: phRise 7s linear infinite; }
.ph-p:nth-child(5)  { left: 12%; animation-delay: 0s; }
.ph-p:nth-child(6)  { left: 22%; width: 4px; height: 4px; animation-delay: 1.6s; animation-duration: 8s; background: rgba(var(--brand-tint-rgb), .95); }
.ph-p:nth-child(7)  { left: 31%; animation-delay: 3.1s; animation-duration: 6.5s; }
.ph-p:nth-child(8)  { left: 39%; width: 8px; height: 8px; animation-delay: .8s; animation-duration: 9s; background: rgba(var(--brand-tint-rgb), .8); }
.ph-p:nth-child(9)  { left: 47%; width: 4px; height: 4px; animation-delay: 4.2s; }
.ph-p:nth-child(10) { left: 56%; animation-delay: 2.3s; animation-duration: 7.5s; }
.ph-p:nth-child(11) { left: 66%; width: 5px; height: 5px; animation-delay: 5.1s; animation-duration: 8.5s; background: rgba(var(--brand-tint-rgb), .9); }
.ph-p:nth-child(12) { left: 78%; width: 4px; height: 4px; animation-delay: 1.1s; animation-duration: 6.8s; }

/* Texte : apparition échelonnée au chargement */
.page-hero ol, .page-hero h1, .page-hero .breadcrumbs-lead { animation: phIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero h1 { animation-delay: .12s; font-size: clamp(32px, 4.6vw, 54px); text-shadow: 0 4px 24px rgba(var(--brand-night-rgb), .45); }
.page-hero .breadcrumbs-lead { animation-delay: .26s; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.page-hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, rgb(var(--brand-tint-rgb)), rgba(255, 255, 255, .9)); transform-origin: left; animation: phBar 1s .55s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero ol { color: rgba(255, 255, 255, .85); }
.page-hero ol a { color: #fff; opacity: .9; }
.page-hero ol a:hover { opacity: 1; color: rgb(var(--brand-tint-rgb)); }

@keyframes phZoom { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
@keyframes phFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes phSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes phBeacon { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-tint-rgb), .6); } 100% { box-shadow: 0 0 0 22px rgba(var(--brand-tint-rgb), 0); } }
@keyframes phDots { from { background-position: 0 0; } to { background-position: 32px 16px; } }
@keyframes phTwinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes phRise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translateY(-260px); opacity: 0; } }
@keyframes phIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes phBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Tablette et mobile : photo en fond, voile plus présent */
@media (max-width: 991.98px) {
    .page-hero { min-height: 240px; padding: 52px 0 48px; }
    .page-hero .ph-media { width: 100%; background-position: 65% 30%; }
    .page-hero::before { background: linear-gradient(90deg, rgba(var(--brand-night-rgb), .96) 0%, rgba(var(--brand-dark-rgb), .9) 45%, rgba(var(--brand-rgb), .55) 100%); }
    .ph-dots { left: auto; right: 6%; }
    .ph-ring { right: 12%; }
}
@media (max-width: 575.98px) {
    .page-hero { min-height: 210px; padding: 40px 0 44px; }
    .page-hero .container { padding-left: 24px; }
    .ph-cross { width: 56px; height: 56px; left: auto; right: 6%; top: 30px; margin-top: 0; }
    .ph-leaf { width: 70px; height: 88px; bottom: -30px; left: auto; right: 2%; }
    .ph-dots { display: none; }
    .page-hero .breadcrumbs-lead { font-size: 16px; }
}
/* retouches du bandeau */
.page-hero .ph-media { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
.ph-cross { left: -24px; }
.ph-leaf { left: -40px; bottom: -64px; }
@media (max-width: 991.98px) { .page-hero .ph-media { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 575.98px) { .ph-cross { left: auto; } .ph-leaf { left: auto; bottom: -30px; } }

/* ---------- « Comment ça marche » : la section se construit ---------- */
html.js .steps[data-reveal] { opacity: 1; transform: none; transition: none; }
html.js .steps[data-reveal] .step-n { opacity: 0; transform: scale(.3); }
html.js .steps[data-reveal] h3, html.js .steps[data-reveal] p { opacity: 0; transform: translateY(12px); }
html.js .steps[data-reveal] li:not(:last-child)::after { transform: scaleX(0); transform-origin: left; }
.steps li:nth-child(1) { --s: 0; }
.steps li:nth-child(2) { --s: 1; }
.steps li:nth-child(3) { --s: 2; }
html.js .steps.in .step-n { opacity: 1; transform: none; transition: opacity .3s calc(var(--s) * 560ms), transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--s) * 560ms); }
html.js .steps.in h3, html.js .steps.in p { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22, 1, .36, 1) calc(var(--s) * 560ms + .22s), transform .7s cubic-bezier(.22, 1, .36, 1) calc(var(--s) * 560ms + .22s); }
html.js .steps.in li:not(:last-child)::after { transform: none; transition: transform .9s cubic-bezier(.22, 1, .36, 1) calc(var(--s) * 560ms + .34s); }
.ph-leaf { bottom: -50px; }
@media (max-width: 575.98px) { .ph-leaf { bottom: -30px; } }

/* ---------- « Nos outils » : la maquette se construit ---------- */
html.js .tools-anim[data-reveal] { opacity: 1; transform: none; transition: none; }
html.js .tools-anim[data-reveal] .mock-win, html.js .tools-anim[data-reveal] .shot-win { opacity: 0; transform: translateY(28px) scale(.97); }
html.js .tools-anim[data-reveal] .mock-kpis b { transform: scaleX(0); transform-origin: left; }
html.js .tools-anim[data-reveal] .mock-chart i { transform: scaleY(0); transform-origin: bottom; }
html.js .tools-anim[data-reveal] .mock-rows i { transform: scaleX(0); transform-origin: left; }
html.js .tools-anim[data-reveal] .mock-phone, html.js .tools-anim[data-reveal] .shot-phone { opacity: 0; transform: translateX(64px); }
html.js .tools-anim[data-reveal] .mock-phone-row { opacity: 0; transform: translateX(14px); }

.tools-anim .mock-kpis > div:nth-child(1) b, .tools-anim .mock-chart i:nth-child(1), .tools-anim .mock-rows i:nth-child(1), .tools-anim .mock-phone-row:nth-of-type(1) { --k: 0; }
.tools-anim .mock-kpis > div:nth-child(2) b, .tools-anim .mock-chart i:nth-child(2), .tools-anim .mock-rows i:nth-child(2), .tools-anim .mock-phone-row:nth-of-type(2) { --k: 1; }
.tools-anim .mock-kpis > div:nth-child(3) b, .tools-anim .mock-chart i:nth-child(3), .tools-anim .mock-rows i:nth-child(3), .tools-anim .mock-phone-row:nth-of-type(3) { --k: 2; }
.tools-anim .mock-chart i:nth-child(4) { --k: 3; }
.tools-anim .mock-chart i:nth-child(5) { --k: 4; }
.tools-anim .mock-chart i:nth-child(6) { --k: 5; }
.tools-anim .mock-chart i:nth-child(7) { --k: 6; }
.tools-anim .mock-chart i:nth-child(8) { --k: 7; }
.tools-anim .mock-chart i:nth-child(9) { --k: 8; }

html.js .tools-anim.in .mock-win, html.js .tools-anim.in .shot-win { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
html.js .tools-anim.in .mock-kpis b { transform: none; transition: transform .9s cubic-bezier(.22, 1, .36, 1) calc(.35s + var(--k, 0) * 110ms); }
html.js .tools-anim.in .mock-chart i { transform: none; transition: transform .8s cubic-bezier(.22, 1, .36, 1) calc(.5s + var(--k, 0) * 60ms); }
html.js .tools-anim.in .mock-rows i { transform: none; transition: transform .8s cubic-bezier(.22, 1, .36, 1) calc(1s + var(--k, 0) * 110ms); }
html.js .tools-anim.in .mock-phone, html.js .tools-anim.in .shot-phone { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22, 1, .36, 1) 1.1s, transform .9s cubic-bezier(.34, 1.56, .64, 1) 1.1s; }
html.js .tools-anim.in .mock-phone-row { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.22, 1, .36, 1) calc(1.5s + var(--k, 0) * 140ms), transform .6s cubic-bezier(.22, 1, .36, 1) calc(1.5s + var(--k, 0) * 140ms); }
html.js .tools-anim.in .mock-chart i:nth-child(6) { animation: tools-breathe 2.8s ease-in-out 2.6s infinite; }
@keyframes tools-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.9); } }


/* ---------- Bandeau d'appel : photo d'équipe + entrée animée ---------- */
.cta-pro-inner { align-items: stretch; gap: 0; padding: 0; }
.cta-pro-text { flex: 1 1 440px; padding: clamp(28px, 4.4vw, 52px); }
.cta-pro-text p { margin-bottom: 26px; }
.cta-pro-media { position: relative; flex: 1 1 340px; min-height: 290px; margin: 0; overflow: hidden; }
.cta-pro-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
/* la photo s'efface vers la gauche : le dégradé du bandeau reste visible dessous, sans raccord */
.cta-pro-media { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 26%, #000 66%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 26%, #000 66%); }
.cta-pro-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--brand-dark-rgb), .5) 0%, rgba(var(--brand-dark-rgb), .14) 60%, rgba(var(--brand-dark-rgb), .06) 100%); }

html.js .cta-pro[data-reveal] .cta-pro-media { clip-path: inset(0 0 0 100%); }
html.js .cta-pro[data-reveal] .cta-pro-media img { transform: scale(1.18); }
html.js .cta-pro.in .cta-pro-media { clip-path: inset(0 0 0 0%); transition: clip-path 1.1s cubic-bezier(.22, 1, .36, 1) .15s; }
html.js .cta-pro.in .cta-pro-media img { transform: scale(1); transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) .15s; }
html.js .cta-pro.in .cta-pro-media img { animation: cta-drift 24s ease-in-out 1.9s infinite; }
@keyframes cta-drift { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

@media (max-width: 767px) {
    .cta-pro-media { flex-basis: 100%; min-height: 200px; }
    .cta-pro-media { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .4) 20%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .4) 20%, #000 55%); }
    .cta-pro-media::after { background: linear-gradient(180deg, rgba(var(--brand-dark-rgb), .45) 0%, rgba(var(--brand-dark-rgb), .1) 55%); }
    html.js .cta-pro[data-reveal] .cta-pro-media { clip-path: inset(0 0 100% 0); }
    html.js .cta-pro.in .cta-pro-media { clip-path: inset(0 0 0% 0); }
}

/* ==========================================================================
   Page contact (maquette) : 3 cartes, photo + formulaire, page compacte
   ========================================================================== */
.page-hero h1 em { font-style: normal; color: #6aa5ff; }

.contact-v2 { position: relative; padding: 24px 0 60px; background: #fff; }
.contact-v2::before, .contact-v2::after { content: ""; position: absolute; width: 56px; height: 96px; background: radial-gradient(circle, rgba(var(--brand-rgb), .25) 1.6px, transparent 2px) 0 0 / 14px 14px; animation: phTwinkle 4s ease-in-out infinite; pointer-events: none; }
.contact-v2::before { left: 4px; top: 160px; }
.contact-v2::after { right: 4px; bottom: 260px; animation-delay: -2s; }

/* Cartes de contact */
.cc-row { margin-bottom: 22px; }
.cc-card { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 18px 18px 20px; background: #fff; border: 1px solid var(--brand-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(var(--brand-rgb), .07); color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.cc-card:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb), .35); box-shadow: 0 16px 34px rgba(var(--brand-rgb), .14); color: inherit; }
.cc-ico { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 26px; transition: transform .3s; }
.cc-card:hover .cc-ico { transform: scale(1.08) rotate(-4deg); }
.cc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cc-txt strong { font-family: "Raleway", sans-serif; font-size: 17px; font-weight: 700; color: var(--brand-ink); }
.cc-txt span { font-size: 14px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.cc-go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 16px; transition: background .3s, color .3s, transform .3s; }
.cc-card:hover .cc-go { background: var(--brand); color: #fff; transform: translateX(3px); }
.cc-card--green .cc-ico, .cc-card--green .cc-go { background: #e3f6ea; color: #2f9e62; }
.cc-card--green:hover .cc-go { background: #2f9e62; color: #fff; }

/* Panneau photo */
.cf-row { align-items: stretch; }
.cf-panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; height: 100%; min-height: 500px; border-radius: 20px; background: url(../img/opt/about.webp) 40% center / cover no-repeat; }
.cf-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--brand-rgb), .2) 0%, rgba(var(--brand-dark-rgb), .35) 45%, rgba(var(--brand-night-rgb), .94) 100%); }
.cf-panel-txt { position: relative; z-index: 2; padding: 30px 30px 32px; color: #fff; }
.cf-panel h2 { margin: 0 0 16px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); color: #fff; }
.cf-panel ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.cf-panel li { display: flex; align-items: flex-start; gap: 10px; }
.cf-panel li i { flex: none; color: #4cc27f; font-size: 20px; line-height: 1.25; }
.cf-panel a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cf-panel a:hover { color: #b4e3bc; }
.cf-leaf { position: absolute; z-index: 1; border-radius: 0 100% 0 100%; pointer-events: none; }
.cf-leaf--top { left: -16px; top: 18px; width: 72px; height: 92px; background: linear-gradient(140deg, #8be0ad, #2f9e62); opacity: .9; transform-origin: 0 100%; animation: phSway 6s ease-in-out infinite; }
.cf-leaf--bottom { right: -18px; bottom: -26px; width: 96px; height: 124px; background: linear-gradient(140deg, #4cc27f 0%, #2f7fd6 100%); opacity: .85; transform-origin: 100% 100%; animation: phSway 7s ease-in-out -2s infinite; }

/* Formulaire */
.cf-form { height: 100%; padding: 28px 32px 24px; background: #fff; border: 1.5px solid rgba(var(--brand-rgb), .55); border-radius: 20px; box-shadow: 0 18px 44px rgba(var(--brand-rgb), .1); }
.cf-head { position: relative; margin-bottom: 18px; padding-left: 40px; }
.cf-head::before { content: ""; position: absolute; left: 0; top: 15px; width: 26px; height: 4px; border-radius: 4px; background: var(--brand); }
.cf-head h2 { margin: 0 0 6px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: 24px; color: var(--brand-ink); }
.cf-head p { margin: 0; font-size: 14.5px; color: var(--text); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cf-field { margin-bottom: 14px; }
.cf-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.cf-input { position: relative; }
.cf-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7d8bb0; font-size: 17px; pointer-events: none; transition: color .2s; }
.cf-input:has(textarea) > i { top: 13px; transform: none; }
.cf-input:focus-within > i { color: var(--brand); }
.cf-form .cf-input input, .cf-form .cf-input textarea { width: 100%; padding: 11px 14px 11px 42px; border: 1.5px solid #cfd8ec; border-radius: 10px; font-size: 14.5px; }
.cf-form .cf-input textarea { min-height: 104px; resize: vertical; }
.cf-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 13px 26px; border: 0; border-radius: 50px; background: linear-gradient(90deg, var(--brand), #1d3fae); color: #fff; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 15.5px; box-shadow: 0 10px 24px rgba(var(--brand-rgb), .3); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.cf-btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: shine 5s ease-in-out infinite; }
.cf-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(var(--brand-rgb), .38); }
.cf-btn i { font-size: 18px; transition: transform .3s; }
.cf-btn:hover .bi-arrow-right { transform: translateX(4px); }
.cf-btn:hover .bx-paper-plane { transform: translate(3px, -3px) rotate(-8deg); }
.cf-btn.is-loading { opacity: .75; pointer-events: none; }
.cf-hint { margin: 14px 0 0; font-size: 13px; color: var(--text); }

@media (max-width: 1399.98px) { .contact-v2::before, .contact-v2::after { display: none; } }
@media (max-width: 991.98px) {
    .cf-panel { min-height: 300px; }
}
@media (max-width: 575.98px) {
    .contact-v2 { padding-top: 18px; }
    .cf-grid { grid-template-columns: 1fr; }
    .cf-form { padding: 22px 18px 20px; }
    .cf-head { padding-left: 34px; }
    .cf-head h2 { font-size: 21px; }
    .cf-btn { width: 100%; justify-content: center; }
    .cf-panel { min-height: 260px; }
    .cf-panel-txt { padding: 22px 20px 24px; }
}
/* bandeau plus compact (pages moins longues) */
.page-hero { min-height: 220px; padding: 46px 0 42px; }
.page-hero h1::after { margin-top: 10px; }
.page-hero .breadcrumbs-lead { margin-top: 12px; font-size: 17px; }
.page-hero + .contact-v2 { margin-top: -18px; }
@media (max-width: 575.98px) { .page-hero { min-height: 190px; padding: 34px 0 34px; } }
@media (max-width: 575.98px) {
    .cc-card { padding: 12px 14px; gap: 12px; }
    .cc-ico { width: 44px; height: 44px; font-size: 22px; }
    .cc-go { width: 30px; height: 30px; }
    .cc-txt strong { font-size: 16px; }
    .cf-panel { min-height: 230px; }
    .cf-panel h2 { font-size: 22px; margin-bottom: 12px; }
    .cf-panel ul { font-size: 15px; gap: 8px; }
}

/* ==========================================================================
   Page contact : guide « Comment ça marche ? » dans le panneau photo
   (3 étapes + démonstration animée sans son, cycle de 12 s synchronisé)
   ========================================================================== */
.cf-panel .cf-guide { position: relative; z-index: 2; width: 100%; padding: 26px 24px 22px; color: #fff; }
.cf-panel::before { background: linear-gradient(180deg, rgba(var(--brand-rgb), .15) 0%, rgba(var(--brand-dark-rgb), .55) 26%, rgba(var(--brand-night-rgb), .93) 52%, rgba(var(--brand-night-rgb), .97) 100%); }
.cf-kicker { display: inline-block; margin-bottom: 6px; padding: 4px 12px; border-radius: 50px; background: rgba(var(--brand-tint-rgb), .2); color: rgb(var(--brand-tint-rgb)); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cf-guide h2 { margin: 0 0 16px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(22px, 2.1vw, 27px); color: #fff; }
.cf-guide-body { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: center; }

/* Étapes (carte claire pour garder la lisibilité sur la photo) */
.howto-steps { position: relative; display: grid; gap: 6px; margin: 0; padding: 10px; list-style: none; background: rgba(255, 255, 255, .96); border-radius: 18px; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.howto-steps::before { content: ""; position: absolute; left: 37px; top: 40px; bottom: 40px; width: 2px; background: repeating-linear-gradient(180deg, var(--brand-line) 0 5px, transparent 5px 10px); }
.hs { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 6px; border: 2px solid transparent; border-radius: 14px; }
.hs-ico { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--brand); font-size: 23px; box-shadow: 0 4px 12px rgba(var(--brand-rgb), .16); }
.hs-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hs-txt strong { display: flex; align-items: center; gap: 8px; font-family: "Raleway", sans-serif; font-size: 16px; color: var(--brand-ink); }
.hs-txt > span { font-size: 13px; line-height: 1.4; color: var(--text); }
.hs-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; font-family: "Poppins", sans-serif; }

.hs-1 { animation: hsOn1 12s infinite; } .hs-1 .hs-ico { animation: icoOn1 12s infinite; }
.hs-2 { animation: hsOn2 12s infinite; } .hs-2 .hs-ico { animation: icoOn2 12s infinite; }
.hs-3 { animation: hsOn3 12s infinite; } .hs-3 .hs-ico { animation: icoOn3 12s infinite; }
@keyframes hsOn1 { 0%, 53% { background: var(--brand-bg); border-color: var(--brand); } 56%, 100% { background: transparent; border-color: transparent; } }
@keyframes icoOn1 { 0%, 53% { background: var(--brand); color: #fff; } 56%, 100% { background: #fff; color: var(--brand); } }
@keyframes hsOn2 { 0%, 53% { background: transparent; border-color: transparent; } 56%, 61% { background: var(--brand-bg); border-color: var(--brand); } 64%, 100% { background: transparent; border-color: transparent; } }
@keyframes icoOn2 { 0%, 53% { background: #fff; color: var(--brand); } 56%, 61% { background: var(--brand); color: #fff; } 64%, 100% { background: #fff; color: var(--brand); } }
@keyframes hsOn3 { 0%, 61% { background: transparent; border-color: transparent; } 64%, 93% { background: #eaf7ef; border-color: #2f9e62; } 97%, 100% { background: transparent; border-color: transparent; } }
@keyframes icoOn3 { 0%, 61% { background: #fff; color: var(--brand); } 64%, 93% { background: #2f9e62; color: #fff; } 97%, 100% { background: #fff; color: var(--brand); } }

/* Démonstration : un faux formulaire qui se remplit tout seul */
.howto-demo { display: flex; justify-content: center; }
.demo-card { position: relative; overflow: hidden; width: 100%; max-width: 300px; height: 300px; padding: 0 14px; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); font-size: 13px; color: var(--brand-ink); }
.demo-bar { display: flex; align-items: center; gap: 5px; height: 32px; margin: 0 -14px 10px; padding: 0 12px; background: var(--brand-bg); border-bottom: 1px solid var(--brand-line); font-size: 11px; color: var(--text); }
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-line); }
.demo-bar span { margin-left: 6px; font-weight: 600; }
.demo-field { margin-bottom: 8px; }
.demo-label { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; }
.demo-input { display: flex; align-items: center; height: 31px; padding: 0 10px; border: 1.5px solid var(--brand-line); border-radius: 9px; }
.demo-area { height: 50px; align-items: flex-start; padding-top: 7px; }
.demo-type { display: inline-block; max-width: 100%; overflow: hidden; white-space: nowrap; vertical-align: bottom; border-right: 2px solid transparent; }
.dt-1 { width: 12ch; animation: dt1 12s infinite; }
.dt-2 { width: 16ch; animation: dt2 12s infinite; }
.dt-3 { width: 28ch; animation: dt3 12s infinite; }
@keyframes dt1 { 0%, 4% { width: 0; border-color: var(--brand); animation-timing-function: steps(12, end); } 15% { width: 12ch; border-color: var(--brand); } 16%, 96% { width: 12ch; border-color: transparent; } 100% { width: 0; border-color: transparent; } }
@keyframes dt2 { 0%, 17% { width: 0; border-color: transparent; } 18% { width: 0; border-color: var(--brand); animation-timing-function: steps(16, end); } 29% { width: 16ch; border-color: var(--brand); } 30%, 96% { width: 16ch; border-color: transparent; } 100% { width: 0; } }
@keyframes dt3 { 0%, 31% { width: 0; border-color: transparent; } 32% { width: 0; border-color: var(--brand); animation-timing-function: steps(28, end); } 47% { width: 28ch; border-color: var(--brand); } 48%, 96% { width: 28ch; border-color: transparent; } 100% { width: 0; } }

.demo-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 8px 14px; border-radius: 50px; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; animation: demoBtn 12s infinite; }
@keyframes demoBtn { 0%, 54% { transform: none; filter: none; } 56% { transform: scale(.94); filter: brightness(.85); } 58%, 100% { transform: none; filter: none; } }

.demo-cursor { position: absolute; top: 205px; left: 70%; z-index: 3; font-size: 20px; color: var(--brand-ink); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); opacity: 0; animation: demoCursor 12s infinite; }
@keyframes demoCursor {
    0%, 46% { opacity: 0; top: 205px; left: 70%; transform: none; }
    48% { opacity: 1; top: 205px; left: 70%; }
    54% { opacity: 1; top: 234px; left: 30%; transform: none; }
    56% { transform: scale(.8); }
    58% { opacity: 1; transform: none; top: 234px; left: 30%; }
    62%, 100% { opacity: 0; top: 234px; left: 30%; }
}

.demo-done { position: absolute; inset: 32px 0 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255, 255, 255, .97); text-align: center; opacity: 0; animation: demoDone 12s infinite; }
.demo-done strong { font-family: "Raleway", sans-serif; font-size: 19px; color: var(--brand-ink); }
.demo-done small { font-size: 13px; color: var(--text); }
.demo-check { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; background: #2f9e62; color: #fff; font-size: 32px; box-shadow: 0 0 0 9px rgba(47, 158, 98, .15); animation: demoCheck 12s infinite; }
@keyframes demoDone { 0%, 60% { opacity: 0; transform: scale(.96); } 64%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes demoCheck { 0%, 62% { transform: scale(0); } 66% { transform: scale(1.15); } 69%, 100% { transform: scale(1); } }

/* Message pour les personnes sourdes ou malentendantes */
.cf-a11y { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .35); font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.cf-a11y i { flex: none; font-size: 22px; color: rgb(var(--brand-tint-rgb)); }
.cf-a11y strong { color: #fff; }

@media (max-width: 1199.98px) and (min-width: 992px) {
    .cf-guide-body { grid-template-columns: 1fr; }
    .demo-card { max-width: 100%; }
}
@media (max-width: 991.98px) {
    .cf-panel { min-height: 0; }
    .cf-panel::before { background: linear-gradient(180deg, rgba(var(--brand-dark-rgb), .7) 0%, rgba(var(--brand-night-rgb), .95) 40%); }
}
@media (max-width: 575.98px) {
    .cf-panel .cf-guide { padding: 20px 16px 18px; }
    .cf-guide-body { grid-template-columns: 1fr; }
    .demo-card { max-width: 100%; }
}
.cf-panel .hs i { color: inherit; font-size: inherit; line-height: 1; }
.cf-panel .howto-steps li { align-items: center; }

/* version allégée du visuel « outils » sur petit écran */
@media (max-width: 575px) {
    .h5-s3 .hero5-bg { background-image: url(../img/opt/hero-outilsm.webp); background-position: center; }
}

/* ---------- Message de la newsletter, affiché sur place ---------- */
.nl-msg { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; padding: 11px 16px; border-radius: 50px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.nl-msg[hidden] { display: none; }
.nl-msg::before { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.nl-envoi { background: rgba(255, 255, 255, .65); color: var(--brand-dark); }
.nl-envoi::before { content: "…"; background: var(--brand); color: #fff; }
.nl-ok { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 18px rgba(var(--brand-dark-rgb), .12); animation: nl-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.nl-ok::before { content: "✓"; background: var(--brand); color: #fff; }
.nl-err { background: #fdecea; color: #a3271b; }
.nl-err::before { content: "!"; background: #c0392b; color: #fff; }
@keyframes nl-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nl-ok { animation: none; } }

/* ---------- Actualités ---------- */
.actu-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--brand-line); border-radius: 18px; box-shadow: 0 8px 26px rgba(var(--brand-dark-rgb), .06); transition: transform .3s, box-shadow .3s, border-color .3s; }
.actu-card:hover { transform: translateY(-6px); border-color: var(--brand-tint); box-shadow: 0 20px 44px rgba(var(--brand-dark-rgb), .14); }
.actu-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-soft); }
.actu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.actu-card:hover .actu-media img { transform: scale(1.05); }
.actu-corps { display: flex; flex-direction: column; flex: 1; padding: 26px 24px; }
.actu-date { display: block; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.actu-card h2 { margin: 0 0 10px; font-family: "Raleway", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.3; }
.actu-card h2 a { color: var(--brand-ink); }
.actu-card h2 a:hover { color: var(--brand); }
.actu-card p { flex: 1; margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: #4a5568; }

.actu-article { padding-bottom: 10px; }
.actu-meta { margin: 0 0 22px; font-size: 14px; color: #5d6a80; }
.actu-meta time { font-weight: 700; color: var(--brand); }
.actu-illustration { width: 100%; height: auto; margin-bottom: 28px; border-radius: 20px; box-shadow: 0 18px 44px rgba(var(--brand-dark-rgb), .14); }
.actu-texte { font-size: 17px; line-height: 1.8; color: #3c4658; }
.actu-texte p { margin: 0 0 18px; }
.actu-texte h2 { margin: 34px 0 14px; font-family: "Raleway", sans-serif; font-weight: 800; font-size: clamp(21px, 2.4vw, 27px); color: var(--brand-ink); }
.actu-texte ul, .actu-texte ol { margin: 0 0 18px; padding-left: 22px; }
.actu-texte li { margin-bottom: 9px; }
.actu-texte a { color: var(--brand); text-decoration: underline; }
.actu-texte strong { color: var(--brand-ink); }
.actu-retour { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--brand-line); }
.actu-retour i { margin-right: 6px; }
.actu-autres { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--brand-line); }
.actu-autres .sec-head { margin-bottom: 28px; }
