/* -------------------------------
   RESET DE BASE
-------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* -------------------------------
   STRUCTURE GENERALE
-------------------------------- */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Le contenu prend tout l’espace disponible */
main, section {
    flex: 1;
}

/* -------------------------------
   HEADER
-------------------------------- */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298), 
                url('../assets/moi.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}


/* -------------------------------
   NAVIGATION
-------------------------------- */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

nav ul li a.active {
    color: #ffcc00;
    text-decoration: underline;
}

/* -------------------------------
   TEXTE DU HEADER
-------------------------------- */
header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    font-style: italic;
}

/* -------------------------------
   SECTIONS
-------------------------------- */
section#welcome, 
section#formation {
    padding: 3rem 2rem;
    text-align: center;
    max-width: 900px;
    margin: auto;
}

/* -------------------------------
   SECTION CONTACT - BOX
-------------------------------- */
section#contact {
    display: flex;
    justify-content: center; /* centre horizontalement */
    align-items: center;
    flex-direction: column;
    padding: 3rem 1rem;
}

.contact-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Formulaire à l’intérieur de la box */
.contact-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-box form input,
.contact-box form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-box form button {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-box form button:hover {
    background: #ffcc00;
    color: #1e3c72;
}

/* Infos directes */
.contact-info {
    text-align: center;
    font-size: 1.1rem;
}

.contact-info a {
    color: #1e3c72;
    font-weight: bold;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}


section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e3c72;
    text-transform: uppercase;
}

section p, section ul {
    font-size: 1.1rem;
    line-height: 1.8;
}

section ul {
    list-style: disc inside;
    text-align: left;
    max-width: 600px;
    margin: 1rem auto;
}



#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 0.8rem 1rem;
    border: none;
    background: #1e3c72;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: 0.3s;
}

#scrollTopBtn:hover {
    background: #ffcc00;
    color: #1e3c72;
}


/* -------------------------------
   FOOTER
-------------------------------- */
footer {
    background: #1e3c72;
    color: white;
    padding: 1rem;
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}


section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-photo img {
    border-radius: 50%; /* rond */
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px; /* centré + espace en bas */
    border: 3px solid #333;
}
