* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7f9;
    color: #17212b;
}

/* MENU GAUCHE */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #102a43;
    color: white;
    padding: 40px 25px;
    z-index: 10;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 60px;
}

.logo span {
    color: #36c5a0;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

nav a {
    text-decoration: none;
    color: #36c5a0;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    background: #36c5a0;
    color: white;
}

/* CONTENU */
main {
    margin-left: 0;
    padding: 0;
    min-height: 100vh;
}

/* HEADER */
header {
    background: #0b1d2d;
    padding: 40px 7%;
    border-bottom: 1px solid #e5e9ed;
    margin-left: 400px;
    width: calc(100% - 400px);
    color: #36c5a0;
    min-height: 134px;
    display: flex;
    align-items: center;
}

header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

header p {
    color: #718096;
}

/* HERO */
.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 70px 7%;
    background: linear-gradient(135deg, #edf9f6, #ffffff);
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-block;
    background: #d9f5ed;
    color: #16866d;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h2 strong {
    color: #20a886;
}

.hero-text p {
    color: #637381;
    font-size: 17px;
    line-height: 1.7;
    max-width: 550px;
}

/* IMAGE */
.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(16, 42, 67, 0.18);
}

/* BOUTONS */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    background: #20a886;
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 9px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #16866d;
    transform: translateY(-2px);
}

.btn.secondary {
    background: #102a43;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 70px 7%;
    background: white;
}

.feature {
    padding: 30px;
    border: 1px solid #e6ebef;
    border-radius: 15px;
}

.icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

.feature p {
    color: #718096;
    line-height: 1.6;
}

/* SERVICES */
.services {
    padding: 70px 7%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid #e4e9ed;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h2 {
    margin-bottom: 12px;
}

.service-card p {
    color: #718096;
    line-height: 1.7;
}

/* CONTACT */
.contact-section {
    margin: 0 7% 70px;
    padding: 60px;
    text-align: center;
    background: transparent;
    color: #102a43;
    border-radius: 20px;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-section p {
    color: #c7d5df;
    margin-bottom: 25px;
}

/* FOOTER */
footer {
    background: #0b1d2d;
    color: white;
    padding: 60px 7%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-left: 400px;
    width: calc(100%-400px);
}

footer strong {
    font-size: 20px;
    color: #36c5a0;
    margin-left: 40px;
}

footer p {
    color: #aab8c4;
    margin-top: 8px;
}

/* MOBILE */
@media (max-width: 800px) {

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .logo {
        margin-bottom: 20px;
    }

    nav {
        flex-direction: row;
    }

    main {
        margin-left: 0;
    }

    .hero {
        flex-direction: column;
        padding: 50px 7%;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero-image img {
        height: 300px;
    }

    .features,
    .services {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
    }
}

/* PAGE CONTACT UNIQUEMENT */

.layout-contact {
    display: flex;
    min-height: 80vh;
    margin-left: 400px;
}

.layout-contact .contact-contenu {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.layout-contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}

.layout-contact input,
.layout-contact textarea {
    width: 100%;
    padding: 10px;
}

.layout-contact textarea {
    min-height: 120px;
}

.layout-contact button {
    padding: 12px;
    cursor: pointer;
}
.hero,
.features,
.services {
    margin-left: 400px;
}
.espace-membre {
    padding: 40px;
    background: #f4f7f9;
    min-height: 70vh;
}

.bienvenue {
    background: #102a43;
    color: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 35px;
}

.bienvenue h2 {
    color: #36c5a0;
    margin-bottom: 12px;
}

.bienvenue p {
    color: #e0e8ef;
    line-height: 1.6;
}

.tableau-bord > h2,
.informations h2 {
    margin-bottom: 20px;
    color: #102a43;
}

.cartes-membre {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.carte {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e4e9ed;
}

.icone {
    font-size: 32px;
    margin-bottom: 15px;
}

.carte h3 {
    color: #102a43;
    margin-bottom: 12px;
}

.carte p {
    color: #637381;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bouton {
    display: inline-block;
    background: #20a886;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: bold;
}

.bouton:hover {
    background: #16866d;
}

.informations {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
}

.informations p {
    margin-bottom: 20px;
    color: #637381;
}

@media (max-width: 800px) {
    .espace-membre {
        padding: 20px;
    }

    .cartes-membre {
        grid-template-columns: 1fr;
    }
}
.espace-membre {
    margin-left: 400px;
    padding: 40px;
    width: calc(100% - 400px);
}
/* PAGE MON PROFIL */

.profil-bienvenue {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #102a43;
    color: white;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 35px;
}

.profil-avatar {
    font-size: 45px;
    background: #ffffff;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profil-bienvenue h2 {
    color: #36c5a0;
    margin-bottom: 10px;
}

.profil-bienvenue p {
    margin-bottom: 15px;
}

.statut-membre {
    display: inline-block;
    background: #36c5a0;
    color: #102a43;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.profil-section > h2 {
    color: #102a43;
    margin-bottom: 20px;
}

.profil-cartes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.profil-carte {
    background: white;
    padding: 25px;
    border: 1px solid #e4e9ed;
    border-radius: 15px;
}

.profil-icone {
    font-size: 32px;
    margin-bottom: 15px;
}

.profil-carte h3 {
    color: #102a43;
    margin-bottom: 12px;
}

.profil-carte p {
    color: #637381;
    line-height: 1.6;
    margin-bottom: 20px;
}

.profil-assistance {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.profil-assistance h2 {
    color: #102a43;
    margin-bottom: 12px;
}

.profil-assistance p {
    color: #637381;
    margin-bottom: 20px;
}

@media (max-width: 1000px) {
    .profil-cartes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .profil-cartes {
        grid-template-columns: 1fr;
    }

    .profil-bienvenue {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* PAGE CONTACT : ORDINATEUR ET TÉLÉPHONE */

.layout-contact .contact-contenu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 25px;
    align-content: start;
    padding: 40px;
    background: #f4f7f9;
    min-width: 0;
}

.layout-contact .contact-contenu h2,
.layout-contact .contact-contenu > p {
    grid-column: 1 / -1;
}

.layout-contact .contact-contenu h2 {
    color: #36c5a0;
    font-size: 32px;
}

.layout-contact .contact-contenu > p {
    color: #637381;
}

.layout-contact .contact-contenu form {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 30px;
    margin: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(16, 42, 67, 0.08);
}

.layout-contact .contact-contenu label {
    color: #102a43;
    font-weight: bold;
}

.layout-contact .contact-contenu input,
.layout-contact .contact-contenu textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    font: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
}

.layout-contact .contact-contenu input:focus,
.layout-contact .contact-contenu textarea:focus {
    outline: none;
    border-color: #36c5a0;
    box-shadow: 0 0 0 3px rgba(54, 197, 160, 0.15);
}

.layout-contact .contact-contenu button {
    padding: 13px;
    background: #36c5a0;
    color: #102a43;
    border: none;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.layout-contact .contact-contenu button:hover {
    background: #20a886;
    color: white;
}

/* BOX DES COORDONNÉES */

.layout-contact .infos-contact {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
    width: 100%;
    min-height: 500px;
    padding: 35px;
    background: linear-gradient(145deg, #d9f5ed, #ffffff);
    border: 1px solid #36c5a0;
    border-radius: 16px;
}

.layout-contact .infos-contact h3 {
    color: #16866d;
    font-size: 24px;
    margin-bottom: 25px;
}

.layout-contact .infos-contact > p {
    color: #334155;
    line-height: 1.8;
    margin-bottom: 25px;
    overflow-wrap: anywhere;
}

.layout-contact .infos-contact strong {
    color: #16866d;
}

.layout-contact .contact-message {
    margin-top: 30px;
    padding: 20px;
    background: #d9f5ed;
    border-left: 4px solid #36c5a0;
    border-radius: 10px;
}

.layout-contact .contact-message h4 {
    color: #16866d;
    margin-bottom: 8px;
}

.layout-contact .contact-message p {
    color: #334155;
    font-size: 14px;
}

/* TÉLÉPHONES ET TABLETTES */

@media (max-width: 800px) {
    .layout-contact {
        display: block;
        width: 100%;
        margin-left: 0;
    }

    .layout-contact .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .layout-contact .contact-contenu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 25px 18px;
    }

    .layout-contact .contact-contenu h2 {
        font-size: 28px;
    }

    .layout-contact .contact-contenu form {
        width: 100%;
        padding: 20px;
    }

    .layout-contact .infos-contact {
        min-height: auto;
        padding: 25px 20px;
    }

}
        

/* CORRECTIONS MOBILES POUR TOUT LE SITE */

@media (max-width: 800px) {

    /* Empêcher le site de dépasser l'écran */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    /* Menu latéral */
    .sidebar,
    .layout-contact .sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .logo {
        margin-bottom: 20px;
    }

    /* En-tête et pied de page */
    header,
    footer {
        width: 100%;
        margin-left: 0;
    }

    header {
        min-height: auto;
        padding: 25px 20px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
    }

    footer strong {
        margin-left: 0;
    }

    /* Annuler les décalages réservés au menu */
    .hero,
    .features,
    .services,
    .espace-membre,
    .layout-contact {
        margin-left: 0;
        width: 100%;
    }

    .espace-membre {
        padding: 25px 20px;
    }

    /* Accueil */
    .hero {
        min-height: auto;
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }

    .hero h2 {
        font-size: 34px;
    }

    .hero-image {
        width: 100%;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
    }

    .buttons {
        flex-wrap: wrap;
    }

    /* Cartes et services */
    .features,
    .services,
    .cartes-membre,
    .profil-cartes {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .features,
    .services {
        padding: 35px 20px;
    }

    .feature,
    .service-card,
    .carte,
    .profil-carte {
        min-width: 0;
        padding: 25px;
    }

    /* Profil */
    .profil-bienvenue {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Contact */
    .layout-contact {
        display: block;
        min-height: auto;
    }

    .layout-contact .contact-contenu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        min-width: 0;
        padding: 25px 18px;
    }

    .layout-contact .contact-contenu form,
    .layout-contact .infos-contact {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .layout-contact .infos-contact {
        min-height: auto;
        padding: 25px 20px;
    }

    /* Images et champs */
    img,
    input,
    textarea {
        max-width: 100%;
    }

    /* Petites sections de contact */
    .contact-section {
        margin: 0 15px 35px;
        padding: 30px 20px;
    }
}

/* Très petits téléphones */
@media (max-width: 400px) {

    .hero h2 {
        font-size: 29px;
    }

    .hero,
    .features,
    .services {
        padding-left: 15px;
        padding-right: 15px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .layout-contact .contact-contenu {
        padding: 20px 12px;
    }

    .layout-contact .contact-contenu form {
        padding: 18px;
    }
}

@media (max-width: 800px) {
    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.traitement-contact {
    margin-left: 400px;
    min-height: 70vh;
    justify-content: center;
    align-items: center;
    text-align: center;
}   
@media screen and (max-width: 768px){
    .traitement-contact {
	margin-left: 0;
	padding: 20px;
	min-height: 70vh;
	width: 100%;
	box-sizing: border-box;
    }
}	
