body {
margin: 0;
}

.header-1 {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #f2f2f2;
    padding: 30px;
}   

.header-2 {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #fcfcfc;
    padding: 30px;
}

.header-1-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #664dd4;
}

.header-2 a {
    text-decoration: none;
    color: #
    font-weight: bold;
    font-size: 25px;
    padding: 10px;
    size: 18px;
}

h1 {
    font-size: 36px;
    margin: 0;
    color: black;
    margin-bottom: 2Opx;
}

h2 {
    font-size: 24px;
    margin: 0;
    color: #664dd4;
}

main p {
    font-size: 18px;
    line-height: 1.5;
    margin: 20px 0;
    text-align: center;
}   

/* ==========================================
   Section Formulaire de Contact
   ========================================== */

#contact {
    width: 80%;               /* Prend 80% de la largeur de la page */
    max-width: 800px;         /* Limite la largeur max pour les grands écrans */
    margin: 40px auto;        /* Centre le bloc horizontalement */
    padding: 30px;
    background-color: #f9f9f9; /* Fond discret pour faire ressortir le formulaire */
    border-radius: 12px;      /* Coins arrondis */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Petite ombre douce */
    box-sizing: border-box;
}

#contact h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    font-family: Arial, sans-serif;
}

/* Organisation des champs Nom et Email côte à côte */
.form-nom-email {
    display: flex;
    gap: 20px; /* Espace entre la colonne Nom et la colonne Email */
    margin-bottom: 20px;
}

.form-column {
    flex: 1; /* Les deux colonnes occupent la même largeur */
    display: flex;
    flex-direction: column;
}

/* Alignement vertical pour le champ message */
#contact form {
    display: flex;
    flex-direction: column;
}

/* Styles pour les labels */
#contact label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-family: Arial, sans-serif;
}

/* Styles pour les champs de saisie textuels et le textarea */
#contact input[type="text"],
#contact input[type="e-mail"],
#contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input[type="text"]:focus,
#contact input[type="e-mail"]:focus,
#contact textarea:focus {
    border-color: #2c3e50;
    outline: none;
    box-shadow: 0 0 5px rgba(44, 62, 80, 0.3);
}

#contact textarea {
    resize: vertical; /* Permet à l'utilisateur de redimensionner uniquement en hauteur */
    margin-bottom: 25px;
}

/* Bouton d'envoi */
#contact .cta {
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    align-self: center; /* Centre le bouton au milieu du formulaire */
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#contact .cta:hover {
    background-color: #1a252f;
}

#contact .cta:active {
    transform: scale(0.98);
}

/* Adaptation pour les écrans de téléphone */
@media (max-width: 600px) {
    #contact {
        width: 90%; /* Prend un peu plus de place sur mobile pour rester lisible */
        padding: 20px;
    }
    
    .form-nom-email {
        flex-direction: column; /* Passe Nom et Email l'un en dessous de l'autre */
        gap: 15px;
    }
}


/* ==========================================
   1. RESPONSIVE TABLETTES (Max 720px)
   ========================================== */
@media (max-width: 720px) {
    /* Ajustement global des marges du corps de page */
    body {
        margin: 0;
        padding: 0 10px;
    }

    /* Le header empile le logo et le texte verticalement */
    .header-1 {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .header-1 img {
        margin-bottom: 15px;
    }

    /* Menu de navigation empilé ou plus compact */
    .header-2 {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-2 a {
        display: block;
        padding: 10px;
    }

    /* Le formulaire de contact prend un peu plus de place sur tablette */
    #contact {
        width: 90%;
        padding: 25px;
    }
}

/* ==========================================
   2. RESPONSIVE SMARTPHONES (Max 480px)
   ========================================== */
@media (max-width: 480px) {
    /* Réduction de la taille des titres du header */
    .header-1-text h1 {
        font-size: 1.4rem;
    }

    .header-1-text h2 {
        font-size: 1rem;
    }

    /* Réduction du logo pour qu'il ne prenne pas tout l'écran */
    .header-1 img {
        width: 100px;
        height: auto;
    }

    /* Formulaire de contact adapté aux petits écrans */
    #contact {
        width: 95%;
        padding: 15px;
        margin: 20px auto;
    }

    #contact h2 {
        font-size: 1.2rem;
    }

    /* Les champs Nom et Email passent l'un sous l'autre */
    .form-nom-email {
        flex-direction: column;
        gap: 15px;
    }

    /* Le bouton d'envoi prend toute la largeur pour faciliter le clic */
    #contact .cta {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    /* Ajustement de la taille du texte général des paragraphes */
    main p {
        font-size: 14px;
        padding: 0 5px;
    }
}













