/* ============================================
   APP.CSS UNIFIÉ - LEAD PORTAGE
   Fichier unique avec typographie intégrée
   ============================================ */

/* ============================================
   1. TYPOGRAPHIE GLOBALE
   ============================================ */
/* Import des polices Google Fonts */
:root {
    /* Polices */
 --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-headings: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-logo: 'Open Sans', sans-serif;
    
    /* Tailles de police */
    --font-size-base: 16px;
    --line-height-base: 1.7;
    
    /* Échelle typographique */
    --font-h1: 42px;
    --font-h2: 32px;
    --font-h3: 24px;
    --font-h4: 20px;
    --font-h5: 18px;
    --font-h6: 16px;
    
    /* Corps de texte */
    --font-body: 16px;
    --font-body-large: 18px;
    --font-body-small: 14px;
    
    /* Poids */
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    
    /* Line-heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Palette de couleurs */
    --primary-color: #274F57;
    --secondary-color: #4FAE9A;
    --background-color: #E7ECF5;
    --text-color: #ffffff;
    --white: #ffffff;
    --navbackground: #3D3E3E;
    --gray-light: #f9f9f9;
}

/* Reset typographique global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: var(--weight-normal);
    color: #333;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: var(--line-height-tight);
    font-weight: var(--weight-bold);
    color: #274F57;
    margin-bottom: 1rem;
}

/* H1 - Même police que le logo pour cohérence branding */
h1 {
    font-family: var(--font-logo);
    font-size: var(--font-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--font-h2);
    font-weight: var(--weight-bold);
}

h3 {
    font-size: var(--font-h3);
    font-weight: var(--weight-semibold);
}

h4 {
    font-size: var(--font-h4);
    font-weight: var(--weight-semibold);
}

h5 {
    font-size: var(--font-h5);
    font-weight: var(--weight-medium);
}

h6 {
    font-size: var(--font-h6);
    font-weight: var(--weight-medium);
}

/* Paragraphes */
p {
    font-size: var(--font-body);
    line-height: var(--line-height-normal);
    margin-bottom: 1rem;
    color: #333;
}

/* Texte large (introductions, lead text) */
.lead,
.text-large,
.hero p,
.intro-section p {
    font-size: var(--font-body-large);
    line-height: var(--line-height-relaxed);
}

/* Liens */
a {
    font-family: var(--font-primary);
    font-weight: var(--weight-medium);
    transition: all 0.3s ease;
}

/* Listes */
ul, ol {
    font-family: var(--font-primary);
}

ul li, ol li {
    font-size: var(--font-body);
    line-height: var(--line-height-normal);
    margin-bottom: 0.5rem;
}

/* ============================================
   2. HEADER & NAVIGATION
   ============================================ */

header {
    background-color: var(--navbackground);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Logo - Exception avec Open Sans Bold */
nav .logo,
nav .logo * {
    font-family: var(--font-logo);
    font-weight: 700;
}

nav .logo img {
    height: 50px;
}

/* Navigation Links */
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 24px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    font-family: var(--font-primary);
    letter-spacing: 0.2px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.hamburger:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 6px;
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--navbackground);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #4e4f4f;
}

/* ============================================
   3. FOOTER
   ============================================ */

footer {
    background-color: var(--navbackground);
    color: var(--text-color);
    padding: 70px 5% 40px;
    border-top: 4px solid var(--secondary-color);
    font-family: var(--font-primary);
    width: 100%;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section.branding {
    flex: 1.5;
}

.footer-section.contact {
    flex: 1.2;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.tagline {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #aaa;
    line-height: 1.5;
}

.footer-section h4 {
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    padding: 0;
    margin-top: 20px;
}

.social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icons li a i {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-icons li a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Info */
.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1rem;
    margin-top: 3px;
}

/* Footer Navigation */
.footer-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.footer-nav ul li a {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #aaa;
}

.certifications {
    display: flex;
    gap: 20px;
}

.certifications span {
    display: flex;
    align-items: center;
}

.certifications span i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* ============================================
   4. BOUTONS
   ============================================ */

button,
.btn,
.btn-primary,
.btn-secondary,
.btn-simulate,
.cta-btn,
input[type="submit"] {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--weight-semibold);
    line-height: normal;
}

/* ============================================
   5. FORMULAIRES
   ============================================ */

input,
textarea,
select,
.form-control {
    font-family: var(--font-primary);
    font-size: var(--font-body);
    line-height: var(--line-height-normal);
}

label {
    font-family: var(--font-primary);
    font-size: var(--font-body);
    font-weight: var(--weight-semibold);
}

/* ============================================
   6. ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   7. RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    :root {
        --font-h1: 36px;
        --font-h2: 28px;
        --font-h3: 22px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-h1: 32px;
        --font-h2: 26px;
        --font-h3: 20px;
        --font-body-large: 17px;
    }

    .hamburger {
        display: block;
        font-size: 26px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--navbackground);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        padding: 15px 0;
        font-size: 16px;
        width: 100%;
    }

    .dropdown-content {
        position: static !important;
        width: 100%;
        display: none;
        box-shadow: none;
        background-color: rgba(39, 39, 39, 0.4);
        margin-top: 0;
        padding: 0 0 0 15px;
        border-radius: 0;
        margin-bottom: 10px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .dropdown > a i {
        transition: transform 0.3s ease;
    }

    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Overlay pour fermer le menu */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Footer responsive */
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-h1: 28px;
        --font-h2: 24px;
        --font-h3: 18px;
        --font-body: 15px;
    }
}

/* ============================================
   8. CLASSES UTILITAIRES
   ============================================ */

.font-weight-normal { font-weight: var(--weight-normal); }
.font-weight-medium { font-weight: var(--weight-medium); }
.font-weight-semibold { font-weight: var(--weight-semibold); }
.font-weight-bold { font-weight: var(--weight-bold); }
.font-weight-extrabold { font-weight: var(--weight-extrabold); }

.line-height-tight { line-height: var(--line-height-tight); }
.line-height-normal { line-height: var(--line-height-normal); }
.line-height-relaxed { line-height: var(--line-height-relaxed); }

/* ============================================
   9. CORRECTIONS SPÉCIFIQUES PAGES
   ============================================ */

/* Forcer Inter sur les pages qui utilisent d'autres polices */
.presentation-wrapper,
.presentation-wrapper *,
.services-section,
.services-section * {
    font-family: var(--font-primary);
}

/* H1 reste en Open Sans partout */
.presentation-wrapper h1,
.services-section h1 {
    font-family: var(--font-logo);
}