* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #1E5059 0%, #2a6f7a 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.logo-text:hover {
    opacity: 0.9;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    cursor: pointer;
}

nav a:hover {
    opacity: 0.8;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: white;
    color: #325E65;
}

.nav-link.active {
    background-color: white;
    color: #325E65;
    font-weight: 600;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(30, 80, 89, 0.8), rgba(42, 111, 122, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231E5059" width="1200" height="600"/><path fill="%232a6f7a" d="M0 400 Q300 350 600 400 T1200 400 V600 H0 Z"/><circle fill="%2338899a" cx="200" cy="100" r="80" opacity="0.3"/><circle fill="%2338899a" cx="900" cy="150" r="120" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 3rem 0rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero .container {
    padding: 1rem 2rem 0.5rem;
    margin-top: 5rem;
}

.hero .message-bubble {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.photo_tete_liste img {
    height: 300px !important;
    width: 300px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.image_liste img {
    height: auto !important;
    max-width: 100%;
    max-height: 450px;
    margin-top: 30px;
}

/* BUTTONS */
.cta-button {
    display: inline-block;
    background: white;
    color: #1E5059;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* VALUES CARDS */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: linear-gradient(135deg, #e8f4f5 0%, #d4eaed 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    border: 2px solid #b8dde2;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    color: #1E5059;
    margin-bottom: 1rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* TEAM MEMBERS */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #1E5059;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1rem;
    text-align: center;
    background: white;
    min-height: 70px;
}

.member-info h3 {
    color: #1E5059;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.member-info .role {
    display: none;
}

.member-info p {
    display: none;
}

.team-leaders {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 400px));
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.team-leaders .team-member {
    height: auto;
}

/* PROGRAMME */
.program-section {
    margin-bottom: 3rem;
}

.program-section h2 {
    color: #1E5059;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #38899a;
}

.program-items {
    display: grid;
    gap: 1.5rem;
}

.program-item {
    background: white;
    padding: 1.5rem;
    border-left: 4px solid #2a6f7a;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.program-item h3 {
    color: #1E5059;
    margin-bottom: 0.8rem;
}

/* VIDEOS */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-accueil {
    max-width: 700px; /* Largeur maximale de la vidéo (ajustable) */
    width: 100%; /* Prend toute la largeur disponible jusqu'au max-width */
    margin: 30px auto; /* Centrage horizontal + espacement vertical */
    aspect-ratio: 16 / 9; /* Maintient le ratio 16:9 automatiquement */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.video-accueil iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}


/* GALERIE */
.galerie-section {
    margin-bottom: 10px;
}

.galerie-section h2 {
    font-size: 1.7rem;
    margin: 40px 0 20px;
    text-align: center;
    color: #333;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 20px 40px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
}

.gallery img.small {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

.gallery.small-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.gallery.small-gallery img {
    width: 250px;
    height: auto;
    object-fit: contain;
}

.gallery.mid-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.gallery.mid-gallery img {
    width: 100%;
    max-width: 750px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Classe medium-gallery pour les photos de taille intermédiaire */
.gallery.medium-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap; /* Permet le passage à la ligne sur mobile */
}

.gallery.medium-gallery img {
    width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery.medium-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
}


/*Photo Justine*/
.redimension-member-photo img {
    object-fit: cover;
    object-position: 50% 20%;
    width: 100%;
}

.redimension-member-photo2 img {
    object-fit: cover;
    object-position: 0% 10%;
    width: 100%;
}

.redimension-member-photo-emilie-C img {
    object-fit: cover;
    object-position: 0% 75%;
    width: 100%;
}

.redimension-member-photo-bruno img {
    object-fit: cover;
    object-position: 0% 15%;
    width: 100%;
}

.redimension-member-photo-valerie img {
    object-fit: cover;
    object-position: 0% 30%;
    width: 100%;
}

.redimension-member-photo-celine img {
    object-fit: cover;
    object-position: 0% 30%;
    width: 100%;
}

.redimension-member-photo-jj img{
    object-fit: cover;
    object-position: 0% 60%;
    width: 100%;
}

.redimension-member-photo-jerome img {
    object-fit: cover;
    object-position: 0% 40%;
    width: 100%;
}

.redimension-member-photo-sylvain img {
    object-fit: cover;
    object-position: 0% 40%;
    width: 100%;
}


.redimension-member-photo-greg img {
    object-fit: cover;
    object-position: 100% 100%;
    width: 100%;
}

.redimension-member-photo-magali img{
    object-fit: cover;
    object-position: 0% 40%;
    width: 100%;
}

.redimension-member-photo-nathalie img{
    object-fit: cover;
    object-position: 0% 40%;
    width: 100%;
}

.redimension-member-photo-laetitia img{
    object-fit: cover;
    object-position: 0% 100%;
    width: 100%;
}

.redimension-member-photo-pascale img{
    object-fit: cover;
    object-position: 0% 37%;
    width: 100%;
}

.redimension-member-photo-claire img{
    object-fit: cover;
    object-position: 50% 40%;
    width: 100%;
}

.redimension-member-photo-enzo img{
    object-fit: cover;
    object-position: 0% 3%;
    width: 100%;
}

.redimension-member-photo-florian img{
    object-fit: cover;
    object-position: 0% 19%;
    width: 100%;
}

.redimension-member-photo-natalie-coll img{
    object-fit: cover;
    object-position: 0% 75%;
    width: 100%;
}

.redimension-member-photo-laurent img{
    object-fit: cover;
    object-position: 0% 39%;
    width: 100%;
}

/* FORMULAIRE DE CONTACT */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #d9d9d9;
    font-size: 16px;
    font-family: inherit;
    background: #f8f8f8;
    transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2f6b75;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47,107,117,0.2);
}

.contact-form button {
    padding: 15px;
    background: #2f6b75;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.contact-form button:hover {
    background: #244f58;
}

/* MESSAGE BUBBLE */
.message-bubble {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem 2.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    color: #2c3e50;
    font-size: 1.25rem;
    position: relative;
}

/* FOOTER */
footer {
    background: #1E5059;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* RESPONSIVE - TABLETTES */
@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero .container {
        padding: 0.5rem 1rem;
        margin-top: 2rem;
    }
    
    nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        height: 30px !important;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    /* Page Liste - Réduction de la police */
    .container > p {
        font-size: 1rem !important;
    }
    
    .values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid,
    .team-leaders {
        grid-template-columns: 1fr;
    }
    
    .member-photo img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Index - PP centrée et rétrécie */
    .photo_tete_liste {
        text-align: center;
        margin: 0 auto;
    }
    
    .photo_tete_liste img {
        height: 200px !important;
        width: 200px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .image_liste img {
        height: auto !important;
        max-width: 100%;
        max-height: 400px;
        margin-top: 20px;
    }
    
    .gallery.mid-gallery img {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
    
    .program-section h2 {
        font-size: 1.3rem;
    }
    
    .program-item {
        padding: 1rem;
    }
    
    .program-item h3 {
        font-size: 1rem;
    }
    
    .program-item p {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h2.responsive-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .value-card h3 {
        font-size: 1.1rem;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }

    .video-accueil {
        max-width: 90%;
        margin: 20px auto;
    }
    
    /* Message bubble - Citation proportionnée */
    .message-bubble {
        padding: 1.2rem;
        font-size: 0.9rem;
        margin: 1rem auto;
        max-width: 90%;
    }
    
    .message-bubble strong {
        font-size: 1rem;
    }
     .gallery.medium-gallery {
        gap: 20px;
    }
    
    .gallery.medium-gallery img {
        width: 300px;
        max-width: 90%;
    }
}

/* RESPONSIVE - MOBILES */
@media (max-width: 480px) {
    body {
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    nav ul {
        gap: 0.3rem;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    .value-icon img {
        height: 70px !important;
    }
    
    h1 {
        font-size: 1.3rem !important;
    }
    .video-accueil {
        max-width: 95%;
        margin: 15px auto;
    }
    .gallery.medium-gallery {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .gallery.medium-gallery img {
        width: 100%;
        max-width: 320px;
    }
}

/* CSS "Liste" --> Fond bleu + Description + Rôle. A remplacer de team-member à member-info p :
.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #38899a 0%, #2a6f7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: #1E5059;
    margin-bottom: 0.5rem;
}

.member-info .role {
    color: #2a6f7a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
*/
