/* Theme Name: Theme FLYTOP
Description: Design complet style Apple + Footer Premium + Glassmorphism
Author: SITE CREATORR
*/

/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-main: #fbfbfd;
    --text-dark: #1d1d1f;
    --text-grey: #86868b;
    --accent-blue: #0066CC;
    --accent-hover: #004499;
    --card-bg: #ffffff;
    --radius-xl: 28px;
    --radius-l: 20px;
    --radius-m: 12px;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.04);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.08);
    --transition-apple: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Custom */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.4); }

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.5px; }

.display-huge {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: -webkit-linear-gradient(#1d1d1f, #4a4a4f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead { font-weight: 400; color: var(--text-grey); }

/* --- 3. ANIMATIONS & DRONE FEEL --- */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); } 
    66% { transform: translateY(-5px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
/* Ralentir un peu pour plus de lourdeur/réalisme */
.drone-float { animation: floating 6s ease-in-out infinite; }
.fa-spin-hover { transition: transform 0.6s ease-in-out; }
.navbar-brand:hover .fa-spin-hover { transform: rotate(180deg); }

/* --- 4. NAVBAR (STYLES GÉNÉRAUX) --- */
.navbar-flytop {
    background-color: rgba(251, 251, 253, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 999;
}

/* État scrollé */
.navbar-flytop.scrolled {
    background-color: rgba(251, 251, 253, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 10px 0;
}

.navbar-brand { font-weight: 800; color: var(--text-dark) !important; font-size: 1.4rem; }

/* Liens du menu */
.nav-link-custom {
    color: var(--text-dark) !important;
    opacity: 0.7; 
    font-weight: 500; 
    font-size: 0.95rem; 
    margin: 0 10px; 
    transition: opacity 0.3s;
    text-decoration: none;
}
.nav-link-custom:hover { opacity: 1; color: var(--accent-blue) !important; }

/* --- 5. HERO SECTION --- */
.hero-section {
    height: 92vh; min-height: 600px;
    position: relative; display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; overflow: hidden;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    margin-bottom: 2rem;
}
.hero-bg-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1; filter: brightness(0.55);
    transform: scale(1.05); transition: transform 15s ease-out;
}
.hero-section:hover .hero-bg-video { transform: scale(1); }
.hero-content h1 {
    font-weight: 800; font-size: 5rem; line-height: 1; letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- 6. BUTTONS --- */
.btn-apple {
    background-color: var(--accent-blue); color: white; border-radius: 980px;
    padding: 16px 36px; font-size: 1.1rem; font-weight: 600; border: none;
    text-decoration: none; display: inline-block; transition: var(--transition-apple);
    position: relative; overflow: hidden; z-index: 1;
}
.btn-apple::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent); z-index: -1;
}
.btn-apple:hover {
    background-color: var(--accent-hover); transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.25); color: white;
}

/* --- 7. BENTO CARDS --- */
.bento-card {
    background: var(--card-bg); border-radius: var(--radius-xl); padding: 40px;
    height: 100%; box-shadow: var(--shadow-soft); transition: var(--transition-apple);
    position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.03);
    display: flex; flex-direction: column;
}
.bento-card:hover { transform: translateY(-8px) scale(1.005); box-shadow: var(--shadow-hover); }
.card-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-grey); letter-spacing: 1.5px; margin-bottom: 12px; display: block;
}
.card-dark { background: #090909; color: white; border: 1px solid rgba(255,255,255,0.1); }
.card-dark .card-label { color: var(--accent-blue); }
.card-dark h3 { color: white; margin-bottom: 10px; }
.card-dark p { color: #a1a1a6; }
.bento-card img { transition: transform 0.6s ease; }
.bento-card:hover img { transform: scale(1.03); }

/* --- 8. PROCESS --- */
.process-step { text-align: center; padding: 20px; position: relative; z-index: 1; }
.step-icon {
    width: 90px; height: 90px; background: var(--bg-main); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 30px;
    font-size: 2rem; color: var(--accent-blue); box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 1px solid white; transition: var(--transition-apple);
}
.process-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg); color: white; background: var(--accent-blue);
}
.process-step::after {
    content: ''; position: absolute; top: 65px; right: -50%; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #e5e5e5, transparent); z-index: -1;
}
.process-step:last-child::after { display: none; }

/* --- 9. CONTACT --- */
.contact-section {
    background: #ffffff; border-radius: var(--radius-xl); margin: 50px 0; padding: 70px;
    box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.02);
}
/* ===== CTA "Demander une étude" — STYLE UNIQUE & HOMOGÈNE sur tout le site ===== */
.btn-apple.btn-cta-dark {
    background: #1d1d1f; color: #fff;
    font-size: 0.9rem; padding: 11px 26px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.btn-apple.btn-cta-dark:hover {
    background: #000; color: #fff;
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
    /* Mobile : pas pleine largeur, plus compact */
    .btn-apple.btn-cta-dark { width: auto; font-size: 0.8rem; padding: 9px 20px; }
}
.form-control-apple {
    background: var(--bg-main); border: 1px solid #e5e5e5; border-radius: var(--radius-m);
    padding: 16px 20px; font-size: 1.05rem; transition: all 0.3s; color: var(--text-dark);
}
.form-control-apple:focus {
    background: white; border-color: var(--accent-blue); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15); outline: none;
}
.form-control-apple::placeholder { color: #a1a1a6; }

/* --- 10. FOOTER PREMIUM --- */
.site-footer {
    background-color: #f5f5f7; border-top: 1px solid #e5e5e5; font-size: 0.9rem; color: var(--text-dark);
}
.footer-heading {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 20px; color: var(--text-dark);
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-grey); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-blue); text-decoration: underline; }

.social-btn {
    width: 40px; height: 40px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-btn:hover {
    background: var(--accent-blue); color: white; transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* =============================================================================
   FORMULAIRE DE DEVIS QUALIFIANT (Contact Form 7)
   ============================================================================= */
.devis-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: left;
}
.devis-form .wpcf7-form-control-wrap { display: block; margin-bottom: 0; }

.devis-form input[type="text"],
.devis-form input[type="email"],
.devis-form input[type="tel"],
.devis-form select,
.devis-form textarea {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-m);
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s;
}
.devis-form select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2386868b'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
    padding-right: 38px;
}
.devis-form textarea { min-height: 120px; resize: vertical; }
.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
    background: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
    outline: none;
}
.devis-form .wpcf7-checkbox .wpcf7-list-item {
    display: inline-flex; align-items: center;
    margin: 0 14px 8px 0;
}
.devis-form .wpcf7-checkbox .wpcf7-list-item-label { font-size: 0.95rem; color: var(--text-dark); margin-left: 4px; }
.devis-form .wpcf7-acceptance { font-size: 0.85rem; color: var(--text-grey); text-align: left; }
.devis-form input[type="submit"] {
    background-color: var(--accent-blue);
    color: #fff; border: none; border-radius: 980px;
    padding: 15px 40px; font-size: 1.05rem; font-weight: 600;
    cursor: pointer; transition: all 0.4s ease; margin-top: 10px;
}
.devis-form input[type="submit"]:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.25);
}
.devis-form .wpcf7-not-valid-tip { font-size: 0.8rem; color: #d63333; margin-top: 4px; text-align: left; }
.devis-form .wpcf7-response-output {
    border-radius: var(--radius-m); margin: 20px 0 0; padding: 14px 18px; font-size: 0.95rem;
}

/* =============================================================================
   FORÇAGE ABSOLU DU MENU HORIZONTAL SUR MOBILE
   ============================================================================= */

/* 1. On masque tout bouton burger généré par Bootstrap ou un plugin */
.navbar-toggler, 
.menu-toggle, 
button[class*="toggle"],
.mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* 2. On FORCE le conteneur du menu à rester visible en mode ligne (Row) */
.menu-container, 
.navbar-flytop .menu-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* 3. On ajuste la taille des liens pour qu'ils tiennent sur un petit écran (MOBILE UNIQUEMENT) */
@media (max-width: 991px) {
    .navbar-flytop .nav-link-custom {
        display: block !important;
        font-size: 0.7rem !important; /* Taille réduite pour mobile */
        padding: 5px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
}

/* 4. Si Bootstrap essaie de cacher des choses avec .collapse, on l'interdit ici */
.navbar-flytop .collapse:not(.show) {
    display: flex !important; /* Force l'affichage même si Bootstrap dit 'none' */
}