/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #3d2914;
    background-color: #f5f1ec;
}

/* Structure principale responsive */
#global {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fefcf8;
    box-shadow: 0 0 15px rgba(61, 41, 20, 0.2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #d4c4a8;
}

/* Header */
#header {
    background: linear-gradient(135deg, #5d4037, #6d4c41, #8d6e63);
    color: #f5f1ec;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #4e342e;
}

#header .dessous, #header .dessus {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    margin: 10px 0;
    color: #efebe9;
}

#header .un, #header .deux, #header .trois, #header .quatre {
    display: inline-block;
    font-size: 1.2em;
    margin: 0 15px;
    padding: 5px 10px;
    background: rgba(239, 235, 233, 0.15);
    border-radius: 5px;
    border: 1px solid rgba(239, 235, 233, 0.3);
}

/* Zone centrale */
#center {
    display: flex;
    flex: 1;
    gap: 20px;
    padding: 20px;
    background: #faf7f2;
}

#content {
    flex: 2;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.15);
    border: 1px solid #e6ddd4;
}

#sidebar {
    flex: 1;
    background: linear-gradient(to bottom, #f3ede7, #ede0d3);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(93, 64, 55, 0.15);
    border: 1px solid #d7c7b7;
}

/* Typographie */
h2 {
    color: #4e342e;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #8d6e63;
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h3 {
    color: #5d4037;
    font-size: 1.3em;
    margin: 20px 0 15px 0;
    padding-left: 10px;
    border-left: 4px solid #a1887f;
    background: linear-gradient(to right, #f9f6f1, transparent);
    padding: 8px 0 8px 15px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.7;
    color: #3d2914;
}

.signature {
    text-align: right;
    font-style: italic;
    color: #795548;
    margin: 15px 0;
    padding-right: 20px;
    font-size: 0.95em;
}

.tip {
    background: linear-gradient(to right, #f3ede7, #f9f6f1);
    border: 1px solid #bcaaa4;
    border-left: 4px solid #8d6e63;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(93, 64, 55, 0.1);
}

.nom {
    font-weight: bold;
    color: #4e342e;
}

/* Liens */
a {
    color: #6d4c41;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4e342e;
    text-decoration: underline;
}

/* Menus */
#menu, #menu1 {
    list-style: none;
    margin: 0 0 20px 0;
}

#menu li, #menu1 li {
    margin-bottom: 8px;
}

#menu a, #menu1 a {
    display: block;
    padding: 12px 15px;
    background: linear-gradient(to right, #efebe9, #e8ddd4);
    border: 1px solid #d7c7b7;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #4e342e;
    font-weight: 500;
}

#menu a:hover, #menu1 a:hover {
    background: linear-gradient(to right, #8d6e63, #a1887f);
    color: #f5f1ec;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(93, 64, 55, 0.2);
    transform: translateY(-1px);
}

.menuactive {
    background: linear-gradient(to right, #6d4c41, #8d6e63) !important;
    color: #f5f1ec !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Footer */
#footer {
    background: linear-gradient(135deg, #4e342e, #5d4037);
    color: #efebe9;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    border-top: 3px solid #3e2723;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Media Queries pour Responsive */
@media screen and (max-width: 768px) {
    #center {
        flex-direction: column;
        padding: 10px;
    }
    
    #header .dessous, #header .dessus {
        font-size: 1.8em;
    }
    
    #header .un, #header .deux, #header .trois, #header .quatre {
        display: block;
        margin: 5px 0;
        font-size: 1em;
    }
    
    #content, #sidebar {
        padding: 15px;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    body {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    #global {
        margin: 0;
        box-shadow: none;
        border: none;
    }
    
    #header {
        padding: 15px 10px;
    }
    
    #header .dessous, #header .dessus {
        font-size: 1.5em;
    }
    
    #center {
        padding: 5px;
        gap: 10px;
    }
    
    #content, #sidebar {
        padding: 10px;
    }
    
    .tip {
        padding: 10px;
    }
    
    #menu a, #menu1 a {
        padding: 10px 12px;
        font-size: 0.9em;
    }
}
/* Footer - Correction de la classe .nom */
#footer {
    background: linear-gradient(135deg, #4e342e, #5d4037);
    color: #efebe9;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    border-top: 3px solid #3e2723;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

#footer .nom {
    font-weight: bold;
    color: #f5f1ec; /* Couleur visible au lieu de #4e342e */
}

/* Optimisations pour très petits écrans */
@media screen and (max-width: 320px) {
    body {
        font-size: 12px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    #header .dessous, #header .dessus {
        font-size: 1.3em;
    }
}