/* ======= ACTIVITÉS REDESIGNÉES ======= */
.single-site .views-field.views-field-field-activites {
  position: absolute;
  z-index:90;
  top:60vh;
  left: 5%;
  right: 5%;
  text-align: center;
  color: #fff;
  font-size:20px;
}











@media (max-width: 576px) {
  .single-site h1.field-content.site-title {
    font-size: 2.2rem;
  }
  
  .single-site h1.field-content.site-title::after {
    font-size: 1rem;
    padding-top: 0.8rem;
  }
  
  .single-site .views-field.views-field-body {
    padding: 3rem 1.2rem;
    margin-top: -30px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  
  .single-site .views-field.views-field-body .views-label {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .single-site .views-field.views-field-field-gallerie {
    padding: 4rem 0 3rem;
  }
  
  .single-site .views-field.views-field-field-gallerie .views-label {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}/* ======= VARIABLES ET RESETS ======= */
:root {
  /* Palette principale - Fond clair élégant */
  --color-light: #fafafa;
  --color-light-alt: #f0f4f1;
  --color-light-accent: #e8f0eb;
  
  /* Couleurs d'accent - Thème vert forêt à jade */
  --color-accent-primary: #2a9d8f;
  --color-accent-secondary: #e9c46a;
  --color-accent-tertiary: #f4a261;
  
  /* Palette verte améliorée */
  --color-green-900: #003d29;
  --color-green-800: #00573a;
  --color-green-700: #107154;
  --color-green-600: #2a9d8f;
  --color-green-500: #40a798;
  --color-green-400: #65c3b8;
  --color-green-300: #9edcd5;
  
  /* Couleurs neutres */
  --color-dark: #0a0a0a;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-900: #1a1a1a;
  --color-gray-800: #262626;
  --color-gray-700: #4a4a4a;
  --color-gray-400: #9e9e9e;
  --color-gray-300: #d1d1d1;
  --color-gray-200: #e0e0e0;
  --color-gray-100: #f5f5f5;
  
  /* Couleurs de texte */
  --text-dark: #1f3a32;
  --text-medium: #415d53;
  --text-light: #637d74;
  
  /* Typographie */
  --font-sans: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  
  /* Animations et transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Ombres */
  --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 4px 6px rgba(31, 58, 50, 0.05), 0 2px 4px rgba(31, 58, 50, 0.08);
  --box-shadow-lg: 0 15px 25px rgba(31, 58, 50, 0.07), 0 5px 10px rgba(31, 58, 50, 0.05);
  --box-shadow-xl: 0 20px 40px rgba(31, 58, 50, 0.1);
  
  /* Arrondis */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* Styles globaux modernisés */
.single-site {
  background-color: var(--color-light);
  color: var(--text-medium);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  line-height: 1.7;
  font-weight: var(--font-weight-regular);
  transition: background-color var(--transition-medium);
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 10px;
  border-radius: 20px;
}

/* ======= HERO SECTION AMÉLIORÉE ======= */
.single-site .layout-content {
  padding-top: 0; /* Suppression du padding pour un hero immersif */
}

.single-site .field-content.image-cover {
  position: relative;
  height: 85vh; /* Plus grand pour un impact visuel */
  width: 100%;
  overflow: hidden;
  border-bottom: 5px solid var(--color-green-600);
}

.single-site .field-content.image-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 12s cubic-bezier(0.215, 0.610, 0.355, 1.000);
  filter: brightness(0.9) saturate(1.1);
}

.single-site .field-content.image-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0.4) 0%, 
    rgba(0,0,0,0.2) 40%, 
    rgba(0,0,0,0.3) 60%, 
    rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.single-site .field-content.image-cover:hover img {
  transform: scale(1.08);
}

/* Titre du site - Style moderne et élégant */
.single-site h1.field-content.site-title {
  position: absolute;
  top: 50vh;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-white);
  text-align: center;
  letter-spacing: 0.05em;
  width: 90%;
  max-width: 900px;
  padding: 0;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards 0.5s;
  line-height: 1.1;
}


.single-site h1.field-content.site-title::after::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--color-accent-secondary);
  border-radius: 1px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -35%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}






/* ======= CONTENU ET DESCRIPTION - DESIGN MODERNE ET ÉLÉGANT ======= */
.single-site .views-field.views-field-body {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    background-color: var(--color-light);
    z-index: 2;
    margin-top: -60px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--box-shadow-md);
    
}

.single-site .views-field.views-field-body::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-green-600) 50%, transparent 100%);
    /* Correction du flou */
    transform: translateZ(0);
}

.single-site .views-field.views-field-body .views-label {
    font-size: 2rem;
    font-weight: var(--font-weight-light);
    color: var(--color-green-700);
    margin-bottom: 2.5rem;
    display: block;
    letter-spacing: 0.05em;
    text-align: center;
    position: relative;
    /* Amélioration du rendu du texte */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.single-site .views-field.views-field-body .views-label::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    /* Correction : utiliser des pixels entiers */
    transform: translateX(-50%) translateZ(0);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent-secondary);
    border-radius: 3px;
}

/* PARAGRAPHES AMÉLIORÉS - STYLE ÉLÉGANT ET MODERNE */
.single-site .views-field.views-field-body .field-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.8rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-medium);
    text-align: justify;
    /* Correction : meilleur rendu du texte justifié */
    text-justify: inter-character;
    text-align-last: left;
    word-spacing: 0.05em;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    orphans: 2;
    widows: 2;
    /* Amélioration du rendu */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.single-site .views-field.views-field-body .field-content p:first-of-type {
    font-size: 1.3rem;
    font-weight: var(--font-weight-light);
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    text-align: justify;
    text-align-last: left;
    line-height: 1.8;
    position: relative;
    padding-bottom: 1.5rem;
    /* Amélioration du rendu */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.single-site .views-field.views-field-body .field-content p:first-of-type::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-green-600), var(--color-green-300));
    border-radius: 1px;
    /* Correction du flou */
    transform: translateZ(0);
}

.single-site .views-field.views-field-body .field-content p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: var(--font-weight-light);
    color: var(--color-green-600);
    float: left;
    /* Correction : line-height plus stable */
    line-height: 1;
    /* Correction : padding en pixels entiers */
    padding-right: 12px;
    padding-top: 6px;
    margin-right: 3px;
    font-family: var(--font-serif);
    /* Correction du flou sur la première lettre */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* Assure un alignement précis */
    vertical-align: top;
}

/* Titres dans la description - Style moderne */
.single-site .views-field.views-field-body .field-content p:nth-child(odd):not(:first-child) {
    font-weight: var(--font-weight-medium);
    font-size: 1.4rem;
    color: var(--color-green-700);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    position: relative;
    padding-left: 1.2rem;
    padding-right: 1rem;
    text-align: left;
    line-height: 1.4;
    /* Amélioration du rendu */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.single-site .views-field.views-field-body .field-content p:nth-child(odd):not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    /* Correction : valeurs en pixels entiers */
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-green-600), var(--color-green-400));
    border-radius: 2px;
    /* Correction du flou */
    transform: translateZ(0);
}

/* Règle globale pour éviter le flou sur tous les éléments */
.single-site .views-field.views-field-body *,
.single-site .views-field.views-field-body *::before,
.single-site .views-field.views-field-body *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}





/* ======= GALERIE REPENSÉE ET MODERNE ======= */
.single-site .views-field.views-field-field-gallerie {
  background-color: var(--color-light-alt);
  padding: 5rem 0;
  margin: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.single-site .views-field.views-field-field-gallerie::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(42, 157, 143, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.single-site .views-field.views-field-field-gallerie::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(233, 196, 106, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.single-site .views-field.views-field-field-gallerie .views-label {
  font-size: 2.2rem;
  font-weight: var(--font-weight-light);
  color: var(--color-green-800);
  text-align: center;
  margin-bottom: 3rem;
  display: block;
  letter-spacing: 0.05em;
  position: relative;
}

.single-site .views-field.views-field-field-gallerie .views-label::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green-700), var(--color-accent-secondary));
  border-radius: 2px;
}

.single-site .views-field.views-field-field-gallerie .field-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactement 3 colonnes fixes sur desktop */
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.single-site .views-field.views-field-field-gallerie .field-content > div {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--box-shadow-md);
  transition: all var(--transition-medium);
  cursor: pointer;
  height: 0;
  padding-bottom: 75%; /* Ratio d'aspect 4:3 pour maintenir une proportionnalité */
  line-height: 0; /* Supprime l'espace blanc sous les images */
}

.single-site .views-field.views-field-field-gallerie .field-content > div:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-xl);
}

.single-site .views-field.views-field-field-gallerie .field-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
  position: absolute;
  top: 0;
  left: 0;
  display: block; /* Élimine les espaces blancs potentiels */
}

.single-site .views-field.views-field-field-gallerie .field-content > div:hover img {
  transform: scale(1.12);
}

.single-site .views-field.views-field-field-gallerie .field-content > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 70%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.single-site .views-field.views-field-field-gallerie .field-content > div:hover::after {
  opacity: 1;
}


/* Videos Section - Style modernisé */
.single-site .videos {
    padding: 5rem 2rem;
    background: var(--color-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.single-site .videos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.single-site .videos .views-label {
    display: block;
    font-size: 2.2rem;
    font-weight: var(--font-weight-light);
    color: var(--color-green-800);
    margin-bottom: 3rem;
    position: relative;
}

.single-site .videos .views-label::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-green-600), var(--color-accent-secondary));
    border-radius: 2px;
}

/* ======= LIGHTBOX MODAL AMÉLIORÉ ======= */
.koumi-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(15px);
}

.koumi-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.koumi-lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.koumi-lightbox-overlay.active .koumi-lightbox-container {
    transform: scale(1);
}

.koumi-lightbox-image-container {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.koumi-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.koumi-lightbox-overlay.active .koumi-lightbox-image {
    transform: scale(1);
    opacity: 1;
}

/* Bouton de fermeture - Design moderne */
.koumi-lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.koumi-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1) rotate(90deg);
}

.koumi-lightbox-close::before {
    content: '✕';
    font-weight: 300;
}

/* Boutons de navigation - Style élégant */
.koumi-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(10px);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.koumi-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.koumi-lightbox-prev {
    left: -80px;
}

.koumi-lightbox-next {
    right: -80px;
}

.koumi-lightbox-prev::before {
    content: '‹';
    margin-right: 2px;
}

.koumi-lightbox-next::before {
    content: '›';
    margin-left: 2px;
}

/* Compteur d'images - Style moderne */
.koumi-lightbox-counter {
    position: absolute;
    top: -60px;
    left: 0;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Miniatures en bas - Design élégant */
.koumi-lightbox-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.koumi-lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.koumi-lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.koumi-lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.koumi-lightbox-thumbnail {
    min-width: 90px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.koumi-lightbox-thumbnail:hover,
.koumi-lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--color-accent-primary);
    transform: scale(1.08);
}

.koumi-lightbox-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* États pour le body quand la lightbox est ouverte */
body.koumi-lightbox-open {
    overflow: hidden;
}

/* ======= BOUTON LIRE PLUS - REDESIGN MODERNE ======= */

/* Input checkbox caché pour gérer l'état */
.single-site .read-more-checkbox {
    display: none;
}

/* Conteneur du contenu avec hauteur limitée par défaut */
.single-site .views-field.views-field-body .field-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    position: relative;
    padding-bottom: 3rem;
}

/* Effet de dégradé amélioré pour masquer le contenu coupé */
.single-site .views-field.views-field-body .field-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, 
        rgba(250, 250, 250, 0) 0%, 
        rgba(250, 250, 250, 0.8) 50%, 
        var(--color-light) 100%);
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* Bouton "Lire plus" modernisé */
.single-site .read-more-label {
    display: block;
    margin: 2rem auto 0;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, var(--color-green-700), var(--color-green-600));
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer !important;
    transition: all var(--transition-medium);
    box-shadow: var(--box-shadow-md);
    position: relative;
    overflow: hidden;
    text-align: center;
    user-select: none;
    width: fit-content;
    z-index: 5;
    letter-spacing: 0.02em;
}

.single-site .read-more-label,
.single-site .read-more-label:hover,
.single-site .read-more-label:active,
.single-site .read-more-label:focus {
    cursor: pointer !important;
}

.single-site .read-more-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
    transition: left 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.single-site .read-more-label:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    background: linear-gradient(135deg, var(--color-green-600), var(--color-accent-primary));
    cursor: pointer;
}

.single-site .read-more-label:hover::before {
    left: 100%;
}

.single-site .read-more-label:active {
    transform: translateY(-1px);
}

/* Texte du bouton par défaut */
.single-site .read-more-label .read-more-text::after {
    content: 'Lire plus';
}

.single-site .read-more-label .read-less-text {
    display: none;
}

/* États quand la checkbox est cochée (contenu étendu) */
.single-site .read-more-checkbox:checked ~ .views-field.views-field-body .field-content {
    max-height: none;
    padding-bottom: 1rem;
}

.single-site .read-more-checkbox:checked ~ .views-field.views-field-body .field-content::after {
    opacity: 0;
}

.single-site .read-more-checkbox:checked ~ .read-more-label .read-more-text {
    display: none;
}

.single-site .read-more-checkbox:checked ~ .read-more-label .read-less-text {
    display: inline;
}

.single-site .read-more-checkbox:checked ~ .read-more-label .read-less-text::after {
    content: 'Lire moins';
}

/* Animation d'apparition du bouton */
.single-site .read-more-label {
    opacity: 0;
    animation: fadeInButton 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards 1.2s;
}

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

/* ======= ANIMATIONS GLOBALES AMÉLIORÉES ======= */
@keyframes floatUp {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

/* ======= AMÉLIORATIONS POUR LA JUSTIFICATION ======= */
@supports (text-align: justify) {
  .single-site .views-field.views-field-body .field-content p {
    text-align: justify;
    text-justify: inter-character;
    text-justify: inter-word;
  }
}

@supports (-webkit-hyphens: auto) {
  .single-site .views-field.views-field-body .field-content p {
    -webkit-hyphens: auto;
    hyphenate-limit-before: 3;
    hyphenate-limit-after: 3;
  }
}

/* ======= MEDIA QUERIES MODERNISÉES ======= */
@media (max-width: 1200px) {
  .single-site h1.field-content.site-title {
    font-size: 4rem;
  }
  
  .single-site .views-field.views-field-field-gallerie .field-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .single-site .views-field.views-field-field-gallerie .field-content > div {
    height: 250px;
  }
}

@media (max-width: 992px) {
  .single-site h1.field-content.site-title {
    font-size: 3.5rem;
  }
  
  .single-site .views-field.views-field-body {
    padding: 4rem 1.5rem;
    margin-top: -50px;
  }
  
  .single-site .views-field.views-field-body .views-label {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .single-site h1.field-content.site-title {
    font-size: 2.8rem;
    top: 38vh;
  }
  
  .single-site h1.field-content.site-title::after {
    font-size: 1.1rem;
    padding-top: 1rem;
  }
  
  .single-site .views-field.views-field-body {
    padding: 3.5rem 1.5rem;
    margin-top: -40px;
  }
  
  .single-site .views-field.views-field-body .views-label {
    font-size: 1.6rem;
  }
  
  .single-site .views-field.views-field-body .field-content p {
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 0.5rem;
    max-width: 100%;
  }
  
  .single-site .views-field.views-field-body .field-content p:first-of-type {
    font-size: 1.15rem;
  }
  
  .single-site .views-field.views-field-body .field-content p:first-of-type::first-letter {
    font-size: 3rem;
    padding-right: 0.6rem;
  }
  
  .single-site .views-field.views-field-body .field-content {
    max-height: 350px;
  }
  
  .single-site .views-field.views-field-field-gallerie .views-label {
    font-size: 1.8rem;
  }
  
  .single-site .field-content.image-cover {
    height: 65vh;
  }
  
  .single-site .read-more-label {
    padding: 0.7rem 1.8rem;
    font-size: 0.9rem;
  }
  
  /* Lightbox responsive */
  .koumi-lightbox-container {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .koumi-lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .koumi-lightbox-prev {
    left: -60px;
  }
  
  .koumi-lightbox-next {
    right: -60px;
  }
  
  .koumi-lightbox-thumbnails {
    max-width: 95vw;
  }
  
  .koumi-lightbox-thumbnail {
    min-width: 70px;
    height: 55px;
  }
}

/* Modifications de la galerie pour les tablettes et mobiles */
@media (max-width: 992px) {
  .single-site .views-field.views-field-field-gallerie .field-content {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }
}

@media (max-width: 576px) {
  .single-site .views-field.views-field-field-gallerie .field-content {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .single-site .views-field.views-field-field-gallerie .field-content > div {
    padding-bottom: 66.67%; /* Ratio 3:2 sur mobile pour une meilleure vue */
  }
}

@media (max-width: 480px) {
  .single-site h1.field-content.site-title {
    font-size: 2rem;
    width: 95%;
  }
  
  .single-site .views-field.views-field-body {
    padding: 2.5rem 1rem;
  }
  
  .single-site .views-field.views-field-body .field-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 0;
    text-align: left;
    text-justify: none;
  }
  
  .single-site .views-field.views-field-body .field-content p:first-of-type {
    font-size: 1.1rem;
  }
  
  .single-site .views-field.views-field-body .field-content p:first-of-type::first-letter {
    font-size: 2.8rem;
    padding-right: 0.5rem;
  }
  
  .single-site .views-field.views-field-body .field-content p:nth-child(odd):not(:first-child) {
    padding-left: 1rem;
    padding-right: 0.5rem;
    font-size: 1.25rem;
  }
  
  .single-site .views-field.views-field-body .field-content {
    max-height: 300px;
  }
  
  .single-site .read-more-label {
    width: 100%;
    text-align: center;
  }
  
  /* Lightbox mobile */
  .koumi-lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .koumi-lightbox-prev {
    left: 10px;
  }
  
  .koumi-lightbox-next {
    right: 10px;
  }
  
  .koumi-lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .koumi-lightbox-counter {
    top: 10px;
    left: 10px;
    font-size: 14px;
    padding: 6px 12px;
  }
  
  .koumi-lightbox-thumbnails {
    margin-top: 15px;
    gap: 8px;
  }
  
  .koumi-lightbox-thumbnail {
    min-width: 60px;
    height: 45px;
  }
}

/* ======= AJOUTS DE DÉTAILS D'UI MODERNES ======= */
/* Effet de surbrillance sur les éléments focalisables */
.single-site a:focus-visible,
.single-site button:focus-visible,
.single-site .read-more-label:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* Transitions fluides pour les états de hover */
.single-site a,
.single-site button,
.single-site .read-more-label {
    transition: color var(--transition-medium),
                background-color var(--transition-medium),
                transform var(--transition-medium),
                box-shadow var(--transition-medium);
}

/* Styles pour sélection de texte */
.single-site ::selection {
    background-color: rgba(42, 157, 143, 0.2);
    color: var(--color-green-900);
}

/* Focus sur l'accessibilité avec des états clairs */
.single-site a:active,
.single-site button:active,
.single-site .read-more-label:active {
    transform: translateY(1px);
    transition-duration: 0.1s;
}












/* Ajuster la position du titre sur mobile */
@media (max-width: 768px) {
  .single-site h1.field-content.site-title {
    font-size: 2.8rem;
    top: 30vh; /* Position plus haute sur tablette (était à 38vh) */
  }
}

@media (max-width: 576px) {
  .single-site h1.field-content.site-title {
    font-size: 2.2rem;
    top: 25vh; /* Position encore plus haute sur petit mobile */
  }
}

@media (max-width: 480px) {
  .single-site h1.field-content.site-title {
    font-size: 2rem;
    width: 95%;
    top: 22vh; /* Position encore plus haute sur très petit mobile */
  }
}

/* Ajuster la hauteur de l'image de couverture sur mobile pour mieux cadrer */
@media (max-width: 768px) {
  .single-site .field-content.image-cover {
    height: 65vh;
  }
}

@media (max-width: 576px) {
  .single-site .field-content.image-cover {
    height: 55vh; /* Image moins haute sur mobile */
  }
}

/* S'assurer que le contenu principal remonte suffisamment pour couvrir l'image */
@media (max-width: 768px) {
  .single-site .views-field.views-field-body {
    margin-top: -40px;
  }
}

@media (max-width: 576px) {
  .single-site .views-field.views-field-body {
    margin-top: -50px; /* Remonte davantage le contenu */
  }
}






















/* Réinitialisation forcée */
.field-content.c-videos {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
  padding: 40px 0 !important;
}

/* Cibler directement tous les divs de premier niveau */
.field-content.c-videos > div {
  display: inline-block !important;
  margin: 5px !important; /* Espacement minimal */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  vertical-align: top !important;
}

/* Nettoyer les virgules et autres éléments texte */
.field-content.c-videos > br,
.field-content.c-videos > text {
  display: none !important;
}

/* Cibler tous les iframes directement */
.field-content.c-videos iframe.media-oembed-content {
  width: 320px !important;
  height: 180px !important;
  border: none !important;
  display: block !important;
}

/* Media queries pour responsive */
@media (max-width: 767px) {
  .field-content.c-videos iframe.media-oembed-content {
    width: 280px !important;
    height: 158px !important;
  }
}