/* ============================================================
   INDEX.CSS — Styles spécifiques à la page d'accueil
   style.css gère : header, footer, variables, hero, méthodologie,
   impact de base, es-agir-section.
   Ce fichier ajoute : services revus, accompagnement list,
   chiffres clés version accueil, carrousels, partenaires,
   section réseaux sociaux, et les nouvelles règles header/footer.
   ============================================================ */


/* ============================================================
   HEADER — NOUVELLES RÈGLES
   ============================================================ */

/* Barre de recherche déroulante */
.search-wrapper {
    position: relative;
}

.search-bar {
    display: none;
    position: absolute;
    top: 130%;
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--blue);
    padding: 12px 15px;
    z-index: 9999;
    animation: slideDownSearch 0.25s ease;
}

.search-bar.open {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes slideDownSearch {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

#search-input {
    flex: 1;
    border: 1.5px solid rgba(0, 69, 149, 0.15);
    border-radius: 3px;
    padding: 9px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--text-dark);
    outline: none;
}

#search-input:focus {
    border-color: var(--blue);
}

#search-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

#search-close:hover { color: var(--blue); }

.search-results {
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 5px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.search-result-item:hover { color: var(--blue); }
.search-result-item:last-child { border-bottom: none; }

.search-no-result {
    padding: 10px 5px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Menu burger — nav mobile */
@media (max-width: 900px) {
    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 8%;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 999;
    }

    #main-nav.active {
        display: flex;
    }

    #main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    #main-nav .dropdown-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        border-top: none;
        min-width: auto;
        display: none;
    }

    #main-nav .dropdown.open .dropdown-menu {
        display: block;
    }
}


/* ============================================================
   FOOTER — HUB TANGER + LIENS RÉSEAUX
   ============================================================ */
.footer-hubs {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-hub {
    flex: 1;
    min-width: 240px;
}

.footer-hub-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--yellow);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-hub-title i {
    color: var(--yellow);
    font-size: 0.6rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover { color: var(--yellow); }

.footer-email-row {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .footer-hubs { flex-direction: column; gap: 25px; }
}


/* ============================================================
   SECTION SERVICES — 3 colonnes + 1 pleine largeur
   ============================================================ */
.services-section {
    padding: 100px 8%;
    background: var(--white);
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px; height: 52px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--yellow);
    color: var(--text-dark);
}

.service-card h3 {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-btn {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s;
}

.service-btn:hover {
    background: var(--blue);
    color: var(--white);
}

/* ── 4ème carte pleine largeur ── */
.service-card-full {
    width: 100%;
    padding: 35px 40px;
}

.service-card-full-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.service-icon-large {
    width: 60px; height: 60px;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.service-card-full-text {
    flex: 1;
}

.service-card-full-text h3 {
    margin-bottom: 8px;
}

.service-card-full-text p {
    margin-bottom: 0;
}

.service-btn-outline {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card-full-inner { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   LISTE ACCOMPAGNEMENT (remplacement de la <ul> basique)
   ============================================================ */
.accompagnement-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 5px;
}

.accompagnement-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-radius: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 69, 149, 0.08);
    transition: all 0.3s ease;
    cursor: default;
}

.accompagnement-list li:hover {
    border-color: var(--yellow);
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 69, 149, 0.07);
}

/* Dernier élément pleine largeur */
.acc-item-full {
    grid-column: 1 / -1;
}

.acc-icon {
    width: 38px; height: 38px; min-width: 38px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    color: var(--blue);
    transition: all 0.3s ease;
}

.accompagnement-list li:hover .acc-icon {
    background: var(--yellow);
    color: var(--text-dark);
}

.acc-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.acc-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}

.acc-text span {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 650px) {
    .accompagnement-list { grid-template-columns: 1fr; }
}


/* ============================================================
   CHIFFRES CLÉS — version accueil (5 colonnes horizontales)
   ============================================================ */
.impact-container-home {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.impact-item-home {
    flex: 1;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.impact-item-home i {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 15px;
    opacity: 0.8;
}

.impact-item-home .num {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--yellow);
    margin: 5px 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.impact-item-home .impact-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--blue);
    margin-bottom: 6px;
}

.impact-item-home .impact-sub {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* 5ème item : couleurs inversées */
.impact-item-home.highlight-item i { color: var(--yellow); opacity: 1; }
.impact-item-home.highlight-item .num { color: var(--blue); }

@media (max-width: 900px) {
    .impact-container-home {
        flex-wrap: wrap;
        justify-content: center;
    }
    .impact-item-home { flex: unset; width: 45%; }
}

@media (max-width: 480px) {
    .impact-item-home { width: 100%; }
}


/* ============================================================
   CARROUSELS COMMUNS (événements + projets)
   ============================================================ */
.carousel-section {
    padding: 80px 8%;
    /* overflow stays on track-wrapper only */
}

.events-carousel-section { background: #f9fbfd; }
.projects-carousel-section { background: var(--white); }

.carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto 40px auto;
    flex-wrap: wrap;
    gap: 15px;
}

.carousel-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue);
    position: relative;
    display: inline-block;
}

.carousel-title::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--yellow);
    margin-top: 12px;
}

.carousel-see-all {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 3px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.carousel-see-all:hover {
    color: var(--yellow);
    border-bottom-color: var(--blue);
}

/* Viewport — arrows sit outside the clipping area */
.carousel-viewport {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ── Flèches ── */
.carousel-arrow {
    width: 46px; height: 46px; min-width: 46px;
    background: var(--white);
    border: 1.5px solid rgba(0, 69, 149, 0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--blue);
    transition: all 0.25s ease;
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    transform: scale(1.08);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ── Dots ── */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(0, 69, 149, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--blue);
    width: 24px;
    border-radius: 4px;
}


/* ── Cartes événements dans le carrousel ── */
.carousel-ev-card {
    width: 380px;
    min-width: 380px;
    height: 480px;
    /* reprend .page-ev-card de evenements-accordion.css */
    position: relative;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    flex-shrink: 0;
}

.carousel-ev-card .page-ev-image-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 60%;
    overflow: hidden;
}

.carousel-ev-card .page-ev-image-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-ev-card .page-ev-floating-box {
    position: relative;
    background: #fff;
    width: 92%;
    margin: 0 auto 16px auto;
    padding: 20px 18px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-ev-card .page-ev-floating-box h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #003399;
    line-height: 1.4;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.carousel-ev-card .page-ev-snippet {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-ev-card .page-ev-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.carousel-ev-card .page-ev-read-more {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f2547;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 2px;
    border-bottom: 2px solid #e0ab00;
}

.carousel-ev-card .page-ev-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    padding: 4px 10px;
    text-transform: uppercase;
    border-radius: 2px;
}

.carousel-ev-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 37, 71, 0.09);
}

.carousel-ev-card:hover .page-ev-image-wrapper img { transform: scale(1.06); }
.carousel-ev-card:hover .page-ev-floating-box { transform: translateY(-4px); }

/* Badge colors */
.badge-recrutement  { background-color: #e53e3e; }
.badge-accompagnement { background-color: #3182ce; }
.badge-formation    { background-color: #38a169; }
.badge-strategie    { background-color: #805ad5; }


/* ── Cartes projets dans le carrousel ── */
.carousel-proj-card {
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.carousel-proj-card .project-image {
    width: 100%;
    height: 260px;
}

.carousel-proj-card .project-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-proj-card:hover .project-image img { transform: scale(1.04); }

.carousel-proj-card .project-info-card {
    background: var(--white);
    padding: 25px;
    width: 90%;
    margin: -50px auto 0;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0,0,0,0.07);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.carousel-proj-card .project-info-card h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.carousel-proj-card .card-footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-proj-card .read-more-link {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 4px;
}

.carousel-proj-card .category-tag {
    background: #a7a7a7;
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.62rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .carousel-ev-card,
    .carousel-proj-card { width: 300px; min-width: 300px; }
    .carousel-section { padding: 60px 5%; }
}


/* ============================================================
   SECTION PARTENAIRES
   ============================================================ */
.partners-section {
    padding: 80px 8%;
    background: var(--bg-light);
}

.partners-track-wrapper {
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto 25px auto;
}

.partners-track {
    display: flex;
    gap: 25px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-logo-card {
    flex: 0 0 180px;
    min-width: 180px;
    background: var(--white);
    border-radius: 4px;
    border: 1px solid rgba(0, 69, 149, 0.08);
    padding: 25px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 69, 149, 0.1);
    border-color: var(--yellow);
}

.partner-logo-inner {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-inner img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(60%);
    transition: filter 0.3s ease;
}

.partner-logo-card:hover .partner-logo-inner img { filter: grayscale(0%); }

.partner-name-fallback {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.partner-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.partners-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}


/* ============================================================
   SECTION "AGIR AVEC ES MAROC" — Ajout bouton Lire la suite
   ============================================================ */
.es-lire-suite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 2px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.es-lire-suite:hover {
    color: var(--yellow);
    border-bottom-color: var(--blue);
}


/* ============================================================
   SECTION RÉSEAUX SOCIAUX
   ============================================================ */
.social-section {
    padding: 100px 8%;
    background: var(--white);
}

.social-section-header {
    max-width: 1400px;
    margin: 0 auto 50px auto;
}

.social-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.social-section-header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--yellow);
    margin-top: 12px;
}

.social-section-header p {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 18px;
}

.social-feeds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Carte réseau social ── */
.social-feed-card {
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid rgba(0, 69, 149, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.social-feed-card:hover {
    box-shadow: 0 12px 30px rgba(0, 69, 149, 0.1);
}

/* En-tête de la carte */
.social-feed-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 69, 149, 0.08);
}

.social-feed-top > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.social-feed-top strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue);
}

.social-feed-top span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.social-feed-icon {
    font-size: 1.6rem;
}

.fb-color  { color: #1877F2; }
.yt-color  { color: #FF0000; }
.ig-color  { color: #E1306C; }

/* Bouton Suivre / S'abonner */
.social-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.fb-btn { background: #1877F2; color: #fff; }
.fb-btn:hover { background: #1257b8; }
.yt-btn { background: #FF0000; color: #fff; }
.yt-btn:hover { background: #cc0000; }
.ig-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.ig-btn:hover { opacity: 0.88; }

/* Zone embed */
.social-feed-embed {
    flex: 1;
    background: #fff;
}

.social-feed-embed iframe {
    display: block;
    border: none;
}

/* Instagram placeholder (embed non disponible sans token API) */
.ig-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
}

.ig-grid { width: 100%; }

.ig-placeholder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 30px;
    text-align: center;
}

.ig-placeholder-item i {
    font-size: 3rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ig-placeholder-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.ig-open-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.25s;
}

.ig-open-btn:hover { opacity: 0.85; }

/* Lien "Voir la page" en bas */
.social-visit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--blue);
    text-decoration: none;
    background: var(--white);
    border-top: 1px solid rgba(0, 69, 149, 0.08);
    transition: all 0.25s ease;
}

.social-visit-link:hover {
    background: var(--blue);
    color: var(--white);
}

@media (max-width: 1024px) {
    .social-feeds-grid { grid-template-columns: 1fr; }
    .social-feed-card { max-width: 600px; margin: 0 auto; width: 100%; }
}

@media (max-width: 600px) {
    .social-section { padding: 60px 5%; }
}


/* ── Icône recherche : même rendu que les <a class="icon-link"> ── */
#search-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--blue);
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
#search-toggle:hover {
    color: var(--yellow);
    transform: scale(1.1);
}

/* ── CTA Hero : pas de soulignement ── */
.cta-yellow {
    text-decoration: none !important;
}


/* ============================================================
   WIDGET INTERACTIF AMPOULE + SCHÉMA BUSINESS PLAN
   Ampoule toujours visible à gauche, schéma à droite
   ============================================================ */
.bp-widget {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,69,149,0.07);
    border: 1px solid rgba(0,69,149,0.08);
}

/* ── Zone ampoule (côté gauche, toujours visible) ── */
.bp-bulb-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 160px;
    cursor: pointer;
    gap: 10px;
}

.bp-bulb-svg {
    width: 130px;
    height: 190px;
    filter: drop-shadow(0 4px 12px rgba(0,69,149,0.12));
    transition: filter 0.4s ease;
}

/* Filament */
.bp-filament { transition: stroke 0.4s ease; }
/* Verre */
.bp-glass    { transition: fill 0.5s ease, stroke 0.4s ease; }
/* Halo */
.bp-halo     { transition: opacity 0.5s ease; }
/* Rayons */
.bp-rays line {
    opacity: 0;
    transition: opacity 0.4s ease;
    transform-origin: 60px 60px;
}

/* ÉTAT ALLUMÉ au hover sur le widget entier */
.bp-widget:hover .bp-glass {
    fill: #fffde7;
    stroke: #f2bc00;
}
.bp-widget:hover .bp-filament {
    stroke: #f2bc00;
}
.bp-widget:hover .bp-halo {
    opacity: 0.2;
}
.bp-widget:hover .bp-rays line {
    opacity: 1;
}
.bp-widget:hover .bp-bulb-svg {
    filter: drop-shadow(0 0 22px rgba(242,188,0,0.55)) drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

.bp-hint {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    opacity: 0.6;
}

/* ── Schéma (côté droit, toujours visible) ── */
.bp-schema {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 1;
    pointer-events: auto;
    /* no transition needed — always shown */
}

/* Override: schema never hidden */
.bp-widget:hover .bp-schema { opacity: 1; }
.bp-widget:hover .bp-bulb-zone { opacity: 1; }

.bp-schema-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue);
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 6px;
    width: 100%;
}

/* ── Flow ligne 1 ── */
.bp-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Nœuds ── */
.bp-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.bp-node-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.bp-node:hover .bp-node-icon { transform: scale(1.12); }

.bp-node span {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.2;
}

.bp-node--idea   .bp-node-icon { background: #fff3cd; color: #d39e00; }
.bp-node--study  .bp-node-icon { background: #d4edff; color: var(--blue); }
.bp-node--bp     .bp-node-icon { background: #e8f4e8; color: #28a745; }
.bp-node--money  .bp-node-icon { background: #e8f4e8; color: #28a745; }
.bp-node--launch .bp-node-icon { background: #ffe8d0; color: #e06520; }

.bp-node--idea   span { color: #d39e00; }
.bp-node--study  span { color: var(--blue); }
.bp-node--bp     span { color: #28a745; }
.bp-node--money  span { color: #28a745; }
.bp-node--launch span { color: #e06520; }

/* ── Flèches ── */
.bp-arrow {
    color: rgba(0,69,149,0.25);
    font-size: 0.8rem;
}

/* ── Question + branches ── */
.bp-question { width: 100%; }

.bp-question-bubble {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f4f6fb;
    border: 1.5px solid rgba(0,69,149,0.12);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 10px;
}

.bp-branches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-branch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    flex-wrap: wrap;
}

.bp-branch-label {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    min-width: 32px;
    text-align: center;
}

.bp-branch-label.yes { background: #d4edda; color: #155724; }
.bp-branch-label.no  { background: #f8d7da; color: #721c24; }

.bp-branch i { color: rgba(0,69,149,0.3); font-size: 0.75rem; }

.bp-retry {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    font-style: italic;
}

/* ── Tag ESMaroc ── */
.bp-esmaroc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 3px;
}

/* ── Animations entrée des nœuds ── */
.bp-n1 { animation: bpNodeIn 0.5s ease 0.1s both; }
.bp-n2 { animation: bpNodeIn 0.5s ease 0.2s both; }
.bp-n3 { animation: bpNodeIn 0.5s ease 0.3s both; }
.bp-a1 { animation: bpNodeIn 0.5s ease 0.15s both; }
.bp-a2 { animation: bpNodeIn 0.5s ease 0.25s both; }
.bp-q1 { animation: bpNodeIn 0.6s ease 0.4s both; }

@keyframes bpNodeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile : stack vertical */
@media (max-width: 900px) {
    .bp-widget {
        flex-direction: column;
        align-items: center;
        padding: 24px 16px;
        gap: 20px;
    }
    .bp-bulb-zone { flex: unset; }
    .bp-schema { align-items: center; }
    .bp-flow { justify-content: center; }
}

/* ============================================================
   CARTES PROJETS — variante couleur (sans image externe)
   ============================================================ */
.proj-img-color {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.proj-img-color::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.proj-logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    z-index: 1;
}

.proj-partner-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.proj-excerpt {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 4px 0 10px;
}

/* Cartes projets cliquables */
.carousel-proj-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.carousel-proj-card:hover .project-info-card {
    box-shadow: 0 16px 35px rgba(0,69,149,0.12);
}


/* ============================================================
   FOOTER — BOUTON CONTACTEZ-NOUS
   ============================================================ */
.footer-contact-btn-wrap {
    margin-bottom: 20px;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yellow);
    color: #1a1a1a;
    text-decoration: none;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}


/* ============================================================
   BURGER MENU — fix visibilité bouton
   ============================================================ */
.burger-menu {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--blue);
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.burger-menu:hover { color: var(--yellow); }



/* ============================================================
   CARROUSEL — FIX COUPURE CARTES
   Les cartes se taillent sur la largeur disponible réelle
   au lieu d'une largeur fixe de 380px.
   ============================================================ */

/* Le wrapper du track définit sa largeur via CSS */
.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
    /* Clip uniquement ici, pas sur la section parente */
}

/* Les cartes événements s'adaptent au conteneur */
.carousel-ev-card {
    /* Calcul : (largeur dispo - 2 gaps) / 3 cartes visibles */
    width: calc((100%) / 3 - 22px) !important;
    min-width: 280px !important;
    flex-shrink: 0;
}

/* Les cartes projets idem */
.carousel-proj-card {
    width: calc((100%) / 3 - 22px) !important;
    min-width: 280px !important;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .carousel-ev-card,
    .carousel-proj-card {
        width: calc(50% - 16px) !important;
    }
}

@media (max-width: 700px) {
    .carousel-ev-card,
    .carousel-proj-card {
        width: calc(100% - 4px) !important;
    }
}

/* Assure que la section parente ne clip pas */
.carousel-section {
    overflow: visible !important;
    padding-left: 8%;
    padding-right: 8%;
}

/* Le viewport lui-même ne doit pas clipper les flèches */
.carousel-viewport {
    overflow: visible;
}


/* ============================================================
   SECTION MÉTHODOLOGIE — WIDGET STEPPER INTÉGRÉ
   Design dark blue/yellow cohérent avec la page projets
   ============================================================ */

/* La section methodology devient un fond dégradé immersif */
.methodology-section {
    padding: 100px 8%;
    background: linear-gradient(135deg, #04284f 0%, #0a3d6b 50%, #04284f 100%);
    position: relative;
    overflow: hidden;
}

/* Motif de fond discret (points) */
.methodology-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Adapter les textes sur fond sombre */
.methodology-section .content-wrapper {
    position: relative;
    z-index: 1;
}

.methodology-text h2 {
    color: #ffffff !important;
}

.methodology-text h2::after {
    background-color: var(--yellow) !important;
}

.methodology-text p {
    color: rgba(255,255,255,.72) !important;
}

.methodology-text h3 {
    color: rgba(255,255,255,.85) !important;
    font-size: 0.88rem;
    letter-spacing: 2px;
}

/* Liste accompagnement sur fond sombre */
.accompagnement-list li {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.1) !important;
}

.accompagnement-list li:hover {
    background: rgba(255,255,255,.12) !important;
    border-color: var(--yellow) !important;
    transform: translateX(4px);
}

.acc-icon {
    background: rgba(255,255,255,.1) !important;
    color: #fff !important;
}

.accompagnement-list li:hover .acc-icon {
    background: var(--yellow) !important;
    color: #04284f !important;
}

.acc-text strong { color: #ffffff !important; }
.acc-text span   { color: rgba(255,255,255,.6) !important; }


/* ── Wrapper du widget (remplace .methodology-image) ── */
.methodology-widget-wrap {
    flex: 0.9;
    display: flex;
    align-items: stretch;
}

.mw-inner {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3),
                inset 0 1px 0 rgba(255,255,255,.08);
}

/* ── Ampoule ── */
.mw-bulb {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding-top: 6px;
}

.mw-bulb-svg {
    width: 90px;
    height: 130px;
    transition: filter .4s ease;
}

.mw-rays { opacity: 0; transition: opacity .4s; }
.mw-glass    { transition: fill .4s, stroke .4s; }
.mw-filament { transition: stroke .4s; }
.mw-halo     { transition: opacity .4s; }

.mw-bulb-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    text-align: center;
}

/* Séparateur vertical */
.mw-inner::after {
    content: '';
    display: none; /* handled by flex gap */
}

/* ── Contenu step ── */
.mw-content {
    flex: 1;
    min-width: 0;
}

/* Dots */
.mw-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.mw-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    transition: background .3s, transform .3s, width .3s;
}

.mw-done   { background: var(--yellow); }
.mw-active { background: var(--yellow); transform: scale(1.4); width: 20px; border-radius: 4px; }

/* Eyebrow */
.mw-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 8px;
}

/* Titre step */
.mw-step-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -.3px;
}

.mw-step-title em {
    color: var(--yellow);
    font-style: normal;
}

/* Description */
.mw-step-desc {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
    margin-bottom: 18px;
}

/* Boutons */
.mw-btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.mw-btn-primary {
    background: var(--yellow);
    color: #04284f;
    border: none;
    border-radius: 5px;
    padding: 11px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.mw-btn-primary:hover { background: #ffd040; transform: translateY(-1px); }

.mw-btn-yes {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.mw-btn-yes:hover { background: #15803d; }

.mw-btn-no {
    background: rgba(239,68,68,.15);
    color: #fca5a5;
    border: 1.5px solid rgba(239,68,68,.35);
    border-radius: 5px;
    padding: 10px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}

.mw-btn-no:hover { background: rgba(239,68,68,.25); }

.mw-btn-back {
    background: transparent;
    color: rgba(255,255,255,.35);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 5px;
    padding: 9px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all .2s;
}

.mw-btn-back:hover { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.4); }

/* Tags résultat */
.mw-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.mw-tag-yes { background: rgba(22,163,74,.2);  color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.mw-tag-no  { background: rgba(239,68,68,.2);  color: #fca5a5; border: 1px solid rgba(252,165,165,.3); }

/* Boîte résultat */
.mw-result-box {
    border-radius: 7px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.mw-result-yes { background: rgba(22,163,74,.08);  border-left: 3px solid #4ade80; }
.mw-result-no  { background: rgba(239,68,68,.08);  border-left: 3px solid #f87171; }

.mw-result-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mw-result-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mw-result-list li {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 8px;
    /* reset card styles */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.mw-result-list li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

.mw-list-no li::before { background: #f87171; }

/* Animation entrée */
.mw-fadein {
    animation: mwFadeIn .35s ease both;
}

@keyframes mwFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column !important;
    }
    .methodology-widget-wrap {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .mw-inner {
        flex-direction: column;
        align-items: center;
        padding: 22px 18px;
    }
    .mw-bulb { flex: unset; }
    .mw-step-title { font-size: 18px; }
}


/* ── Burger retiré — masquer le bouton si présent en cache ── */
.burger-menu { display: none !important; }
