/* File Name: responsify.css */

/* --- TABLETS & SMALL LAPTOPS (Max 1199px) --- */
@media (max-width: 1199px) {
    .display-huge { font-size: 3rem; }
    .hero-content h1 { font-size: 4rem; }
}

/* --- TABLETS PORTRAIT (Max 991px) --- */
@media (max-width: 991px) {
    
    /* MODIFICATION ICI : 
       J'ai ajouté ":not(.navbar-flytop .navbar-collapse)" pour que ce style de 
       "boîte blanche déroulante" ne s'applique PAS à ton header Flytop.
    */
    .navbar-collapse:not(.navbar-flytop .navbar-collapse) {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: var(--radius-l);
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* MODIFICATION ICI :
       Idem, on n'applique pas les bordures et les gros paddings verticaux 
       aux liens du header Flytop.
    */
    .navbar-nav:not(.navbar-flytop .navbar-nav) .nav-link {
        padding: 12px 0; 
        font-size: 1.1rem; 
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Process Connector Removal */
    .process-step::after { display: none; }
    .process-step { margin-bottom: 30px; }

    .hero-section { height: 70vh; }
}

/* --- MOBILE LANDSCAPE & LARGE PHONES (Max 768px) --- */
@media (max-width: 768px) {
    .display-huge { font-size: 2.2rem; letter-spacing: -1px; }
    .hero-content h1 { font-size: 2.8rem; padding: 0 15px; }
    .lead { font-size: 1.1rem !important; }

    .hero-section {
        height: auto; min-height: 85vh; padding: 120px 0 60px;
        border-radius: 0 0 20px 20px;
    }
    
    .contact-section { padding: 30px 20px; margin-top: 20px; }
    .btn-apple { width: 100%; text-align: center; }
}

/* --- SMALL MOBILES (Max 576px) --- */
@media (max-width: 576px) {
    .bento-card { padding: 25px; min-height: auto !important; }
    .bento-card h3 { font-size: 1.5rem; }
    .navbar-brand { font-size: 1.2rem; }
    section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* ==========================================================================
   SÉCURITÉ SUPPLÉMENTAIRE POUR LE HEADER FLYTOP
   Ce bloc s'assure que le menu reste horizontal même si d'autres fichiers CSS
   tentent de forcer le burger.
   ========================================================================== */
.navbar-flytop .navbar-collapse {
    display: flex !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar-flytop .navbar-nav {
    flex-direction: row !important; /* Force l'alignement horizontal */
}

/* Cache le burger s'il est généré par un autre script */
.navbar-flytop .navbar-toggler {
    display: none !important;
}

/* ==========================================================================
   SOUS-PAGES — Espacement vertical resserré des blocs de clôture sur mobile
   (« Nos autres prestations » → FAQ → « Un projet en tête ? »).
   Classes dédiées : n'affecte pas la page d'accueil.
   ========================================================================== */
@media (max-width: 768px) {
    .related-section { margin-top: 1.5rem !important; margin-bottom: 0 !important; }
    .cta-section { margin-top: 1.5rem !important; margin-bottom: 2.5rem !important; }
}
@media (max-width: 576px) {
    .related-section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .sub-mid section { padding-top: 0 !important; padding-bottom: 0 !important; }
    .cta-section { padding-top: 0 !important; }
}

/* ==========================================================================
   FAQ des sous-pages — même style que la FAQ de l'accueil
   (carte arrondie, fond blanc, ombre douce, SANS bordure).
   Ciblé via l'id se terminant par « Outer » : n'affecte pas l'accueil.
   ========================================================================== */
[id$="Outer"],
[id$="Outer"] .accordion,
[id$="Outer"] .accordion-item {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
[id$="Outer"] .accordion-item { margin-bottom: 12px; }
[id$="Outer"] .accordion-button {
    border-radius: var(--radius-l, 20px) !important;
    background: var(--card-bg, #fff) !important;
    color: var(--text-dark, #1d1d1f);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    padding: 20px 24px;
    font-weight: 600;
}
[id$="Outer"] .accordion-button:not(.collapsed) {
    color: var(--accent-blue, #0066CC);
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}
[id$="Outer"] .accordion-button:focus { box-shadow: 0 0 0 4px rgba(0,102,204,0.12); }
[id$="Outer"] .accordion-button:not(.collapsed)::after { filter: none; }