/*! 
 * Framework CSS Universel 
 * Version : 1.1.6
 * Description : Intégration des accordéons natifs (details/summary) et couleur Madoglio modifiée (Rouge).
 */

:root {
    /* Couleur dominante pour MADOGLIO */
    --primary: #FF1A1A;           
    --secondary: #2c3e50;         
    --bg-light: #ffffff;          
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-on-primary: #ffffff;   
    --font-family: "Segoe UI", "Open Sans", Arial, sans-serif; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
    padding: 0 20px;
}

main.page-content {
    padding-top: 100px; 
    padding-bottom: 100px; 
    background: #ffffff;
    min-height: 100vh;
}

.app-bar {
    background-color: var(--primary);
    color: var(--text-on-primary);
    min-height: 60px;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
}

.app-bar.fixed-top { 
    top: 0; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.app-bar.fixed-bottom { 
    bottom: 0; 
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1); 
}

.app-bar-content, .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    flex-wrap: wrap; 
}

.branding {
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-on-primary);
}

.align-center { text-align: center; }
.padding20 { padding: 20px; }
.padding30 { padding: 30px; }

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

/* ==========================================================================
   ACCORDÉONS NATIFS (Remplacement de Metro UI)
   ========================================================================== */
details.accordion {
    background: #ffffff;
    border-left: 5px solid var(--primary);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 0 4px 4px 0;
}

details.accordion summary {
    padding: 15px 20px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Cache la flèche par défaut */
}

details.accordion summary::-webkit-details-marker {
    display: none;
}

details.accordion summary:hover {
    background: var(--secondary);
}

details.accordion .content {
    padding: 20px;
    color: #444;
}

details.accordion .content p {
    margin-bottom: 10px;
}

/* ==========================================================================
   LISTES ET SERVICES 
   ========================================================================== */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #444;
}

.custom-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

@media screen and (max-width: 768px) {
    .main-title { font-size: 2rem; }
    .app-bar-content {
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
        gap: 5px;
    }
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 10px 0;
    }
    main.page-content { padding-top: 120px; }
}