/* 🔹 Définition des couleurs */
:root {
    --primary-color: #F0F4F8;       /* Fond général : bleu très clair */
    --secondary-color: #5f6482;     /* Bleu principal choisi */
    --accent-color: #0a9396;        /* Turquoise pour les éléments interactifs */
    --text-color: #333333;          /* Texte sombre pour la lisibilité */
    --hover-color: #5f6482;         /* Bleu au survol */
    --font-body: 'Poppins', sans-serif;
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

header.scrolled .logo {
    height: 40px;
    width: auto;
}

header.scrolled h1 {
    font-size: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
}

.image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

body {
    background: var(--primary-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* 🔹 HEADER */
header {
    background: var(--secondary-color);
    padding: 20px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 80px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav li {
    list-style: none;
}

.header-nav a {
    color: #FAEBD7;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* 🔹 SECTION PRÉSENTATION */
.presentation,
.diapo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 10%;
    gap: 50px;
    flex-wrap: wrap;
}

.card,
.photo {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-color), #f9a8d4);
    -webkit-background-clip: text;
    color: #FAEBD7;
}

h2 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--accent-color), #f9a8d4);
    -webkit-background-clip: text;
    color: #5f6482;
}

.contact-info {
    color: #5f6482;
    margin-top: 20px;
    font-size: 16px;
    opacity: 0.8;
}

/* 🔹 CONTACT */
.contact {
    text-align: center;
    padding: 50px 10%;
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #f9a8d4);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--secondary-color);
}

/* 🔹 FOOTER */
footer {
    background: var(--secondary-color);
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    margin-top: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* 🔹 FORMULAIRE DE CONTACT */
.contact-form {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form h2 {
    font-size: 30px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.input-container {
    margin-bottom: 15px;
}

.input-container label {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.input-container input,
.input-container select,
.input-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-color);
    background-color: #fff;
}

.input-container input:focus,
.input-container select:focus,
.input-container textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.input-container textarea {
    resize: vertical;
    height: 120px;
}

.error {
    color: red;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* 🔹 BOUTON ENVOYER */
button {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: var(--hover-color); /* bleu au survol */
}

/* 🔹 DIAPORAMA */
.mySlides {
    flex: 0 0 30%;
    margin: 0 50px;
    display: block;
    position: relative;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot:hover, .active {
    background-color: #717171;
}

@media (max-width: 600px) {
    .slideshow-container {
        flex-direction: column;
        max-width: 100%;
    }

    .mySlides {
        flex: 1 0 80%;
        margin: 10px 0;
    }

    .prev, .next {
        padding: 12px;
        font-size: 18px;
    }

    .dot {
        height: 10px;
        width: 10px;
    }
}

.slideshow-container {
    position: relative;
    max-width: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    padding: 10px;
}

.slideshow-container img {
    max-height: 200px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.presentations {
    padding: 50px 10%;
    text-align: center;
}

.presentations h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 20px;
}


/* Modale d'image agrandie */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.close:hover {
  color: #bbb;
}


