:root {
    --primary-blue: #1A365D;
    --accent-orange: #F6AD55;
    --text-dark: #333333;
    --bg-light: #F9FAFB;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.6; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Boutons */
.btn-primary { background-color: var(--accent-orange); color: #fff; padding: 10px 24px; text-decoration: none; border-radius: 5px; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background-color: #dd9b4c; }
.btn-secondary { background-color: transparent; color: #fff; padding: 10px 24px; text-decoration: none; border: 2px solid #fff; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.btn-secondary:hover { background-color: #fff; color: var(--primary-blue); }

/* Alertes */
.alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Navigation */
.navbar { background-color: var(--primary-blue); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.flex-nav { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { color: #fff; font-size: 1.5rem; }
.logo span { color: var(--accent-orange); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-orange); }

/* Bannières */
.hero, .page-header { position: relative; display: flex; align-items: center; color: #fff; background-size: cover; background-position: center; }
.hero { height: 80vh; }
.page-header { height: 40vh; text-align: center; }
.hero-overlay, .header-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.hero-overlay { background: rgba(26, 54, 93, 0.75); }
.header-overlay { background: rgba(26, 54, 93, 0.85); }
.hero-content, .header-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h2, .header-content h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p, .header-content p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; }

/* Sections */
.services-section, .about-section, .contact-section, .portfolio-section { padding: 80px 0; }
.services-section, .contact-section { background-color: var(--bg-light); }
.section-title { text-align: center; font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 50px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-orange); }
.service-card h3 { color: var(--primary-blue); margin-bottom: 15px; }
.flex-about, .flex-contact { display: flex; gap: 50px; align-items: center; }
.flex-contact { align-items: flex-start; }
.about-text, .about-image, .contact-info-box, .contact-form-box { flex: 1; }
.about-text h2, .contact-info-box h2, .contact-form-box h2 { color: var(--primary-blue); margin-bottom: 20px; }
.about-image img { width: 100%; border-radius: 8px; }

/* Formulaire */
.contact-info-box, .contact-form-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.contact-details { list-style: none; margin: 30px 0; }
.contact-details li { margin-bottom: 20px; }
.contact-details a { color: var(--accent-orange); text-decoration: none; font-weight: 600; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-orange); outline: none; }

/* Footer */
.footer { background-color: var(--primary-blue); color: #fff; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer h3, .footer h4 { color: var(--accent-orange); margin-bottom: 15px; }
.footer-legal-links ul { list-style: none; }
.footer-legal-links a { color: #cbd5e0; text-decoration: none; transition: 0.3s; }
.footer-legal-links a:hover { color: var(--accent-orange); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

/* Cookies */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--primary-blue); color: #fff; padding: 20px; z-index: 9999; }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cookie-buttons { display: flex; gap: 15px; flex-shrink: 0; }

/* Menu Mobile (Bouton caché sur desktop) */
.mobile-menu-btn { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1000; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background-color: #fff; transition: 0.3s; }

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    /* Menu mobile */
    .mobile-menu-btn { display: flex; }
    #main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--primary-blue); padding: 20px 0; }
    #main-nav.active { display: block; }
    .nav-links { flex-direction: column; align-items: center; gap: 20px; }
    .desktop-only { display: none; }
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Reste du site */
    .hero-content h2, .header-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .flex-about, .flex-contact, .cookie-content { flex-direction: column; }
    .about-text, .about-image, .contact-info-box, .contact-form-box { width: 100%; }
    .cookie-buttons, .cookie-buttons button { width: 100%; }
}