/* =============================================================
   home.css — Styles spécifiques à la homepage (landing page)
   ============================================================= */

/* =========================================================
   Variables bridge
   ========================================================= */
:root,
[data-theme="light"],
[data-theme="dark"] {
    --color-background-primary: var(--bg-primary);
    --color-background-secondary: var(--bg-secondary);
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-tertiary: var(--text-tertiary);
    --color-border-secondary: var(--border-light);
    --color-border-tertiary: var(--border-color);
    --pink: #f51462;
    --pink-dark: #c8004e;
}

a { text-decoration: none; color: inherit; }

/* Scroll fluide pour les ancres */
html { scroll-behavior: smooth; }

/* =========================================================
   Header nav v2
   ========================================================= */
.header-nav {
    display: flex;
    gap: 1.75rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}
.header-nav a:hover { color: var(--pink); }
@media (max-width: 767px) { .header-nav { display: none; } }

/* Liens nav dans le menu mobile */
.mobile-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--pink); }

/* =========================================================
   Hero v2 — landing page, 2 colonnes
   ========================================================= */
.hero-v2 {
    background: var(--color-background-secondary);
    /* padding-top = header height (~72px) + espace respiratoire (48px) */
    padding: calc(72px + 3rem) 2rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero-v2::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: rgba(245, 20, 98, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 800px) {
    .hero-v2 { padding: calc(72px + 1.5rem) 1.25rem 3rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { order: -1; aspect-ratio: 16/9; }
    .hero-content { text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-ctas-v2 { justify-content: center; }
    .hero-arabic { text-align: right; }
}

.hero-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 20, 98, 0.1);
    color: var(--pink);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(245, 20, 98, 0.25);
}
.hero-badge-v2 .dot {
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-v2 h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}
.hero-v2 h1 em { color: var(--pink); font-style: normal; }

/* Texte arabe : taille augmentée de 2 points (0.9rem → ~1.05rem ≈ +2.67px) */
.hero-arabic {
    font-size: 1.05rem;
    color: var(--color-text-tertiary);
    margin-bottom: 1rem;
    direction: rtl;
    background: rgba(245, 20, 98, 0.06);
    border-right: 3px solid var(--pink);
    padding: 0.4rem 0.75rem;
    border-radius: 0 6px 6px 0;
    display: inline-block;
}

.hero-sub-v2 {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 60ch;
    line-height: 1.7;
}

.hero-ctas-v2 {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    align-items: center;
}

.btn-primary-v2 {
    background: var(--pink);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.btn-primary-v2:hover { background: var(--pink-dark); color: #fff; }

.btn-tel-v2 {
    color: var(--color-text-secondary);
    font-size: 0.925rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}
.btn-tel-v2:hover { color: var(--pink); }
.btn-tel-v2 svg { flex-shrink: 0; }

.btn-secondary-v2 {
    background: var(--color-background-primary);
    color: var(--color-text-primary);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1.5px solid var(--color-border-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s, color 0.2s;
}
.btn-secondary-v2:hover { border-color: var(--pink); color: var(--pink); }

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 0.5px solid var(--color-border-tertiary);
    padding-top: 1.75rem;
}
.hero-stat .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pink);
    line-height: 1;
}
.hero-stat .label {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: 0.2rem;
}

/* =========================================================
   Trust bar — Qualiopi + réassurance
   ========================================================= */
.trust-bar {
    background: var(--color-background-primary);
    border-top: 0.5px solid var(--color-border-tertiary);
    border-bottom: 0.5px solid var(--color-border-tertiary);
    padding: 1.5rem 2rem;
}
.trust-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Bloc Qualiopi — toujours avec la mention légale complète */
.trust-qualiopi-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}
.trust-qualiopi-img { height: 80px; }
.trust-qualiopi-mention {
    font-size: 0.65rem;
    color: var(--color-text-tertiary);
    max-width: 220px;
    line-height: 1.4;
    font-style: italic;
}

.trust-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; color: var(--pink); }
.trust-item strong { color: var(--color-text-primary); font-weight: 700; }

.trust-divider {
    width: 1px;
    height: 28px;
    background: var(--color-border-tertiary);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .trust-bar { padding: 1.25rem; }
    .trust-bar-inner { gap: 1rem; justify-content: center; flex-direction: column; align-items: center; }
    .trust-qualiopi-block { align-items: center; }
    .trust-qualiopi-mention { text-align: center; max-width: 280px; }
    .trust-stats { justify-content: center; }
    .trust-divider { display: none; }
    .trust-item { font-size: 0.8rem; }
}

/* =========================================================
   Section helpers
   ========================================================= */
.section-label-v2 {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pink);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.section-title-v2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}
.section-sub-v2 {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =========================================================
   Nos formations — 3 programmes
   ========================================================= */
.formations-section {
    padding: 5rem 2rem;
    background: var(--color-background-primary);
}
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.formation-card {
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    background: var(--color-background-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
}
.formation-card:hover {
    border-color: var(--pink);
    box-shadow: 0 4px 24px rgba(245, 20, 98, 0.08);
}
.formation-icon {
    width: 52px;
    height: 52px;
    background: rgba(245, 20, 98, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--pink);
}
.formation-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}
.formation-tag {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.formation-tag span {
    background: rgba(245, 20, 98, 0.08);
    color: var(--pink);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
}
.formation-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}
.formation-use {
    padding-top: 1rem;
    border-top: 0.5px solid var(--color-border-tertiary);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.formation-use-check { color: var(--pink); font-weight: 700; }

.formation-link-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--pink);
    font-weight: 600;
    margin-top: 0.75rem;
}

.formations-cta { text-align: center; margin-top: 2.5rem; }

/* =========================================================
   Steps section — timeline verticale
   ========================================================= */
.steps-v2 {
    padding: 5rem 2rem;
    background: var(--color-background-secondary);
}
.steps-timeline {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}
.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    padding-bottom: 0;
}
/* Ligne verticale entre chaque étape */
.step-item:not(:last-child) {
    padding-bottom: 2.5rem;
}
.step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 23px; /* centre du cercle de 48px */
    top: 48px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(245, 20, 98, 0.4), rgba(245, 20, 98, 0.04));
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 20, 98, 0.3);
}
.step-body {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    flex: 1;
    margin-top: 0;
    transition: border-color 0.2s;
}
.step-body:hover { border-color: var(--pink); }
.step-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}
.step-body p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   Testimonials v2 — vraies photos
   ========================================================= */
.testimonials-v2 {
    padding: 5rem 2rem;
    background: var(--color-background-primary);
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.testi-card {
    background: var(--color-background-primary);
    border-radius: 16px;
    padding: 1.75rem;
    border: 0.5px solid var(--color-border-tertiary);
    transition: box-shadow 0.2s;
}
.testi-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.testi-card blockquote {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
    font-style: italic;
}
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}
[data-theme="dark"] .result-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.avatar-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-border-tertiary);
}
.author-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-text-primary);
}
.author-sub {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
}

/* =========================================================
   CTA section
   ========================================================= */
.cta-v2 {
    padding: 5rem 2rem;
    background: var(--pink);
    text-align: center;
    color: #fff;
}
.cta-v2 h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}
.cta-v2 p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 50ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.btn-white {
    background: #fff;
    color: var(--pink);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.4rem;
    transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.92; color: var(--pink); }
.btn-outline-white {
    background: transparent;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.4rem;
    transition: border-color 0.2s;
}
.btn-outline-white:hover { border-color: #fff; color: #fff; }
.cta-addr {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   Nous trouver — carte + contact
   ========================================================= */
.apropos-section {
    padding: 5rem 2rem;
    background: var(--color-background-secondary);
    border-top: 0.5px solid var(--color-border-tertiary);
}
.apropos-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}
/* Mobile : carte en haut, infos en dessous */
@media (max-width: 800px) {
    .apropos-section { padding: 3.5rem 1.25rem; }
    .apropos-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .apropos-map-wrap { order: -1; }
    .apropos-contact .section-label-v2 { text-align: center !important; }
    .apropos-title { text-align: center; }
    .btn-itineraire { width: 100%; justify-content: center; }
}

.apropos-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

/* Liste des infos de contact */
.apropos-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.apropos-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.apropos-icon {
    width: 40px;
    height: 40px;
    background: rgba(245, 20, 98, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    flex-shrink: 0;
}
.apropos-icon-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}
.apropos-item-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
    margin-bottom: 0.2rem;
}
.apropos-item-value {
    font-size: 0.925rem;
    color: var(--color-text-primary);
    line-height: 1.5;
}
.apropos-link {
    color: var(--pink);
    font-weight: 600;
    transition: opacity 0.2s;
}
.apropos-link:hover { opacity: 0.75; }

/* Bouton itinéraire */
.btn-itineraire {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--pink);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-itineraire:hover { background: var(--pink-dark); color: #fff; }

/* Carte Leaflet */
.apropos-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 0.5px solid var(--color-border-tertiary);
}
#map-leaflet {
    height: 350px;
    width: 100%;
    display: block;
}
/* Popup Leaflet — harmonisation avec la charte */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.875rem !important;
}

/* =========================================================
   Footer — 3 colonnes
   ========================================================= */
.footer-v2 {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.875rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
}
@media (max-width: 767px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.25rem 2rem;
    }
}

/* Colonne 1 */
.footer-logo-img {
    height: 36px;
    margin-bottom: 0.85rem;
    display: block;
}
.footer-tagline {
    font-size: 0.825rem;
    color: var(--footer-text);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 26ch;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.825rem;
    color: var(--footer-text);
    line-height: 1.4;
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; color: #666; }
.footer-contact a { color: var(--footer-text); transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }

/* Colonnes 2 & 3 */
.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a {
    color: var(--footer-text);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* Barre de copyright */
.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: #555;
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
