/* ============================================
   STYLES PRINCIPAUX - CORRECTION DES PROBLÈMES DE DÉFILEMENT
   ============================================ */

/* Reset global pour supprimer toutes les bordures blanches */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}

/* Correction des problèmes de défilement horizontal */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Alice', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Supprimer toutes les marges et paddings des sections */
section, header, footer, main, aside, nav {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Container principal sans marges blanches */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Correction des problèmes de défilement horizontal pour toutes les sections */
.hero, .about, .services, .projects, .contact, 
.agency-intro, .focus-metier, .faq-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Supprimer les bordures blanches des images */
img {
    border: none;
    outline: none;
    max-width: 100%;
    height: auto;
}

/* Correction des formulaires */
form {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Boutons sans bordures blanches */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    margin: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #2c1810;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #2c1810;
}

.btn-outline {
    background: transparent;
    color: #361e4e;
    border: 2px solid #361e4e;
}

.btn-outline:hover {
    background: #361e4e;
    color: white;
}

/* Navigation sans bordures blanches */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Supprimer les marges des listes */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Correction des liens */
a {
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Supprimer les bordures blanches des éléments de navigation */
.navbar-nav, .navbar-brand, .nav-link {
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Correction des sections de contenu */
.content-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Responsive design sans débordement */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    section, header, footer, main, aside, nav {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* Correction spécifique pour éviter le défilement horizontal sur toutes les pages */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Supprimer les bordures blanches des tableaux */
table {
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* Supprimer les bordures blanches des inputs */
input, textarea, select {
    border: none;
    outline: none;
    margin: 0;
    padding: 0;
}

/* Correction des problèmes de défilement pour les pages spécifiques */
.contact, .about, .services, .projects {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}
