﻿/* ---------------------- */
/* BASE                   */
/* ---------------------- */

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

body {
    background: #F7F3EE; 
    font-family: 'Lora', serif;   
    color: #2B2B2B;
    line-height: 1.6;
}

html, body {
    height: 100%;
}

#page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}


/* PAGE */
#page {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
}


/* ---------------------- */
/* HEADER                 */
/* ---------------------- */

header {
    border-bottom: 2px solid #D4AF37; 
    margin-bottom: 30px;
    padding-bottom: 15px;
}

#titre_page h1 {
    font-family: 'Parisienne', cursive;
    font-size: 3em;
    color: #6A0B1F; 
}

#titre_page h2 {
    font-family: 'Parisienne', cursive;
    font-size: 1.5em;
    margin-top: -5px;
    color: #8C1B33;
}


/* ---------------------- */
/* NAVIGATION             */
/* ---------------------- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-family: 'Rambla', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: #6A0B1F;
    padding-bottom: 3px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #D4AF37;
    border-bottom: 2px solid #D4AF37;
}

/* burger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6A0B1F;
}

/* ---------------------- */
/* SECTION CONTENT        */
/* ---------------------- */

section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

article {
    flex: 2;
    min-width: 260px;
}

article h3 {
    font-family: 'Parisienne', cursive;
    font-size: 2em;
    margin-top: 20px;
    color: #6A0B1F;
}

article p {
    font-size: 1em;
    margin-bottom: 10px;
}

/* ---------------------- */
/* ASIDE (Bloc à droite)  */
/* ---------------------- */

aside {
    flex: 1;
    min-width: 230px;
    background: #6A0B1F; 
    color: #F7F3EE;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

aside h3 {
    font-family: 'Parisienne', cursive;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #D4AF37; 
}

#photo img {
    width: 200px;      
    height: auto;      
    border-radius: 6px;
    border: 3px solid #D4AF37;
    display: block;
    margin: 0 auto;
}


/* ---------------------- */
/* FOOTER                 */
/* ---------------------- */

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #D4AF37;
    color: #6A0B1F;
    font-size: 0.9em;
}

footer a {
    color: #8C1B33;
    text-decoration: none;
}

/* ---------------------- */
/* SOUS-MENU              */
/* ---------------------- */

.submenu-parent {
    position: relative;
}

.submenu-parent > a {
    cursor: pointer;
}

.submenu {
    display: none;
    position: absolute;
    background: #F7F3EE;
    border: 1px solid #D4AF37;
    border-radius: 5px;
    padding: 10px 0;
    list-style: none;
    min-width: 170px;
    z-index: 20;
}

.submenu li {
    padding: 8px 20px;
}

.submenu li a {
    color: #6A0B1F;
    text-decoration: none;
    display: block;
}

.submenu li a:hover {
    color: #D4AF37;
}

.submenu-parent:hover .submenu {
    display: block;
}

@media (max-width: 850px) {
    .submenu-parent {
        width: 100%;
    }

    .submenu {
        position: static;
        border: none;
        background: none;
        padding-left: 20px;
    }

    .submenu li {
        padding: 5px 0;
    }
}


/* ---------------------- */
/* RESPONSIVE             */
/* ---------------------- */

@media (max-width: 850px) {

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #F7F3EE;
        padding: 10px 0;
        border-top: 2px solid #D4AF37;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        padding: 10px 0;
        text-align: center;
    }

    section {
        flex-direction: column;
    }

    aside {
        width: 100%;
    }
}


aside p {
    margin-bottom: 10px;
}

aside a {
    color: #F7F3EE;
    text-decoration: underline;
}

aside a:hover {
    color: #D4AF37;
}

.w3c-validator {
    margin-top: 15px;
}
