/* ============================================================
   ABOUT-RESPONSIVE.CSS  — fichier UNIFIÉ
   Remplace products-responsive.css + about-responsive.css
   pour la page about.html uniquement.
   Chargé EN DERNIER dans le <head>, après hero-styles.css,
   pour surcharger tous les conflits.
   ============================================================ */


/* ----------------------------------------------------------
   HAMBURGER — état de base (visible sur mobile seulement)
   Surcharge hero-styles.css qui fait display:none sans border
   ---------------------------------------------------------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 2px solid rgba(255, 133, 102, 0.25);
    border-radius: 10px;
    cursor: pointer;
    padding: 6px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
    background: rgba(255, 133, 102, 0.07);
    border-color: rgba(255, 133, 102, 0.5);
}

.nav-toggle span {
    display: block;
    border-radius: 4px;
    background: #1a1a1a;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.25s ease,
                width     0.3s ease;
    transform-origin: center;
}

.nav-toggle span:nth-child(1) { width: 20px; height: 2px; }
.nav-toggle span:nth-child(2) { width: 13px; height: 2px; align-self: flex-end; }
.nav-toggle span:nth-child(3) { width: 20px; height: 2px; }


/* ===========================================================
   MOBILE  (max-width: 768px)
   =========================================================== */
@media (max-width: 768px) {

    /* ── HAMBURGER visible ─────────────────────────────────── */
    .nav-toggle {
        display: flex !important;
    }

    .nav-toggle.active {
        background: rgba(255, 133, 102, 0.1);
        border-color: rgba(255, 133, 102, 0.6);
    }
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        width: 20px;
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        width: 20px;
    }

    /* ── MENU — surcharge hero-styles.css (left:-100%) ─────── */
    /* hero-styles.css utilise left:-100%, on garde cette logique
       mais on améliore le design */
    .nav-menu {
        position: fixed !important;
        top: 72px !important;
        left: -100% !important;
        right: auto !important;
        flex-direction: column !important;
        width: 100% !important;
        text-align: left !important;
        gap: 0 !important;
        z-index: 998 !important;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(18px) !important;
        -webkit-backdrop-filter: blur(18px) !important;
        border-top: 1px solid rgba(255, 133, 102, 0.15) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
        border-radius: 0 0 20px 20px !important;
        padding: 0.6rem 1.2rem 1.2rem !important;
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
        /* Annuler toute animation opacity/transform de hero-styles */
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    /* Items */
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        padding-top: 0.6rem;
    }

    .nav-menu .nav-link {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 0.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    /* Puce animée */
    .nav-menu .nav-link::before {
        content: '';
        flex-shrink: 0;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: linear-gradient(135deg, #FF8566, #FF6B4D);
        opacity: 0;
        transform: scale(0);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-menu .nav-link:hover::before,
    .nav-menu .nav-link.active::before {
        opacity: 1;
        transform: scale(1);
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #FF8566;
        padding-left: 0.4rem;
    }

    /* Annuler le soulignement desktop */
    .nav-menu .nav-link::after {
        display: none !important;
    }

    /* Bouton CTA */
    .nav-menu .btn-nav {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(255, 133, 102, 0.35);
    }


    /* ── FOOTER — 1 colonne ────────────────────────────────── */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }


    /* ── HERO ──────────────────────────────────────────────── */
    .page-hero {
        padding-top: 80px !important;
        min-height: 45vh !important;
    }

    .page-hero .title-highlight {
        font-size: 2rem !important;
        letter-spacing: -1px !important;
    }

    .page-hero .page-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }


    /* ── ABOUT INTRO ───────────────────────────────────────── */
    .about-intro {
        padding: 3.5rem 0 !important;
    }

    .about-intro-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Image en premier sur mobile */
    .about-image-wrapper {
        order: -1;
    }

    .about-image-wrapper img {
        height: 260px !important;
    }

    .about-text-content h2 {
        font-size: 1.8rem !important;
    }

    .vision-box {
        padding: 1.8rem !important;
    }

    .vision-box h3 {
        font-size: 1.2rem !important;
    }


    /* ── STATS ─────────────────────────────────────────────── */
    .stats-section {
        padding: 3rem 0 !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
    }

    .stat-card {
        padding: 1.8rem 1rem !important;
    }

    /* Surcharge le .stat-icon de hero-styles (55px) */
    .stats-section .stat-icon {
        width: 55px !important;
        height: 55px !important;
    }

    .stats-section .stat-icon i {
        font-size: 1.5rem !important;
    }

    .stats-section .stat-number {
        font-size: 2.2rem !important;
        color: #1A4D4D !important;
        /* annuler le dégradé blanc de hero-styles */
        -webkit-text-fill-color: #1A4D4D !important;
        background: none !important;
    }


    /* ── MISSION ───────────────────────────────────────────── */
    .mission-section {
        padding: 3.5rem 0 !important;
    }

    .mission-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .mission-card {
        padding: 2rem 1.5rem !important;
    }

    .mission-image {
        height: 150px !important;
    }


    /* ── SECTION HEADERS ───────────────────────────────────── */
    .section-header {
        margin-bottom: 2.5rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .section-description {
        font-size: 0.95rem !important;
    }


    /* ── LOCATION / PAYS ───────────────────────────────────── */
    .location-section {
        padding: 3.5rem 0 !important;
    }

    /* Surcharge hero-styles.css qui met repeat(1fr) sur mobile */
    .countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem !important;
        margin-top: 2rem !important;
    }

    .country-card {
        padding: 1.5rem 1rem !important;
    }

    .flag-icon {
        font-size: 38px !important;
    }

    .country-card h3 {
        font-size: 1rem !important;
    }

    .country-card p {
        font-size: 0.82rem !important;
    }


    /* ── QUALITY SECTION (CTA) ─────────────────────────────── */
    .quality-section {
        padding: 3.5rem 0 !important;
    }

    .quality-content h2 {
        font-size: 1.8rem !important;
    }

    .quality-content p {
        font-size: 1rem !important;
    }

    .cert-badges {
        gap: 0.8rem !important;
    }

    .cert-badge {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}


/* ===========================================================
   TABLETTE  (769px – 1024px)
   =========================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    .about-intro-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .about-image-wrapper img {
        height: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .countries-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}


/* ===========================================================
   TRÈS PETIT ÉCRAN  (max-width: 480px)
   =========================================================== */
@media (max-width: 480px) {

    .container {
        padding: 0 1rem !important;
    }

    .page-hero .title-highlight {
        font-size: 1.6rem !important;
    }

    .about-image-wrapper img {
        height: 220px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .stat-card {
        padding: 1.5rem 0.8rem !important;
    }

    .stats-section .stat-number {
        font-size: 1.8rem !important;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .country-card {
        padding: 1.2rem 0.8rem !important;
    }

    .flag-icon {
        font-size: 32px !important;
    }

    .quality-content h2 {
        font-size: 1.4rem !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .vision-box {
        padding: 1.4rem !important;
    }

    .mission-card {
        padding: 1.5rem 1rem !important;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
}
