/* Polices locales */
@font-face {
    font-family: 'TT Milks Casual';
    src: url('../fonts/tt-milks-casual-pie-base.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat-Light';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apparat-Extrabold';
    src: url('../fonts/apparat-extrabold.otf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Variables CSS inspirées du PDF */
:root {
    --primary-green: #A7BD39;
    --primary-blue: #1E3A8A;
    --primary-purple: #452F92;
    --accent-yellow: #FFDC01;
    --text-dark: #191255;
    --text-light: #6b7280;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Classe pour masquer via JavaScript */
.hidden-by-visibility {
    display: none !important;
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px; /* Taille de base */
}

@media (max-width: 768px) {
    body {
        font-size: 14px; /* Réduction de 12.5% pour mobile */
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px; /* Réduction supplémentaire pour petits mobiles */
    }
}

/* Ruban tricolore */
.french-ribbon {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    z-index: 2;
}

.french-ribbon.hidden {
    display: none;
}

.ribbon-image {
    width: auto;
    height: 100%;
    display: block;
}

/* Header avec image de fond et taches jaunes */
.header {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('../crossey.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 0.75rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 130px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-purple);
    opacity: 0.75;
    z-index: 1;
}

.header-curved-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: 30%;
    background: #A7BD39;
    z-index: 2;
    clip-path: polygon(0 100%, 10% 90%, 20% 82%, 30% 74%, 40% 67%, 50% 60%, 60% 53%, 70% 43%, 80% 33%, 90% 18%, 100% 0, 100% 100%);
}

.header-alert-icon {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 50px;
    height: 50px;
    z-index: 4;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s infinite;
}

.header-alert-icon:hover {
    transform: scale(1.1);
}

.header-alert-icon.viewed {
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Taches décoratives jaunes */
.yellow-spots {
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    width: 80px;
    height: auto;
    pointer-events: none;
    z-index: 10;
}

.spots-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

.main-title {
    font-family: 'Apparat-Extrabold', 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 0.25rem;
    color: #FFDC01;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    text-align: center;
}

.title-wrapper {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.title-logo-left,
.title-logo-right {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    margin-top: -5px;
}

.title-logo-right {
    transform: scaleX(-1);
}

.title-logo {
    display: none;
}

.title-line-top,
.title-line-bottom {
    display: none;
}

#title-text {
    position: relative;
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Ligne du haut */
#title-text::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, 
        transparent 0%, 
        #F5F4F9 5%,
        #F5F4F9 20%,
        #F5F4F9 75%,
        #F5F4F9 95%,
        transparent 100%
    );
}

/* Ligne du bas */
#title-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 3px;
    background: 
        linear-gradient(#F5F4F9, #F5F4F9) 0 0 / 3px 15px no-repeat,
        linear-gradient(#F5F4F9, #F5F4F9) 100% 0 / 3px 15px no-repeat,
        linear-gradient(#F5F4F9, #F5F4F9) 0 100% / 100% 3px no-repeat;
    border-radius: 0 0 0 12px;
}

.slogan {
    font-family: 'Montserrat-Light', 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #F5F4F9;
    position: relative;
    z-index: 4;
    display: block;
    margin-bottom: 0.5rem;
}

/* Navigation Tabs - Mobile First */
.tabs-nav {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Burger menu pour mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 101;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    align-items: center;
    flex: 1;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none; /* Pour les liens <a> */
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 8px;
    background: #d1d5db;
    border-radius: 50% / 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(1px);
}

.tab-btn:hover {
    color: var(--text-dark);
}

.tab-btn:hover::after {
    opacity: 1;
}

.tab-btn.active {
    color: var(--primary-green);
}

.tab-btn.active::after {
    opacity: 1;
    background: var(--primary-green);
}

.tab-icon {
    font-size: 1.3rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    padding: 0 2rem;
}

.social-icons.social-icons-mobile {
    display: none;
    background: transparent;
    box-shadow: none;
    border: none;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 50%;
    background: transparent;
}

.social-link:hover {
    color: var(--primary-green);
    background: var(--bg-light);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    width: 100%;
}

/* Titre de page mobile uniquement */
.mobile-page-title {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    border-bottom: 3px solid var(--accent-yellow);
    padding-bottom: 0.5rem;
}

.mobile-page-title.hide {
    display: none !important;
}

.content-wrapper {
    animation: fadeIn 0.5s ease;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-content {
    display: none;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
}

/* Édito */
.edito-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-green);
}

.edito-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    border-bottom: 3px solid var(--accent-yellow);
    padding-bottom: 0.5rem;
}

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

.edito-text img {
    max-width: 40%;
    height: auto;
    float: left;
    margin: 0 1.5rem 1rem 0;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.edito-text img.img-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

@media (max-width: 768px) {
    .edito-text p,
    .edito-text ul,
    .edito-text ol,
    .edito-text li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .edito-text img {
        max-width: 100%;
        float: none;
        margin: 0 0 1.5rem 0;
        display: block;
    }
}

.edito-text ul,
.edito-text ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.edito-text li {
    margin-bottom: 0.75rem;
    text-align: justify;
}

.edito-text ul {
    list-style-type: disc;
}

.edito-text ol {
    list-style-type: decimal;
}

/* Section Title */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

/* Photo de groupe et description de l'équipe */
.team-group-photo {
    margin: 2rem auto 3rem;
    text-align: center;
    width: 100%;
}

.team-group-photo img {
    max-width: 75%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

.team-description {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem auto 3rem;
    max-width: 900px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-green);
}

.team-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

/* Trombinoscope */
.trombinoscope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.person-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-green);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

/* Carte spéciale pour la tête de liste */
.person-card-head {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-top: 4px solid var(--accent-yellow);
    box-shadow: 0 4px 12px rgba(255, 220, 1, 0.3);
}

.person-card-head:hover {
    box-shadow: 0 8px 20px rgba(255, 220, 1, 0.4);
}

.person-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1a1a1a;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary-green);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    max-width: min(300px, 90vw);
    width: max-content;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1001;
    margin-bottom: 0.5rem;
}

/* Tooltip de présentation plus large */
.person-presentation-tooltip {
    max-width: min(450px, 90vw);
    width: auto;
}

/* Positionnement à gauche */
.person-card.tooltip-left .person-tooltip {
    left: auto;
    right: 100%;
    top: 0;
    bottom: auto;
    transform: translateX(-10px);
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.person-card.tooltip-left .person-tooltip::after {
    left: 100%;
    top: 20px;
    transform: none;
    border: 8px solid transparent;
    border-left-color: #1a1a1a;
    border-top-color: transparent;
}

/* Positionnement à droite */
.person-card.tooltip-right .person-tooltip {
    left: 100%;
    right: auto;
    top: 0;
    bottom: auto;
    transform: translateX(10px);
    margin-left: 0.5rem;
    margin-bottom: 0;
}

.person-card.tooltip-right .person-tooltip::after {
    right: 100%;
    left: auto;
    top: 20px;
    transform: none;
    border: 8px solid transparent;
    border-right-color: #1a1a1a;
    border-top-color: transparent;
}

/* Désactiver les tooltips en mode mobile */
@media (min-width: 769px) {
    .person-card:hover .person-info-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

.person-card.tooltip-left:hover .person-info-tooltip {
    transform: translateX(0);
}

.person-card.tooltip-right:hover .person-info-tooltip {
    transform: translateX(0);
}

.person-presentation-tooltip {
    opacity: 0;
    visibility: hidden;
}

.person-card.show-presentation:hover .person-info-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
}

.person-card.show-presentation:hover .person-presentation-tooltip {
    opacity: 1;
    visibility: visible;
}

.person-card.tooltip-left.show-presentation:hover .person-presentation-tooltip {
    transform: translateX(0);
}

.person-card.tooltip-right.show-presentation:hover .person-presentation-tooltip {
    transform: translateX(0);
}

.person-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-green);
    box-shadow: var(--shadow-md);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.person-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.person-role {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* Dates Timeline */
.dates-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.dates-timeline::before {
    content: '';
    position: absolute;
    left: calc(3rem - 28px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 0;
}

.date-item {
    position: relative;
    margin-bottom: 2rem;
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

/* Trait épaissi pour les événements passés */
.date-item-past::before {
    content: '';
    position: absolute;
    left: calc(-3rem + 14px + 4px);
    top: 0;
    bottom: -2rem;
    width: 4px;
    background: var(--primary-green);
    z-index: 1;
}

/* Premier événement passé - prolonger le trait jusqu'à mi-chemin */
.date-item-past.first-past-event::before {
    top: -1rem;
}

/* Flèche à la fin du trait vert pointant vers le haut */
.date-item-past.first-past-event::after {
    content: '';
    position: absolute;
    left: calc(-3rem + 14px + 4px - 4px);
    top: calc(-1rem - 8px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--primary-green);
    z-index: 1;
}

/* Si c'est le dernier événement de la liste - s'arrêter au point */
.date-item-past:last-child::before {
    bottom: 50%;
}

/* Griser légèrement les cartes d'événements passés */
.date-item-past .date-content {
    opacity: 0.7;
    background: #f9f9f9;
}

.date-item-past .date-title,
.date-item-past .date-description {
    color: #6b7280;
}

.date-item-past .date-date,
.date-item-past .date-time {
    background: #e5e7eb;
    color: #6b7280;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.date-marker {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.date-dot {
    width: 28px;
    height: 28px;
    background-image: url('../images/logo_fond_violet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.date-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-purple);
}

.date-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.date-date,
.date-time {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-green);
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.date-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.date-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.date-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
/* Texte introductif du programme */
.programme-intro {
    margin-bottom: 2rem;
}

.programme-intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(165, 189, 57, 0.1), rgba(69, 47, 146, 0.1));
    border-left: 4px solid var(--primary-green);
    border-radius: var(--radius-md);
}

/* Grille de catégories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

/* Message quand le programme n'est pas actif */
.programme-inactive-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    min-height: 300px;
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.inactive-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.programme-inactive-message p {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    border-top: 4px solid var(--primary-green);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon-wrapper,
.category-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffebee, #fff9e6);
    border-radius: var(--radius-md);
}

.category-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.category-content {
    flex: 1;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-arrow {
    font-size: 2rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(10px);
}

/* Modal - Version mobile friendly */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: flex;
}

/* Bloquer le scroll du body quand la modal est ouverte */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.modal-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal-container.show {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-dark);
}

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

.modal-header {
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #ffebee, #fff9e6);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.modal-category-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.modal-category-icon .category-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.modal-category-info {
    flex: 1;
}

.modal-category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-category-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.5;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.modal-left,
.modal-right {
    padding: 0 2rem 2rem 2rem;
    overflow-y: auto;
    position: relative;
}

.modal-left {
    border-right: 2px solid var(--border-color);
    background: var(--bg-light);
}

.modal-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    background: var(--bg-light);
    padding: 1rem 2rem 0.5rem 2rem;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin: 0 -2rem 1rem -2rem;
}

.section-icon {
    font-size: 1.5rem;
}

/* Canvas pour les connexions */
.connection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Objectifs dans la modal */
.objectifs-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.objectif-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.objectif-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.objectif-card.selected {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #ffebee10, #fff9e610);
    box-shadow: var(--shadow-lg);
}

.objectif-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), #0a7116cc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.objectif-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Actions dans la modal */
.actions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.action-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideInRight 0.4s ease forwards;
    opacity: 0;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.action-card:hover {
    background: #ffebee;
    transform: translateX(-5px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.action-bullet {
    width: 35px;
    height: 35px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.action-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Messages "pas de sélection" */
.no-selection,
.no-actions-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-light);
}

.no-selection-icon,
.no-actions-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-selection p,
.no-actions-message p {
    font-size: 1.1rem;
}

/* Modal Profil Personne */
.person-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.person-modal-overlay.active {
    display: flex;
}

.person-modal-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.person-modal-overlay.active .person-modal-container {
    transform: scale(1);
    opacity: 1;
}

.person-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--text-dark);
}

.person-modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.person-modal-content {
    padding: 2rem;
}

.person-modal-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.person-modal-photo {
    flex-shrink: 0;
}

.person-modal-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid var(--primary-green);
    box-shadow: var(--shadow-md);
}

.person-modal-info {
    flex: 1;
}

.person-modal-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.person-modal-profession {
    font-style: italic;
    color: var(--text-light);
    font-size: 1rem;
}

.person-modal-presentation {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.person-modal-presentation p {
    margin-bottom: 1rem;
}

.person-modal-presentation ul,
.person-modal-presentation ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.person-modal-presentation li {
    margin-bottom: 0.5rem;
}

/* Footer avec fond violet */
.footer {
    position: relative;
    margin-top: 4rem;
    height: 70px;
    overflow: hidden;
    background: var(--primary-purple);
}

.footer-background {
    display: none;
}

.footer-curved-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 30%;
    background: #A7BD39;
    z-index: 2;
    clip-path: polygon(0 0%, 10% 10%, 20% 18%, 30% 26%, 40% 33%, 50% 40%, 60% 47%, 70% 57%, 80% 67%, 90% 82%, 100% 100%, 100% 0);
}

.footer-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 66.666%;
    margin: 0;
    padding: 0 2rem 1rem 2rem;
    max-width: 1400px;
}

.footer-content p {
    color: white;
    font-size: 0.9rem;
    text-align: left;
}

.footer-separator {
    margin: 0 0.5rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive - Mobile */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        position: relative;
        display: flex;
        overflow: hidden;
        width: 100%;
    }
    
    .modal-left,
    .modal-right {
        min-width: 100%;
        max-height: none;
        border: none;
        transition: transform 0.3s ease;
    }
    
    .modal-content.show-actions .modal-left {
        transform: translateX(-100%);
    }
    
    .modal-content.show-actions .modal-right {
        transform: translateX(-100%);
    }
    
    .modal-left {
        border-bottom: none;
    }
    
    .connection-canvas {
        display: none;
    }
    
    /* Bouton retour pour les actions */
    .actions-back-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: var(--bg-light);
        border: none;
        border-radius: var(--radius-md);
        color: var(--primary-green);
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 1rem;
        transition: all 0.2s ease;
    }
    
    .actions-back-btn:hover {
        background: var(--primary-green);
        color: white;
    }
    
    .actions-back-btn::before {
        content: "←";
        font-size: 1.5rem;
    }
}

/* Media Queries - Desktop (min-width 769px) */
@media (min-width: 769px) {
    .social-icons:not(.social-icons-mobile):not(.hidden-by-visibility) {
        display: flex !important;
        margin-left: auto;
        padding: 0 2rem;
        position: relative;
        top: auto;
        right: auto;
        transform: none;
    }
    
    .social-icons.social-icons-mobile:not(.hidden-by-visibility) {
        display: none !important;
    }
}

/* Media Queries - Mobile (max-width 1100px) */
@media (max-width: 1100px) {
    /* Afficher le titre de page en mobile */
    .mobile-page-title {
        display: block;
        font-size: 1.2rem;
    }
    
    /* Header mobile */
    .header {
        padding: 0.5rem 1.5rem;
        min-height: 100px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .slogan {
        font-size: 0.75rem;
    }

    .yellow-spots {
        width: 90px;
        margin-left: -25px;
        margin-bottom: -28px;
    }

    /* Menu hamburger mobile */
    .mobile-menu-toggle {
        display: flex;
        position: static;
        margin: 0.5rem;
        transform: none;
    }
    
    .tabs-nav {
        position: sticky;
        top: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        border-bottom: none;
        box-shadow: none;
    }
    
    .social-icons:not(.social-icons-mobile):not(.hidden-by-visibility) {
        display: none;
    }
    
    .social-icons.social-icons-mobile:not(.hidden-by-visibility) {
        display: flex;
        gap: 0.75rem;
        padding: 0;
        margin: 0;
        margin-left: 0;
        flex-shrink: 0;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        box-shadow: none;
        border: none;
        justify-content: flex-end;
    }
    
    .social-icons.social-icons-mobile .social-link {
        width: 35px;
        height: 35px;
    }

    .tabs-container .social-icons {
        display: none;
    }

    .tabs-container {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
        box-shadow: var(--shadow-md);
    }

    .tabs-container.active {
        max-height: 500px;
    }

    .tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .tab-btn::after {
        left: 2rem;
        transform: none;
        width: calc(100% - 4rem);
        max-width: 200px;
        bottom: 4px;
    }

    .tab-btn.active {
        background: var(--bg-light);
    }

    .social-icons:not(.social-icons-mobile) {
        display: none !important;
    }

    .social-icons.social-icons-mobile {
        margin-left: 0;
        padding: 0;
        justify-content: flex-end;
        border-top: none;
        width: auto;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Modal mobile - Version améliorée */
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .modal-container {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }

    .modal-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        flex-shrink: 0;
    }

    .modal-category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .modal-category-title {
        font-size: 1.3rem;
    }

    .modal-category-description {
        font-size: 0.95rem;
    }

    .modal-content {
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-left,
    .modal-right {
        padding: 0 1rem 1rem 1rem;
        overflow-y: visible;
        max-height: none;
    }

    .modal-section-title {
        font-size: 1rem;
        position: sticky;
        top: 0;
        background: var(--bg-white);
        z-index: 10;
        padding: 0.75rem 1rem 0.5rem 1rem;
        margin: 0 -1rem 0.75rem -1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .objectif-card {
        padding: 1rem;
    }

    .objectif-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .objectif-text {
        font-size: 0.95rem;
    }

    .action-card {
        padding: 1rem;
    }

    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    /* Bouton scroll-to-top mobile */
    .scroll-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }

    /* Grilles mobile */
    .trombinoscope-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .person-card {
        padding: 0.75rem 0.5rem;
    }
    
    .person-photo {
        width: 80px;
        height: 80px;
        border: 3px solid var(--primary-green);
        margin-bottom: 0.5rem;
    }
    
    .person-name {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .person-role {
        font-size: 0.75rem;
    }

    /* Modal personne mobile */
    .person-modal-container {
        max-width: 90%;
        width: 90%;
        max-height: 90vh;
        height: auto;
        border-radius: 0.75rem;
        margin: auto;
    }

    .person-modal-content {
        padding: 1.5rem 1rem;
    }

    .person-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .person-modal-photo img {
        width: 100px;
        height: 100px;
    }

    .person-modal-name {
        font-size: 1.3rem;
    }

    .person-modal-profession {
        font-size: 0.95rem;
    }

    .person-modal-presentation {
        font-size: 1rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-description {
        display: none;
    }

    .category-stats {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .stat-item {
        gap: 0.3rem;
    }

    /* Footer mobile */
    .footer {
        height: 60px;
    }

    .footer-background {
        height: 100%;
    }

    .footer-content {
        width: 100%;
        padding: 0 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 1rem;
        min-height: 120px;
    }
    
    .main-title {
        font-size: 1.2rem;
    }
    
    .slogan {
        font-size: 0.6rem;
    }

    .main-content {
        padding: 1rem;
    }

    .edito-card {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .modal-container {
        max-height: 100vh;
    }

    .dates-timeline {
        padding-left: 2rem;
    }

    .date-marker {
        left: -2rem;
    }

    .yellow-spots {
        width: 70px;
        margin-left: -30px;
        margin-bottom: -25px;
    }
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Titre et slogan dans le menu lors du scroll */
.nav-header-info {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    margin-left: 2rem;
    align-self: center;
}

.nav-header-info.visible {
    display: flex;
}

.nav-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-green);
    line-height: 1.2;
}

.nav-slogan {
    font-family: 'TT Milks Casual', 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .nav-header-info {
        margin-left: 0;
        margin-right: auto;
        padding-right: 1rem;
        flex: 1;
    }
    
    .nav-title {
        font-size: 0.9rem;
    }
    
    .nav-slogan {
        font-size: 0.7rem;
    }
    
    /* Photo de groupe et description - mobile */
    .team-description {
        padding: 1.5rem;
        margin: 1.5rem auto 2rem;
    }
    
    .team-description p {
        font-size: 1rem;
        text-align: left;
    }
}

/* Témoignages - Style bulles de conversation */
.temoignages-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(165, 189, 57, 0.1), rgba(69, 47, 146, 0.1));
    border-radius: var(--radius-md);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1.3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.temoignages-colonnes {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.temoignages-colonne {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.temoignages-colonne-titre {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.temoignages-colonne-texte {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.temoignages-colonne-texte p {
    margin-bottom: 1rem;
}

.temoignages-colonne-texte ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.temoignages-colonne-texte strong {
    color: var(--primary-green);
    font-weight: 700;
}

.temoignages-intro p {
    margin: 0.5rem 0;
}

.temoignages-intro strong {
    font-weight: 700;
    color: var(--primary-green);
}

.temoignages-intro em {
    font-style: italic;
}

.temoignages-intro a {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: underline;
}

.temoignages-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 3rem;
}

.temoignages-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
}

.temoignage-bubble {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    animation: slideInBubble 0.5s ease forwards;
    opacity: 0;
}

/* Alternance gauche/droite comme des messages */
.temoignage-bubble:nth-child(odd) {
    align-self: flex-start;
}

.temoignage-bubble:nth-child(even) {
    align-self: flex-end;
}

.temoignage-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.temoignage-bubble:nth-child(even) .temoignage-header {
    flex-direction: row-reverse;
}

.temoignage-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.temoignage-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.temoignage-content {
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Triangle pointer comme WhatsApp */
.temoignage-bubble:nth-child(odd) .temoignage-content::before {
    content: '';
    position: absolute;
    left: 15px;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bg-white);
}

.temoignage-bubble:nth-child(even) .temoignage-content {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

.temoignage-bubble:nth-child(even) .temoignage-content::before {
    content: '';
    position: absolute;
    right: 15px;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e3f2fd;
}

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

/* Responsive témoignages */
@media (max-width: 900px) {
    .temoignages-colonnes {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .temoignages-colonne {
        padding: 1.5rem;
    }
    
    .temoignages-colonne-titre {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .temoignages-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .temoignage-bubble {
        max-width: 85%;
    }

    .temoignage-content {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .temoignage-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .temoignages-title {
        font-size: 1.75rem;
    }

    .temoignage-bubble {
        max-width: 90%;
    }

    .temoignages-container {
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }
}

/* ===================================
   PAGE D'ACCUEIL (HOME)
   =================================== */
.home-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 3rem 4rem 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 1.5rem auto 3rem auto;
    text-align: center;
    position: relative;
}

.home-photo {
    float: left;
    max-width: 40%;
    margin: 0 2rem 1.5rem 0;
}

.home-photo.img-right {
    float: right;
    margin: 0 0 1.5rem 2rem;
}

.home-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 4px solid var(--primary-green);
    box-shadow: var(--shadow-lg);
    display: block;
}

.home-photo::after {
    display: none;
}

.home-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: justify;
    text-align-last: center;
}

.home-text p {
    margin-bottom: 1.5rem;
}

.home-signature {
    font-family: 'TT Milks Casual', cursive;
    font-size: 1.5rem;
    color: var(--primary-green);
    text-align: right;
    padding-right: 2rem;
    margin-top: 3rem;
    font-style: italic;
    position: relative;
    clear: both;
}

.home-signature::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    right: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient(to left, var(--primary-green), transparent);
}

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

/* Overlay modale */
.alert-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.alert-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

/* Container de la modale */
.alert-modal-container {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

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

/* Coin violet en haut à gauche */
.alert-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 30%;
    background: var(--primary-purple);
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 90% 18%, 80% 33%, 70% 43%, 60% 53%, 50% 60%, 40% 67%, 30% 74%, 20% 82%, 10% 90%, 0 100%);
}

/* Coin arrondi vert en bas à droite */
.alert-modal-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35%;
    height: 30%;
    background: #A7BD39;
    z-index: 1;
    clip-path: polygon(0 100%, 10% 90%, 20% 82%, 30% 74%, 40% 67%, 50% 60%, 60% 53%, 70% 43%, 80% 33%, 90% 18%, 100% 0, 100% 100%);
}

/* Bouton de fermeture */
.alert-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.alert-modal-close:hover {
    background: var(--accent-yellow);
    transform: rotate(90deg);
}

/* Contenu de la modale */
.alert-modal-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
}

/* Icône d'alerte à gauche */
.alert-modal-icon {
    flex-shrink: 0;
}

.alert-modal-icon img {
    width: 80px;
    height: 80px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* Message de l'alerte */
.alert-modal-message {
    flex: 1;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.alert-modal-message p {
    margin-bottom: 0.75rem;
}

.alert-modal-message p:last-child {
    margin-bottom: 0;
}

.alert-modal-message strong {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.15em;
}

/* Responsive modale alerte */
@media (max-width: 768px) {
    .alert-modal-container {
        max-width: 90%;
        margin: 1rem;
    }

    .alert-modal-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem 1.5rem;
    }

    .alert-modal-icon img {
        width: 70px;
        height: 70px;
    }

    .alert-modal-message {
        font-size: 1rem;
    }

    .alert-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .alert-modal-content {
        padding: 2rem 1.25rem;
    }

    .alert-modal-icon img {
        width: 60px;
        height: 60px;
    }

    .alert-modal-message {
        font-size: 0.95rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .home-card {
        padding: 2.5rem 1.5rem;
        margin: 2rem auto;
    }
    
    .home-photo {
        max-width: 100%;
        float: none;
        margin: 0 0 1.5rem 0;
    }
    
    .home-photo::after {
        left: 15%;
        width: 70%;
    }
    
    .home-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    
    .home-signature {
        font-size: 1.25rem;
        padding-right: 1rem;
    }
    
    .home-signature::before {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .home-card {
        padding: 2rem 1rem;
    }
    
    .home-photo {
        max-width: 100%;
        float: none;
        margin: 0 0 1.5rem 0;
    }
    
    .home-photo::after {
        left: 5%;
        width: 90%;
    }
    
    .home-text {
        font-size: 1rem;
        text-align: left;
        text-align-last: left;
    }
    
    .home-signature {
        font-size: 1.1rem;
    }
}
