* {
    color: white;
    font-size: 1.3rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #131B2D;
    min-height: 100vh;
    border: 3px solid #EDD387;
}

/* ========== FLEXBOX ========== */

.flex {
    display: flex;
}

main .container .flex .item {
    border: 1px solid #EDD387;
    width: 50%;
    text-align: left;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main .container .flex .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(237, 211, 135, 0.2);
}

h2 {
    text-align: center;
    color: #EDD387;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #EDD387;
}

/* ========== HEADER + DROPDOWN MENU ========== */

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    background-color: #131B2D;

    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header img {
    height: 180px; /* Logo agrandi */
    width: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #EDD387;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #EDD387;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #131B2D;
    border: 2px solid #EDD387;
    box-shadow: 0 0 10px  #EDD387;
    border-radius: 6px;
    min-width: 180px;
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown .content a {
    display: block;
    padding: 10px 20px;
    text-align: left;
    color: white;
    transition: all 0.3s ease;
}

.dropdown .content a:hover {
    background-color: #EDD387;
    color: #131B2D;
    padding-left: 25px;
}

/* ========== MAIN CONTENT ========== */

main {
    padding: 80px 40px;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    color: #EDD387;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

footer {
    padding: 50px 40px;
}

.list {
    text-align: left;
}

h3 {
    text-align: center;
}

div img {
    width: 800px;
}

.container {
    height: auto;
    border: 4px solid #EDD387;
    box-shadow: 0 0 15px #EDD387;
    margin: 0 auto;
    width: 95%;
    border-radius: 8px;
    background-color: #00040D;
    text-align: center;
    text-justify: inter-word;
    padding: 40px 20px;
}

/* ========== FOOTER ========== */

.footer-container {
    height: auto;
    border: 4px solid #EDD387;
    box-shadow: 0 0 15px #EDD387;
    margin: 0 auto;
    width: 95%;
    border-radius: 8px;
    background-color: #00040D;
    padding: 40px;
}

/* Logo du footer - Même taille que le header */
.footer-container .logo-contact img {
    height: 180px; /* Même taille que le header */
    width: auto;
    transition: transform 0.3s ease;
}

.footer-container .logo-contact img:hover {
    transform: scale(1.05);
}

.footer-container .logo-contact {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-right: 20px;
    font-size: 24px;
}

.contact h3 {
    color: #EDD387;
    margin-bottom: 20px;
    text-align: center;
}

.email {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.email i {
    color: #EDD387;
    font-size: 1.5rem;
}

.footer-container .copyright {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 1.2rem;
    margin-top: 40px;
    color: #EDD387;
}

/* ========== LISTE ========== */

ul {
    list-style-type: none;
    padding: 0;
}

li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    line-height: 1.6;
}

li::before {
    content: "•";
    color: #EDD387;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* ========== RESPONSIVE POUR TABLETTE ≤1440px ========== */

@media (max-width: 1440px) {
    .container {
        width: 90%;
        margin: 40px auto;
        height: auto;
        border: 4px solid #EDD387;
        box-shadow: 0 0 15px #EDD387;
        border-radius: 8px;
        background-color: #00040D;
        padding: 40px 20px;
    }

    .flex {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .item {
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        border: 1px solid #EDD387;
        border-radius: 6px;
        background-color: #0B1220;
        box-shadow: 0 0 10px rgba(237, 211, 135, 0.2);
    }

    .title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 30px;
        color: #EDD387;
    }

    header {
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 30px;
        text-align: center;
    }

    header img {
        height: 150px; /* Logo légèrement réduit sur tablette */
    }

    /* Footer responsive */
    .footer-container .logo-contact img {
        height: 150px; /* Même taille réduite que le header en responsive */
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }

    footer {
        text-align: center;
        padding: 40px 20px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        width: 90%;
        margin: 0 auto;
        height: auto;
        padding: 30px;
    }

    .footer-container .logo-contact {
        flex-direction: column;
        gap: 30px;
    }

    .contact {
        align-items: center;
        text-align: center;
        margin-right: 0;
    }

    .contact h3 {
        padding-left: 0;
    }

    .copyright {
        font-size: 1rem;
        margin-top: 10px;
    }

    header {
        margin-bottom: 60px;
    }

    .dropdown:hover ~ main,
    .dropdown:focus-within ~ main {
        margin-top: 100px;
    }

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
        margin-bottom: 60px;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .logo img {
        height: 120px;
        width: 120px;
    }

    nav {
        order: 2;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 25px;
        flex-wrap: wrap;
        text-align: right;
    }

    nav a {
        font-size: 1.2rem;
        text-decoration: none;
    }
}

/* ========== RESPONSIVE POUR MOBILE ========== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    header img {
        height: 120px; /* Logo adapté pour mobile */
        margin-bottom: 15px;
    }
    
    /* Footer mobile */
    .footer-container .logo-contact img {
        height: 120px; /* Même taille réduite que le header en mobile */
    }
    
    nav {
        justify-content: center;
        gap: 15px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .footer-container .logo-contact {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact h3 {
        padding-left: 0;
    }
    
    .email {
        flex-direction: column;
        gap: 10px;
    }
}