@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #2d6e4a;
    --primary-dark: #1e5a3a;
    --secondary: #c67424;
    --gradient-start: #2d6e4a;
    --gradient-end: #3d8b5c;
    --dark: #3d2817;
    --light: #f5f3e8;
    --text: #3d2817;
    --border: #9a9d3a;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

.valeurs-text-mobile {
    display: none;
}

.valeurs-mobile {
    display: none;
}

.valeurs-image-container {
    margin-top: 4rem;
}

.valeurs-title-mobile {
    display: none;
}

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

/* ===== HEADER & NAVIGATION ===== */

header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    position: absolute;
    left: 2rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: white;
}

.social-icons a:nth-child(1) {
    background: #1877f2;
}

.social-icons a:nth-child(2) {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: 90px;
}

.logo-nav {
    margin: 0 1rem;
}

.logo-mobile {
    display: none;
}

.logo-desktop img {
    height: 120px;
    width: auto;
}

.logo-desktop-footer img {
    height: 170px;
    width: 210px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* ===== HERO SECTION ===== */

.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 250px 2rem 120px;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../photos/fond_prairie.jpg") center/cover;
    opacity: 0.25;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
 
.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary) 0%, rgba(16,185,129,0.8) 100%);
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.9rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero h1 span {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 0.5rem 1.5rem;
    margin: 0.3rem 0;
    border-radius: 8px;
}

.hero h1 a {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 0.5rem 1.5rem;
    margin: 0.3rem 0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1.1rem 2.8rem;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: linear-gradient(90deg, var(--secondary) 0%, #14b8a6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.4);
}

/* ===== SECTIONS ===== */

section {
    padding: 100px 0;
    scroll-margin-top: 120px;
}

h2 {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== COLLECTIF ===== */

.collectif {
    background: white;
    color: var(--text);
}

.collectif h2 {
    color: var(--primary);
}

.collectif-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.collectif-photo {
    width: 100%;
    overflow: visible;
}

.img-wrapper {
    position: relative;
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-icon:hover {
    opacity: 1;
}

.collectif-photo img {
    transition: all 0.3s ease;
}

.equipe-photo img {
    transition: all 0.3s ease;
}

.collectif-photo img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
}

.equipe-photo img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1000;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
}

.collectif-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.collectif-text ul {
    list-style: none;
    padding-left: 0;
}

.collectif-text li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #636e72;
}

.collectif-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== VISION ===== */

.vision {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.vision h2 {
    color: white;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text h2 {
    text-align: left;
    margin-bottom: 2rem;
    color: white;
}

.lead {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
}

.vision-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
}

.vision-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== PROGRAMME ===== */

.programme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.programme-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
}

.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(37,99,235,0.2);
    border-left-color: var(--secondary);
}

.card-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.programme-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
}

.programme-card ul {
    list-style: none;
}

.programme-card li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #636e72;
}

.programme-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== ÉQUIPE ===== */

.equipe {
    background: white;
    color: var(--text);
    padding-bottom: 50px; /* Réduit l'espace en dessous */
}

.equipe h2 {
    color: var(--primary);
}

.equipe-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.photo-placeholder {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-align: center;
    /**box-shadow: 0 8px 30px rgba(37,99,235,0.3);**/
}

.equipe-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
}

.equipe-text h3::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    margin-left: -2rem;
    margin-top: -1rem;
}

.equipe-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.equipe-values {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(16,185,129,0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.value-item strong {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
}

.value-item span {
    color: var(--text);
}

/* ===== TROMBINOSCOPE ===== */

.trombinoscope-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.trombinoscope-card:focus-visible {
    outline: 3px solid rgba(198, 116, 36, 0.55);
    outline-offset: 3px;
}

.trombinoscope-card::after {
    content: "🔍";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(180, 180, 180, 0.82);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.trombinoscope-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    opacity: 0.05;
    border-radius: 0 0 0 100%;
}

.trombinoscope-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(37,99,235,0.2);
    border-left-color: var(--secondary);
}

.trombinoscope-card:hover::after,
.trombinoscope-card:focus-visible::after {
    content: "Cliquer ici";
    opacity: 1;
}


.trombinoscope-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.trombinoscope-card-content {
    flex: 1;
}

.trombinoscope-card-content p {
    color: #636e72;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.mobile-loupe {
    display: none;
    position: absolute;
    bottom: 6px;
    right: 12px;
    background: rgba(140, 140, 140, 0.9);
    color: #fff;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1;
}

/* ===== CONTACT ===== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info p {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: auto;
}

.method a.contact-email {
    display: inline !important;
    width: auto !important;
    max-width: fit-content;
}

.method strong {
    color: var(--dark);
    font-size: 1rem;
}

.method span {
    color: var(--primary);
    font-weight: 500;
}

.social-inline {
    display: flex;
    gap: 1rem;
}

.social-inline a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.social-inline a:hover {
    color: var(--primary-dark);
}

.contact-form {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 1.1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}

/* ===== FOOTER ===== */

footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    color: white;
    padding: 1rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo strong {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.footer-logo p {
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px; /* Tous les coins arrondis */
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalFadeIn 0.3s;
}

.modal-content_mention {
    background-color: white;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.3s;
    padding: 2.5rem 3rem;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

#legal-modal {
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    transition: all 0.3s;
    border: none;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    overflow-y: auto; /* Scroll ici */
    max-height: 90vh; /* Hauteur max pour le scroll */
}

.modal-body img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#modal-text {
    flex: 1;
}

#modal-text p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

#modal-text p:first-child {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* ===== MÉTÉO ===== */

.header-message {
    cursor: pointer;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #2d6e4a 0%, #3d8b5c 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    margin: 20px;
    transition: opacity 0.3s;
}

.header-message:hover {
    opacity: 0.9;
}

#open-meteo {
    cursor: pointer;
    font-weight: 600;
}

#meteo-modal .modal-content {
    display: block;
}

#meteo-modal .modal-body {
    display: block;
    padding: 2.5rem;
}

#meteo-modal .meteo-table {
    width: 100%;
    max-width: 420px;
    margin: 1rem auto;
    border-collapse: collapse;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.95rem;
}

#meteo-modal .meteo-table tr {
    border-bottom: 1px solid #e5e7eb;
}

#meteo-modal .meteo-table tr:last-child {
    border-bottom: none;
}

#meteo-modal .meteo-table th,
#meteo-modal .meteo-table td {
    padding: 12px 16px;
    text-align: left;
    border: none;
}

#meteo-modal .meteo-table th {
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2d6e4a 0%, #3d8b5c 100%);
    text-align: center;
}

#meteo-modal .meteo-table .meteo-label {
    font-weight: 600;
    color: #2d6e4a;
    text-align: left;
}

#meteo-modal .meteo-table .meteo-value {
    color: #111;
    font-weight: 500;
    text-align: right;
}

#meteo-modal h3 {
    color: #2d6e4a;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

#meteo-modal h4 {
    color: #2d6e4a;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== BOUTON RETOUR EN HAUT ===== */

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTopBtn:hover {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

#backToTopBtn.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    nav {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
    }
    
    .social-icons {
        position: static;
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .logo-mobile img {
        height: 60px;
        width: 60px;
        transform: translateY(6px);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        z-index: 10;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        margin-left: 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 9;
    }

    nav ul.active {
        display: flex;
    }

    .hero {
        padding: 140px 1rem 80px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    h2 {
        font-size: 2rem;
    }

    .vision-grid,
    .collectif-content,
    .equipe-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vision-text h2 {
        text-align: center;
    }

    .programme-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .trombinoscope-card {
        flex-direction: column;
        text-align: center;
    }

    .trombinoscope-card img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body {
        flex-direction: column;
        padding: 2rem;
    }

    .modal-body img {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .valeurs-title-mobile {
        display: block;
        font-size: 2rem;
        font-weight: 700;
        color: var(--primary);
        text-align: center;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }

    .valeurs-image-container {
        margin-top: 0.5rem;
    }

    .valeurs-mobile {
        display: block;
        width: 150%;
        height: auto;
        max-width: none;
    }

    .valeurs-desktop {
        display: none;
    }

    .valeurs-text-mobile {
        display: block;
        margin-top: 2rem;
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .valeurs-text-mobile ul {
        list-style: none;
        padding: 0;
        text-align: left;
    }

    .valeurs-text-mobile li {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .equipe h2 {
        margin-top: 0;
    }

    #filsrouges {
        margin-bottom: -9rem;
    }

    .equipe-content {
        gap: 1rem;
    }

    .equipe h2 {
        margin-bottom: 0.5rem;
    }

    .trombinoscope-card {
        padding-bottom: 3.2rem;
    }

    .trombinoscope-card::after {
        display: none;
    }

    .mobile-loupe {
        display: block;
    }
}

/* ===== DIVERS ===== */

.contact-email {
    display: inline;
    pointer-events: auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.checkbox-wrapper input[type="checkbox"] {
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    accent-color: #2d6e4a !important;
}

.checkbox-wrapper label {
    flex: 1 !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== RESPONSIVE YOUTUBE VIDEO ===== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

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

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: 4rem 0;
    background: var(--light);
    text-align: center;
}

.video-section h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.video-section .section-intro {
    margin-bottom: 2rem;
    color: var(--text);
    font-size: 1.1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .video-section .section-intro {
        white-space: normal;
        font-size: 1rem;
    }
    
    .video-section {
        padding: 3rem 0;
    }
    
    .video-section h2 {
        font-size: 2rem;
    }
}