/* =============================================
   ZAINBROKER.CH — Style principal
   Modifiez les variables :root pour changer
   les couleurs globales du site.
   ============================================= */

:root {
    /* Couleurs du logo Zaïn */
    --bleu-marine:  #1B3A4B;
    --vert-sauge:   #8FA888;

    /* Couleurs principales - basées sur le logo */
    --vert:         var(--vert-sauge);
    --vert-fonce:   #6B8364;
    --vert-clair:   #EDF2EC;
    --vert-moyen:   #C5D4C3;
    --noir:         #111827;
    --gris-fonce:   #374151;
    --gris-moyen:   #6B7280;
    --gris-clair:   #F9FAFB;
    --gris-border:  #E5E7EB;
    --blanc:        #FFFFFF;
}

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--blanc);
    color: var(--noir);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* ---- LANGUE ---- */
.lang-en               { display: none; }
body.is-en .lang-en    { display: inline; }
body.is-en .lang-fr    { display: none; }
.block-en              { display: none; }
body.is-en .block-en   { display: block; }
body.is-en .block-fr   { display: none; }

/* ---- TYPOGRAPHIE ---- */
h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--noir);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--vert);
    margin-bottom: 0.8rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--gris-moyen);
    max-width: 620px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

section {
    padding: 6rem 0;
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container, .nav-inner, .stats-grid, .testimonials-grid,
.pourquoi-grid, .offre-grid, .avantages-grid, .certif-inner,
.simulation-inner, .about-inner, .guide-inner, .footer-grid,
.footer-bottom {
    max-width: 100%;
}

/* ---- BOUTONS ---- */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--vert);
    color: var(--blanc);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
    background: var(--vert-fonce);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,176,138,0.3);
}

.btn-outline {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--noir);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gris-border);
    border-radius: 6px;
    transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    border-color: var(--vert);
    color: var(--vert);
}

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gris-border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gris-fonce);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--vert); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--gris-border);
    border-radius: 30px;
    padding: 0.3rem 0.85rem;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.3s;
}

.lang-toggle:hover { border-color: var(--vert); }

.lang-toggle span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gris-moyen);
    transition: color 0.3s;
}

.lang-toggle span.active { color: var(--vert); }

.btn-rdv {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--vert);
    color: var(--blanc);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-rdv:hover { background: var(--vert-fonce); }

/* lien RDV dans le menu mobile */
.nav-rdv-mobile {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--vert);
    color: var(--blanc) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-rdv-mobile:hover { background: var(--vert-fonce) !important; color: var(--blanc) !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--vert);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ---- HERO ---- */
.hero {
    margin-top: 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem 2.5rem 4rem;
    gap: 4rem;
    min-height: calc(100vh - 72px);
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--noir);
}

.hero-text h1 em {
    font-style: normal;
    color: var(--vert);
}

.hero-subtitle {
    font-size: 0.88rem;
    color: var(--gris-fonce);
    margin-bottom: 1.2rem;
    margin-top: 0.8rem;
    max-width: 600px;
    line-height: 1.7;
    font-weight: 500;
}

.hero-text > p {
    font-size: 1rem;
    color: var(--gris-moyen);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gris-fonce);
}

.badge-item i { color: var(--vert); font-size: 1rem; }

.hero-visual { position: relative; }

.hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.hero-img-wrap > img {
    width: 100%;
    height: 540px;
    object-fit: cover;
    display: block;
}

.sakina-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--gris-border);
    border-radius: 10px;
    padding: 0.8rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: calc(100% - 3rem);
}

.sakina-badge img {
    height: 26px !important;
    width: auto !important;
    max-width: 75px !important;
    object-fit: contain !important;
    flex-shrink: 0;
}

.sakina-badge span {
    font-size: 0.7rem;
    color: var(--gris-moyen);
    line-height: 1.4;
    white-space: nowrap;
}

/* ---- STATS ---- */
.stats-section {
    background: var(--blanc);
    border-top: 1px solid var(--gris-border);
    border-bottom: 1px solid var(--gris-border);
    padding: 4rem 2.5rem;
}

.stats-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { padding: 1.5rem; }

.stat-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--vert);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gris-moyen);
    max-width: 180px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ---- TEMOIGNAGES ---- */
.testimonials-section { background: var(--blanc); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--gris-clair);
    border: 1px solid var(--gris-border);
    border-radius: 12px;
    padding: 2rem;
}

.quote-mark {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    color: var(--vert);
    opacity: 0.35;
    line-height: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--gris-fonce);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vert-fonce);
    letter-spacing: 0.04em;
}

/* ---- POURQUOI ---- */
.pourquoi-section { background: var(--gris-clair); }

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pourquoi-card {
    background: var(--blanc);
    border: 1px solid var(--gris-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.pourquoi-card:hover {
    border-color: var(--vert-moyen);
    box-shadow: 0 4px 20px rgba(59,176,138,0.1);
}

.pourquoi-icon {
    width: 46px;
    height: 46px;
    background: var(--vert-clair);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.pourquoi-icon i { color: var(--vert); font-size: 1.1rem; }

.pourquoi-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 0.8rem;
}

.pourquoi-card p {
    font-size: 0.88rem;
    color: var(--gris-moyen);
    line-height: 1.8;
}

/* ---- POUR VOUS ---- */
.pour-vous-section { background: var(--blanc); }

.pour-vous-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.checklist { list-style: none; }

.checklist li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    color: var(--gris-fonce);
    line-height: 1.7;
}

.checklist li i {
    color: var(--vert);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.disclaimer-box {
    margin-top: 2rem;
    padding: 1rem 1.3rem;
    border-left: 3px solid var(--vert);
    background: var(--vert-clair);
    border-radius: 0 8px 8px 0;
    font-size: 0.78rem;
    color: var(--gris-moyen);
    line-height: 1.7;
}

.pour-vous-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

/* ---- OFFRE ---- */
.offre-section { background: var(--gris-clair); }

.offre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.offre-card {
    background: var(--blanc);
    border: 1px solid var(--gris-border);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.3s;
}

.offre-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.offre-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--vert-moyen);
    line-height: 1;
    margin-bottom: 1rem;
}

.offre-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vert-fonce);
    margin-bottom: 0.7rem;
}

.offre-card p {
    font-size: 0.87rem;
    color: var(--gris-moyen);
    line-height: 1.8;
}

/* ---- AVANTAGES ---- */
.avantages-section { background: var(--blanc); }

.avantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.avantage-card {
    background: var(--gris-clair);
    border: 1px solid var(--gris-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.avantage-icon {
    width: 50px;
    height: 50px;
    background: var(--vert-clair);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avantage-icon i { color: var(--vert); font-size: 1.2rem; }

.avantage-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 0.5rem;
}

.avantage-card p {
    font-size: 0.87rem;
    color: var(--gris-moyen);
    line-height: 1.8;
}

/* ---- CERTIFICATION ---- */
.certif-section {
    background: var(--bleu-marine);
    padding: 4rem 0;
}

.certif-section .section-label {
    color: var(--vert);
}

.certif-section h2 {
    color: var(--blanc);
}

.certif-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.certif-img {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.certif-img > img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--gris-border);
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.certif-img > img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 64px rgba(0,0,0,0.18);
}

.sakina-badge--below {
    position: static;
    margin-top: 1rem;
    display: inline-flex;
}

.certif-text {
    width: 100%;
}

.certif-text p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.certif-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    justify-content: center;
}

.certif-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--vert);
    border: 1px solid var(--vert);
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--blanc);
}

.certif-badge i { font-size: 0.75rem; color: var(--blanc); }

.certif-num {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.certif-num strong { color: var(--vert); }

/* ---- SIMULATION ---- */
.simulation-section { background: var(--blanc); }

.simulation-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.form-card {
    background: var(--blanc);
    border: 1px solid var(--gris-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gris-fonce);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gris-clair);
    border: 1px solid var(--gris-border);
    border-radius: 8px;
    color: var(--noir);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.87rem;
    transition: border-color 0.3s, background 0.3s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--vert);
    background: var(--blanc);
    box-shadow: 0 0 0 3px rgba(59,176,138,0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.btn-form {
    width: 100%;
    padding: 1rem;
    background: var(--vert);
    color: var(--blanc);
    border: none;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 0.5rem;
}

.btn-form:hover {
    background: var(--vert-fonce);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,176,138,0.3);
}

.form-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--gris-border);
    font-size: 0.74rem;
    color: var(--gris-moyen);
    line-height: 1.7;
}

.form-disclaimer strong { color: var(--gris-fonce); }

.form-msg {
    display: none;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
}

.form-msg.success {
    display: block;
    background: var(--vert-clair);
    border: 1px solid var(--vert-moyen);
    color: var(--vert-fonce);
}

.form-msg.error {
    display: block;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #DC2626;
}

/* ---- FAQ ---- */
.faq-section { background: var(--gris-clair); }

.faq-list { max-width: 860px; }

.faq-item { border-bottom: 1px solid var(--gris-border); }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    cursor: pointer;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--noir);
    gap: 1rem;
    transition: color 0.3s;
    user-select: none;
}

.faq-q:hover { color: var(--vert); }

.faq-q i {
    color: var(--vert);
    font-size: 0.82rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--vert); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 600px; }

.faq-a-inner {
    padding: 0 0 1.5rem;
    font-size: 0.88rem;
    color: var(--gris-moyen);
    line-height: 1.9;
}

/* ---- ABOUT ---- */
.about-section { background: var(--blanc); }

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.about-content p {
    font-size: 0.92rem;
    color: var(--gris-moyen);
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.about-partner {
    margin-top: 2rem;
    padding: 1rem 1.4rem;
    background: var(--vert-clair);
    border: 1px solid var(--vert-moyen);
    border-radius: 8px;
    font-size: 0.84rem;
    color: var(--gris-moyen);
}

.about-partner a {
    color: var(--vert-fonce);
    text-decoration: none;
    font-weight: 600;
}

.about-partner a:hover { text-decoration: underline; }

/* ---- GUIDE ---- */
.guide-section { background: var(--gris-clair); }

.guide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.guide-quote {
    font-size: 0.95rem;
    color: var(--gris-moyen);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--vert-moyen);
}

.guide-list { list-style: none; margin-bottom: 2rem; }

.guide-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: var(--gris-moyen);
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.guide-list li i { color: var(--vert); margin-top: 0.25rem; flex-shrink: 0; }

.guide-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--noir);
    margin-bottom: 1.5rem;
}

/* ---- CTA ---- */
.cta-section {
    background: var(--vert);
    padding: 6rem 2.5rem;
    text-align: center;
}

.cta-section h2 { color: var(--blanc); }

.cta-section p {
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin: 1rem auto 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
}

.cta-section .btn-primary {
    background: var(--blanc);
    color: var(--vert-fonce);
}

.cta-section .btn-primary:hover {
    background: var(--vert-clair);
    color: var(--vert-fonce);
}

/* ---- FOOTER ---- */
footer {
    background: var(--blanc);
    border-top: 1px solid var(--gris-border);
    padding: 4rem 2.5rem 2rem;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand-logo {
    height: 44px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.84rem;
    color: var(--gris-moyen);
    line-height: 1.8;
    max-width: 240px;
}

.ssl-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.78rem;
    color: var(--gris-moyen);
}

.ssl-badge i { color: var(--vert); }

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vert);
    margin-bottom: 1.2rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    font-size: 0.84rem;
    color: var(--gris-moyen);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--vert); }

.footer-contact { list-style: none; }
.footer-contact li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--gris-moyen);
    margin-bottom: 0.65rem;
    line-height: 1.5;
}
.footer-contact li i { color: var(--vert); margin-top: 0.2rem; flex-shrink: 0; font-size: 0.85rem; }
.footer-contact a { color: var(--gris-moyen); text-decoration: none; transition: color 0.3s; }
.footer-contact a:hover { color: var(--vert); }

.footer-certif img {
    height: 36px;
    width: auto;
    max-width: 100%;
    opacity: 0.7;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gris-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.76rem;
    color: var(--gris-moyen);
}

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
    font-size: 0.76rem;
    color: var(--gris-moyen);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-legal a:hover { color: var(--vert); }

/* ---- ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 72%;
        height: 100vh;
        background: var(--blanc);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        border-left: 1px solid var(--gris-border);
        box-shadow: -4px 0 20px rgba(0,0,0,0.08);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
        align-items: flex-start;
        overflow-y: auto;
    }

    .nav-links.open { right: 0; }
    .nav-links li { margin-bottom: 1.6rem; width: 100%; }
    .nav-links a { font-size: 1rem; }

    /* cacher btn-rdv dans la nav sur mobile, il est dans le menu */
    .btn-rdv { display: none !important; }
.nav-rdv-mobile { display: inline-block; }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        padding-top: 3rem;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-img-wrap > img { height: 340px; }

    /* badge sakina reste en overlay, juste plus petit */
    .sakina-badge {
        padding: 0.7rem 1rem;
        gap: 0.7rem;
        bottom: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }

    .sakina-badge img { height: 26px; max-width: 90px; }
    .sakina-badge span { font-size: 0.75rem; line-height: 1.4; }

    .pour-vous-grid,
    .certif-inner,
    .simulation-inner,
    .about-inner,
    .guide-inner { grid-template-columns: 1fr; gap: 3rem; }

    .pourquoi-grid,
    .offre-grid { grid-template-columns: 1fr 1fr; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .avantages-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    h2 { font-size: 2.2rem; }

    /* certif image plus haute pour ne pas être écrasée */
    .certif-img img { max-width: 480px; }
}

@media (max-width: 640px) {
    section { padding: 3.5rem 0; }
    .container { padding: 0 1.2rem; }

    /* hero */
    .hero { padding: 2rem 1.2rem 3rem; gap: 2rem; }
    .hero-text h1 { font-size: 1.75rem; line-height: 1.2; }
    .hero-text > p { font-size: 0.92rem; }
    .hero-btns { flex-direction: column; gap: 0.8rem; }
    .hero-btns .btn-primary,
    .hero-btns .btn-outline { width: 100%; text-align: center; }
    .hero-badges { gap: 1rem; flex-direction: column; }
    .hero-img-wrap > img { height: 260px; }

    /* badge sakina reste en overlay, encore plus petit */
    .sakina-badge {
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
        bottom: 0.8rem;
        left: 0.8rem;
        max-width: calc(100% - 1.6rem);
    }

    .sakina-badge img { height: 22px; max-width: 75px; }
    .sakina-badge span { font-size: 0.68rem; line-height: 1.35; }

    /* typo */
    h2 { font-size: 1.75rem; }
    .section-label { font-size: 0.68rem; }
    .section-sub { font-size: 0.9rem; }

    /* nav */
    .nav-inner { padding: 0 1.2rem; }
    .nav-logo img { height: 34px; }

    /* stats */
    .stats-section { padding: 2.5rem 1.2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stat-num { font-size: 3rem; }

    /* grids → 1 col */
    .pourquoi-grid,
    .offre-grid,
    .footer-grid { grid-template-columns: 1fr; }

    /* cards padding réduit */
    .pourquoi-card,
    .offre-card,
    .avantage-card { padding: 1.5rem; }
    .testimonial-card { padding: 1.5rem; }
    .avantage-card { flex-direction: column; gap: 1rem; }

    /* formulaires */
    .form-card { padding: 1.5rem 1.2rem; }
    .form-row { grid-template-columns: 1fr; }

    /* pour vous image cachée sur très petit écran */
    .pour-vous-img { display: none; }

    /* guide form */
    .guide-inner { gap: 2rem; }

    /* about image */
    .about-img img { height: 280px; }

    /* footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand-logo { height: 38px; }
    .footer-brand p { max-width: 100%; }
    .footer-certif img { height: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
    .footer-legal { flex-wrap: wrap; gap: 1rem; }

    /* cta */
    .cta-section { padding: 4rem 1.2rem; }
    .cta-section p { font-size: 0.9rem; }

    /* checklist */
    .checklist li { font-size: 0.85rem; }

    /* certif badges wrap */
    .certif-badges { gap: 0.5rem; }
    .certif-badge { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
}

@media (max-width: 400px) {
    .hero-text h1 { font-size: 1.5rem; }
    .hero-img-wrap > img { height: 220px; }
    .form-card { padding: 1.2rem 1rem; }
    h2 { font-size: 1.55rem; }

    /* sakina badge repositionné en dessous de l'image pour petits écrans */
    .hero-visual {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .sakina-badge {
        position: static;
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .sakina-badge img {
        height: 22px;
        max-width: 70px;
    }

    .sakina-badge span {
        font-size: 0.65rem;
        line-height: 1.3;
    }
}