* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Roboto', sans-serif; color:#333; line-height:1.6; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ==================== NAVBAR SOPHISTIQUÉE ==================== */
.header {
    background:#ffffff;
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;
    transition: all 0.3s ease;
}

.header .container {
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:90px;
    padding:0 30px;
}

.logo {
    display:flex;
    align-items:center;
    text-decoration:none;
}

.logo img {
    height:50px;
    width:auto;
    max-width:200px;
}

/* Menu principal */
.nav-list {
    display:flex;
    list-style:none;
    gap:40px;
    align-items:center;
}

.nav-list > li > a {
    text-decoration:none;
    color:#333;
    font-weight:600;
    font-size:16px;
    position:relative;
    transition: color 0.3s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color:#0066cc;
}

.nav-list > li > a::after {
    content:'';
    position:absolute;
    width:0;
    height:3px;
    bottom:-8px;
    left:0;
    background:#0066cc;
    transition: width 0.3s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
    width:100%;
}

/* Dropdown "Nos Services" */
.dropdown {
    position:relative;
}

.dropdown > a {
    display:flex;
    align-items:center;
    gap:8px;
}

.dropdown > a::after {
    content: '\f078'; /* chevron down */
    font-family: "Font Awesome 6 Free";
    font-weight:900;
    font-size:12px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    background:#ffffff;
    min-width:260px;
    border-radius:10px;
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
    opacity:0;
    visibility:hidden;
    transition: all 0.3s ease;
    padding:15px 0;
    margin-top:15px;
}

.dropdown:hover .dropdown-menu {
    opacity:1;
    visibility:visible;
    margin-top:5px;
}

.dropdown-menu li a {
    display:block;
    padding:12px 25px;
    color:#333;
    text-decoration:none;
    font-weight:500;
    transition:0.3s;
}

.dropdown-menu li a:hover {
    background:#0066cc;
    color:#fff;
}

/* Burger menu */
.burger {
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:6px;
    width:30px;
}

.burger span {
    width:100%;
    height:3px;
    background:#333;
    border-radius:3px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity:0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu */
@media (max-width:992px) {
    .burger { display:flex; }

    .nav-list {
        position:fixed;
        top:90px;
        left:-100%;
        width:100%;
        height:calc(100vh - 90px);
        background:#ffffff;
        flex-direction:column;
        justify-content:flex-start;
        align-items:center;
        padding-top:60px;
        transition: left 0.4s ease;
        box-shadow:0 10px 30px rgba(0,0,0,0.1);
        gap:30px;
    }

    .nav-list.active {
        left:0;
    }

    .dropdown-menu {
        position:static;
        transform:none;
        box-shadow:none;
        background:none;
        padding:0;
        opacity:1;
        visibility:visible;
        display:none;
        margin-top:10px;
    }

    .dropdown.active .dropdown-menu {
        display:block;
    }

    .dropdown > a::after {
        transform: none;
    }

    .dropdown.active > a::after {
        transform: rotate(180deg);
    }
}

/* ==================== FIN NAVBAR ==================== */

/* Hero principal (accueil) */
.hero { 
    background:url('images/hero-bg.jpg') center/cover no-repeat; 
    height:80vh; 
    position:relative; 
    display:flex; 
    align-items:center; 
    margin-top:90px; 
}
.hero-overlay { position:absolute; inset:0; background:rgba(0,0,0,0.4); }
.hero-content { position:relative; color:#fff; max-width:700px; }
.hero-content h1 { font-size:48px; margin-bottom:20px; }
.hero-content p { font-size:20px; margin-bottom:30px; }
.btn { background:#0066cc; color:#fff; padding:12px 30px; text-decoration:none; border-radius:5px; font-weight:700; }

/* Autres sections (conservées) */
.intro { padding:80px 0; text-align:center; max-width:900px; margin:0 auto; }
.intro p { margin-bottom:20px; font-size:18px; }

.advantages { background:#f8f9fa; padding:80px 0; }
.advantages h2 { text-align:center; margin-bottom:50px; font-size:36px; color:#0066cc; }
.grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:30px; }
.card { background:#fff; padding:30px; text-align:center; border-radius:10px; box-shadow:0 5px 15px rgba(0,0,0,0.1); }
.card img { width:80px; height:80px; margin-bottom:20px; object-fit:contain; }
.card h3 { font-size:18px; }

.page-hero { padding:140px 0 80px; text-align:center; background:#f8f9fa; }
.page-hero h1 { font-size:42px; color:#0066cc; margin-bottom:20px; }
.page-hero p { font-size:20px; max-width:800px; margin:0 auto; }

.services-grid { padding:80px 0; }
.services-grid .grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:40px; }
.service-card {
    background:#fff;
    padding:40px 30px;
    text-align:center;
    border-radius:15px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    text-decoration:none;
    color:#333;
    transition:0.3s;
}
.service-card:hover { transform:translateY(-10px); box-shadow:0 20px 40px rgba(0,0,0,0.15); }
.service-card img { width:90px; height:90px; margin-bottom:25px; }
.service-card h3 { font-size:24px; margin-bottom:15px; color:#0066cc; }
.service-card p { margin-bottom:25px; font-size:16px; }
.service-card .btn { background:#0066cc; color:#fff; padding:12px 25px; border-radius:5px; font-weight:700; }

.service-detail { padding:80px 0; text-align:center; max-width:900px; margin:0 auto; }
.service-detail h2 { font-size:36px; color:#0066cc; margin-bottom:30px; }
.service-detail p { font-size:18px; margin-bottom:25px; }
.icon-center { margin-bottom:40px; }
.cta-center { margin-top:50px; }

.footer { background:#333; color:#fff; padding:30px 0; text-align:center; }

/* WhatsApp float (conservé) */
.whatsapp-float {
    position:fixed;
    width:60px;
    height:60px;
    bottom:30px;
    right:30px;
    background-color:#25D366;
    color:#FFF;
    border-radius:50px;
    text-align:center;
    font-size:30px;
    box-shadow:0 4px 10px rgba(0,0,0,0.3);
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.3s;
}
.whatsapp-float:hover {
    background-color:#128C7E;
    transform:scale(1.1);
}
@media (max-width:768px) {
    .whatsapp-float { width:50px; height:50px; font-size:26px; bottom:20px; right:20px; }
}

/* Responsive général */
@media (max-width:768px) {
    .hero-content h1 { font-size:36px; }
    .hero-content p { font-size:18px; }
}

/* Ajustement précis pour les hero images où la tête est en haut */
.page-hero[style*="consultance-hero.jpg"],
.page-hero[style*="formation-hero.jpg"],
.page-hero[style*="contact-hero.jpg"],
.page-hero[style*="creation-hero.jpg"],
.page-hero[style*="migration-hero.jpg"] {
    background-position: center top !important; /* Force le focus sur le haut de l'image */
}

/* Pour l'accueil si tu veux aussi centrer mieux */
.hero {
    background-position: center 30% !important; /* Légèrement plus haut que center pour les images portrait */
}

/* Option alternative si tu veux être encore plus précis par page */
.page-hero[style*="formation-hero.jpg"] {
    background-position: center 20% !important; /* Instructeur bien centré */
}

.page-hero[style*="contact-hero.jpg"] {
    background-position: center 15% !important; /* Femme au téléphone bien visible */
}

/* ==================== NOUVEAU : BOUTONS CTA RESPONSIVE ==================== */
.btn-cta {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 18px 50px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cta:hover {
    background: #0055aa;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Responsive mobile pour les CTA */
@media (max-width: 768px) {
    .btn-cta {
        display: block;
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        padding: 20px 30px;
        font-size: 21px;
    }
}

/* Si tu as encore des inline styles sur les boutons, cette règle les surcharge */
.cta-center a,
.page-hero a.btn,
.service-detail a.btn {
    display: inline-block !important;
    width: auto !important;
    padding: 18px 50px !important;
    font-size: 20px !important;
}

@media (max-width: 768px) {
    .cta-center a,
    .page-hero a.btn,
    .service-detail a.btn {
        display: block !important;
        width: 90% !important;
        max-width: 400px !important;
        margin: 20px auto !important;
        padding: 20px 30px !important;
        font-size: 21px !important;
    }
}

/* CTA secondaire responsive (comme "Voir plus de réalisations" ou "Discuter de votre projet web") */
.btn-secondary {
    display: inline-block;
    background: #0066cc;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 60px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0055aa;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Responsive mobile */
@media (max-width: 768px) {
    .btn-secondary {
        display: block;
        width: 90%;
        max-width: 400px;
        margin: 20px auto;
        padding: 18px 30px;
        font-size: 19px;
    }
}

/* ==================== DARK MODE ==================== */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: #1e1e1e;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

body.dark-mode .nav-list > li > a {
    color: #e0e0e0;
}

body.dark-mode .nav-list > li > a:hover,
body.dark-mode .nav-list > li > a.active {
    color: #0099ff;
}

body.dark-mode .nav-list > li > a::after {
    background: #0099ff;
}

body.dark-mode .dropdown-menu {
    background: #1e1e1e;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

body.dark-mode .dropdown-menu li a {
    color: #e0e0e0;
}

body.dark-mode .dropdown-menu li a:hover {
    background: #0099ff;
    color: #fff;
}

body.dark-mode .hero-overlay {
    background: rgba(0,0,0,0.7);
}

body.dark-mode .page-hero {
    background-color: #1e1e1e;
}

body.dark-mode .advantages,
body.dark-mode .services-preview,
body.dark-mode .quick-contact,
body.dark-mode .faq-section,
body.dark-mode section[style*="background:#f8f9fa"] {
    background: #1e1e1e !important;
}

body.dark-mode .card,
body.dark-mode .service-card,
body.dark-mode .accordion,
body.dark-mode .faq-cta {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.dark-mode .footer {
    background: #0d0d0d;
}

body.dark-mode .footer-grid a {
    color: #aaa;
}

body.dark-mode .footer-grid a:hover {
    color: #fff;
}

body.dark-mode .accordion-header {
    background: #0066cc;
}

body.dark-mode .accordion-header:hover {
    background: #0055aa;
}

/* Bouton switch dark mode */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 20px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0066cc;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Icônes lune/soleil */
.slider::after {
    content: '🌙';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 18px;
    transition: 0.4s;
}

input:checked + .slider::after {
    content: '☀️';
    left: 30px;
}