* {
    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;
}

/* ========== HEADER ========== */

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;
}


/* ========== DROPDOWN MENU ========== */

.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);
}

.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;
}

/* ========== GRILLE ========== */

.grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: start;
    padding: 20px;
}

.item {
    background: linear-gradient(145deg, #1a243f, #0f1729);
    height: auto;
    min-height: 500px;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid rgba(237, 211, 135, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.item:hover {
    transform: translateY(-8px);
    border-color: #EDD387;
    box-shadow: 0 12px 35px rgba(237, 211, 135, 0.4);
}

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EDD387, transparent);
    opacity: 0.7;
}

.item h2 {
    color: #EDD387;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.item h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #EDD387;
    border-radius: 2px;
}

.item p, .item ul {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
    color: #e0e0e0;
}

.item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.item li::before {
    content: '°';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1rem;
}

/* ========== FOOTER ========== */

footer {
    padding: 50px 40px;
}

.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;
}

.footer-container img {
    height: 180px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-container 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: 1.4rem;
}

.contact h3 {
    color: #EDD387;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
}

.email {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.email i {
    color: #EDD387;
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.email:hover i {
    transform: scale(1.2);
}

.footer-container .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 40px;
    color: #EDD387;
}

/* ============================= */
/* ======== RESPONSIVE ========= */
/* ============================= */

/* Pour tablettes et écrans ≤ 1440px */
@media (max-width: 1440px) {
    .container {
        width: 90%;
        margin: 40px auto;
        height: auto;
        padding: 40px 20px;
    }

    /* La grille reste en mode desktop sur tablette */
    .grille {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 25px;
        padding: 15px;
    }

    .item {
        max-width: 100%;
        min-height: 450px;
        padding: 25px;
    }

    .item h2 {
        font-size: 1.6rem;
    }

    .item p, .item ul {
        font-size: 1.05rem;
    }

    .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;
    }

    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 img {
        height: 150px;
    }

    .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;
    }

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 40px;
        margin-bottom: 60px;
        flex-wrap: nowrap;
    }

    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;
    }
}

