/* ═══════════════════════════════════════════════════════════
   FONTS
═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-v24-latin-100.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-v24-latin-200.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-v24-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-v24-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'OpenDyslexic';
    src: url('/fonts/OpenDyslexic-Regular.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   ROOT
═══════════════════════════════════════════════════════════ */
:root {
    --color-primary: hsl(207, 65%, 45%);
    --color-primary-light: hsl(207, 65%, 55%);
    --color-primary-dark: hsl(207, 65%, 35%);
    --color-secondary: hsl(0, 0%, 20%);
    --color-tertiary: hsl(45, 100%, 51%);
    --color-background: hsl(0, 0%, 100%);
    --color-boxground: hsl(0, 0%, 93%);
    --color-background-alt: hsl(0, 0%, 97%);
    --color-text: hsl(0, 0%, 20%);
    --color-text-light: hsl(0, 0%, 40%);
    --color-border: hsl(0, 0%, 90%);
    --shadow: rgba(0, 0, 0, 0.1);
    --sky-light: #B8E0F0;
    --bg-card: #fff;  
    
    /* Variables d'accessibilité */
    --font-size-base: 0.6rem;
    --line-height-base: 1.6;
    --letter-spacing-base: 0;
    --font-family-base: "Poppins", sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   BARRE DE PROGRESSION AU SCROLL
═══════════════════════════════════════════════════════════ */
:root {
    --scroll: 0%;
}

.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: var(--scroll);
    background: linear-gradient(90deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, white));
    z-index: 9999;
    pointer-events: none;
    transition: width 0.08s ease-out;
}


/* ═══════════════════════════════════════════════════════════
   MODES D'ACCESSIBILITÉ
═══════════════════════════════════════════════════════════ */

/* Mode sombre */
.dark {
    --color-primary: hsl(207, 65%, 55%);
    --color-primary-light: hsl(207, 65%, 65%);
    --color-primary-dark: hsl(207, 65%, 45%);
    --color-secondary: hsl(0, 0%, 90%);
    --color-tertiary: hsl(45, 100%, 60%);
    --color-background: hsl(210, 15%, 12%);
    --color-boxground: hsl(210, 6%, 15%);
    --color-background-alt: hsl(210, 15%, 16%);
    --color-text: hsl(0, 0%, 90%);
    --color-text-light: hsl(0, 0%, 70%);
    --color-border: hsl(0, 0%, 25%);
    --shadow: rgba(0, 0, 0, 0.3);
        --bg-card: hsl(210, 6%, 15%);
}

/* Mode contraste élevé */
.high-contrast {
    --color-background: #FFFFFF;
    --color-boxground: #FFFFFF;
    --color-background-alt: #FFFFFF;
    --color-text: #000000;
    --color-text-light: #000000;
    --color-primary: #0000FF;
    --color-border: #000000;
}

/* Mode contraste clair */
.high-contrast-light {
    --color-background: #FFFFFF;
    --color-boxground: #F5F5F5;
    --color-background-alt: #FAFAFA;
    --color-text: #000000;
    --color-text-light: #333333;
    --color-primary: #0066CC;
    --color-border: #333333;
}

.high-contrast-light header,
.high-contrast-light .horaire-card,
.high-contrast-light .groupe-card,
.high-contrast-light .actualite-item,
.high-contrast-light footer {
    border: 1px solid #333 !important;
}

/* Saturation élevée */
.saturation-high header,
.saturation-high main,
.saturation-high footer,
.saturation-high section,
.saturation-high .detail-hero,
.saturation-high .detail-content,
.saturation-high .cookie-consent,
.saturation-high .modal {
    filter: saturate(1.8);
}

/* Saturation faible */
.saturation-low header,
.saturation-low main,
.saturation-low footer,
.saturation-low section,
.saturation-low .detail-hero,
.saturation-low .detail-content,
.saturation-low .cookie-consent,
.saturation-low .modal {
    filter: saturate(0.5);
}

/* Monochrome */
.saturation-mono header,
.saturation-mono main,
.saturation-mono footer,
.saturation-mono section,
.saturation-mono .detail-hero,
.saturation-mono .detail-content,
.saturation-mono .cookie-consent,
.saturation-mono .modal {
    filter: grayscale(100%);
}

.high-contrast header,
.high-contrast .horaire-card,
.high-contrast .groupe-card,
.high-contrast .actualite-item,
.high-contrast footer {
    border: 2px solid #000 !important;
}

/* Police Dyslexie */
.dyslexic-font,
.dyslexic-font * {
    font-family: 'OpenDyslexic', sans-serif !important;
}

/* Surligner les liens */
.highlight-links a {
    background: yellow !important;
    color: #000 !important;
    padding: 2px 4px;
    text-decoration: underline !important;
}

/* Guide de lecture */
.reading-guide #reading-guide-bar {
    position: fixed;
    left: 100px;
    width: calc(100% - 200px);
    height: 2px;
    background: var(--color-primary);
    pointer-events: none;
    z-index: 9998;
    transition: none;
    border-radius: 1px;
    box-shadow:
        0 0 6px 1px rgba(40, 113, 177, 0.7),
        0 0 16px 4px rgba(40, 113, 177, 0.35);
}

.reading-guide #reading-guide-bar::before {
    display: none;
}

/* Grand curseur */
.large-cursor,
.large-cursor * {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="%231E5F8A"><path d="M7 2l12 11.5-5.5 1 3.5 7-2.5 1-3.5-7-4 3.5z"/></svg>') 0 0, auto !important;
}

/* Réduire les animations */
.reduce-motion,
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* Focus */
.focus-visible *:focus,
.focus-visible *:focus-visible {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(30, 95, 138, 0.2) !important;
}

.focus-visible button:focus,
.focus-visible a:focus,
.focus-visible input:focus,
.focus-visible select:focus,
.focus-visible textarea:focus {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

/* Masque de lecture */
#reading-mask-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

#reading-mask-overlay .mask-top,
#reading-mask-overlay .mask-bottom {
    position: fixed;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

#reading-mask-overlay .mask-top {
    top: 0;
}

#reading-mask-overlay .mask-bottom {
    bottom: 0;
    height: calc(100vh - 120px);
}

#reading-mask-overlay .mask-window {
    position: fixed;
    left: 0;
    width: 100%;
    height: 120px;
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Tailles de texte */
html.text-size-small,
body.text-size-small { --font-size-base: 0.5rem; }

html.text-size-medium,
body.text-size-medium { --font-size-base: 0.6rem; }

html.text-size-large,
body.text-size-large { --font-size-base: 0.7rem; }

html.text-size-xlarge,
body.text-size-xlarge { --font-size-base: 0.8rem; }

/* Espacement des lignes */
.line-spacing-normal { --line-height-base: 1.6; }
.line-spacing-large { --line-height-base: 2; }
.line-spacing-xlarge { --line-height-base: 2.4; }


/* ═══════════════════════════════════════════════════════════
   BOUTON FLOTTANT ACCESSIBILITÉ
═══════════════════════════════════════════════════════════ */

.access-fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;   /* ← gauche */
    z-index: 1000;
}

    .access-fab .fab-button .fab-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    }

.access-fab::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    pointer-events: none;
}

@media (max-width: 850px) {
    .access-fab::before {
        display: block;
    }
    
    .access-fab.panel-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.access-fab .fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(30, 95, 138, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.access-fab .fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(30, 95, 138, 0.5);
}

.access-fab .fab-button.active {
    background: var(--color-primary-dark);
}

.access-fab .panel {
    position: absolute;
    bottom: 70px;
    left: 0;      /* ← s'ouvre vers la droite */
    right: auto;
    width: 340px;
    max-width: calc(100vw - 4rem);
    max-height: 80vh;
    overflow-y: auto;
    background: var(--color-background);
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.access-fab .panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.access-fab .panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.access-fab .panel-header .icon {
    width: 45px;
    height: 45px;
    background: var(--color-primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.access-fab .panel-header h3 {
    font-size: 1.6rem;
    color: var(--color-text);
    margin: 0;
}

.access-fab .panel-header p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin: 0;
}

.access-fab .section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.access-fab .option-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.access-fab .option-btn {
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-background);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text);
}

.access-fab .option-btn:hover {
    border-color: var(--color-primary-light);
    background: var(--color-boxground);
}

.access-fab .option-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: white;
}

.access-fab .option-btn .icon {
    font-size: 1.4rem;
}

.access-fab .option-btn .label {
    font-size: 1rem;
}

/* Sélecteur de langue */
.access-fab .lang-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.access-fab .lang-btn {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-background);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    width: 100%;
    min-width: 0;
}

.access-fab .lang-btn:hover {
    border-color: var(--color-primary-light);
    background: var(--color-boxground);
}

.access-fab .lang-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.access-fab .lang-btn .flag {
    font-size: 2rem;
}

.access-icon-lang {
    max-width: 15px;
}

.access-icon {
    max-width: 20px;
}

.access-fab .lang-btn .lang-info {
    text-align: left;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.access-fab .lang-btn .lang-name {
    font-weight: 600;
    font-size: 1.4rem;
    display: block;
}

.access-fab .lang-btn .lang-native {
    font-size: 1rem;
    opacity: 0.8;
}

/* Toggle switches */
.access-fab .toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.access-fab .toggle-row:last-child {
    border-bottom: none;
}

.access-fab .toggle-label {
    font-size: 1.4rem;
    color: var(--color-text);
}

.access-fab .toggle-switch {
    width: 50px;
    height: 26px;
    background: var(--color-border);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.access-fab .toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.access-fab .toggle-switch.active {
    background: var(--color-primary);
}

.access-fab .toggle-switch.active::after {
    transform: translateX(24px);
}

.access-fab .reset-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--color-boxground);
    border: none;
    border-radius: 8px;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.access-fab .reset-btn:hover {
    background: var(--color-border);
}

/* 
   ---------------------  BASE  ---------------------------------- 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-base);
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    width: 100%;
}

body {
    position: relative;
    width: 100%;
    line-height: var(--line-height-base);
    letter-spacing: var(--letter-spacing-base);
    color: var(--color-text);
    background: var(--color-background);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ── Protection images (mobile + desktop) ── */
img {
    -webkit-touch-callout: none;   
    -webkit-user-select: none;     
    -khtml-user-select: none;     
    -moz-user-select: none;       
    -ms-user-select: none;        
    user-select: none;             
    pointer-events: none;          
}

/* Réactiver pointer-events sur les images cliquables (galeries, liens) */
a img,
button img,
[onclick] img,
.tl-actu-item img,
.tl-groupe-card img,
.swiper-thumbnail img,
.news-card img,
.tl-img-strip-thumb img {
    pointer-events: auto;
    -webkit-touch-callout: none;
    user-select: none;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 10%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px var(--shadow);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.dark header {
    background-color: rgba(30, 35, 45, 0.95);
}

.sepia-mode header {
    background-color: rgba(244, 236, 216, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 200% !important;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: inline;
    color: var(--color-text-light);
}

.logo-second-text {
    display: inline;
    color: var(--color-primary);
}

.logo-short-text {
    color: var(--color-primary);
    display: none;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: 0.3s;
}

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

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

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

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--color-text-light);
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.menu li a:hover {
    color: var(--color-primary);
}

.menu li a:hover::after {
    transform: scaleX(1);
}

.menu li a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.menu li a.active::after {
    transform: scaleX(1);
}

section {
    margin-top: 50px;
    padding: 4rem 5%;
}

section:nth-child(even) {
    background-color: var(--color-background-alt);
}

h2 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('/images/eglise.webp') center/cover fixed;
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    width: 100%;
    min-height: 100svh; 
    height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 50px;
    padding-bottom: 150px;
}

.hero-content {
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.hero-content h2 {
    font-size: 3.6rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: white;
}

.hero-content h3 {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 0 4px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-line {
    width: 150px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 10px auto;
    border-radius: 5px;
}

.hero-content h1 {
    font-size: 6.3rem;
    margin-top: 30px;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 2rem;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    font-weight: 200;
    margin-bottom: 30px;
}

.hero-buttons {
    padding-top: 20px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.6rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    background: white;
    color: var(--color-primary);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.horaires {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.horaire-card {
    background: var(--color-boxground);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.horaire-card h3 {
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 2px solid var(--sky-light);
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: -1rem;
    width: 2px;
    background: var(--sky-light);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    box-shadow: 0 0 0 4px var(--sky-light);
}

.timeline-content {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.horaire-card p {
    color: var(--color-text-light);
    margin: 0.5rem 0;
    font-size: 1.4rem;
}

.histoire-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.6rem;
    line-height: 1.8;
}

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

.groupe-card {
    background: var(--color-boxground);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}

.groupe-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.groupe-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.groupe-card p {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin: 0.5rem 0;
}

.camera-with-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.image-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
}

/* ========================================
   Groupe paroisse
   ======================================== */

/* Grille de groupes */
.groupes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* ========================================
   CARTES DE GROUPES
   ======================================== */

.groupe-card {
    background: var(--color-boxground);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.groupe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Image de la carte */
.groupe-card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.groupe-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.groupe-card:hover .card-image img {
    transform: scale(1.05);
}

/* Contenu de la carte */
.groupe-card .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.groupe-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 2rem;
    line-height: 1.3;
}

/* Informations de la carte */
.groupe-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.groupe-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 1.3rem;
}

.groupe-card .info-icon {
    font-size: 1.6rem;
    min-width: 25px;
}

.groupe-card .groupe_icon {
    width: 20px;
    height: 20px;
}

/* Description de la carte */
.groupe-card .card-description {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    font-size: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bouton "En savoir plus" */
.groupe-card .btn-voir-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.groupe-card .btn-voir-plus:hover {
    background: var(--color-primary-dark);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(30, 95, 138, 0.3);
}

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

@media (max-width: 768px) {

    .hero {
        background-attachment: scroll;
    }

    .groupes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .groupe-card .card-image {
        height: 200px;
    }

    .groupe-card h3 {
        font-size: 1.7rem;
    }

    .groupe-card .card-content {
        padding: 20px;
    }

    .groupe-card .info-item {
        font-size: 1.2rem;
    }

    .groupe-card .card-description {
        font-size: 1.3rem;
    }

    .groupe-card .btn-voir-plus {
        font-size: 1.3rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .groupe-card .card-image {
        height: 180px;
    }

    .groupe-card h3 {
        font-size: 1.6rem;
    }

    .groupe-card .card-content {
        padding: 18px;
    }

    .groupe-card .info-item {
        font-size: 1.1rem;
    }

    .groupe-card .card-description {
        font-size: 1.2rem;
    }

    .groupe-card .btn-voir-plus {
        font-size: 1.2rem;
        padding: 10px 18px;
    }
}

/*=========================================
Sacrement
============================================*/
.sacrements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sacrement-item {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-boxground) 100%);
    color: var(--color-text);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px var(--shadow);
}

.sacrement-item h3 {
    color: var(--color-tertiary);
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.sacrement-item p {
    font-size: 1.4rem;
}

.actualites {
    max-width: 1000px;
    margin: 0 auto;
}

.actualite-item {
    background: var(--color-boxground);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

.actualite-item:hover {
    transform: translateX(5px);
}

.actualite-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.actualite-item .date {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.actualite-item p {
    font-size: 1.4rem;
    color: var(--color-text-light);
    z-index: 1;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.6rem;
    line-height: 2;
}

.contact-info-card a[href^="mailto"] {
    word-break: break-all;
}

.btn-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

footer {
    background: var(--color-primary-dark);
    color: white;
    text-align: center;
    padding: 3rem 5%;
}

.footer-content p {
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

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

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.bk-light {
    background: var(--color-background);
}

.bk-dark {
    background: var(--color-background-alt);
    border-radius: 25px;
}



/* Page mentions légales */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    text-align: left;
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.legal-section h3 {
    font-size: 2rem;
    color: var(--color-primary-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    font-size: 1.7rem;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

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

.legal-section ul {
    margin-left: 3rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-update {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 3rem;
}

/* Cookie consent  */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    box-shadow: 0 -4px 20px var(--shadow);
    padding: 1.5rem 2rem;
    z-index: 1200;  /* au-dessus du chatbox (1100) et du panel accès (1000) */
    display: none;
    border-top: 3px solid var(--color-primary);
}

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

.cookie-consent-text h3 {
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.cookie-consent-text p {
    font-size: 1.3rem;
    color: var(--color-text-light);
}

.cookie-consent-text a {
    color: var(--color-primary);
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--color-primary-dark);
}

.cookie-btn-decline {
    background: var(--color-boxground);
    color: var(--color-text);
}

.cookie-btn-decline:hover {
    background: var(--color-border);
}

/* Styles pour les boutons liens */
.btn-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.6rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* Hero page */
.hero-page {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 80px 5%;
    text-align: center;
    color: white;
    margin-top: 50px;
}

.hero-page h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-page p {
    font-size: 2rem;
    font-weight: 200;
}

/* Page content */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.8;
    color: #666;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Timeline sections */
.timeline-section {
    margin-bottom: 50px;
}

.timeline-section h2 {
    font-size: 2.5rem;
    color: rgb(40, 113, 177);
    margin-bottom: 20px;
    text-align: left;
    border-left: 5px solid rgb(21, 133, 231);
    padding-left: 20px;
}

.text-block {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #555;
}

.text-block p {
    margin-bottom: 15px;
    color: var(--color-text);
}

.priests-list {
    list-style: none;
    padding: 0;
    font-size: 1.6rem;
}

.priests-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

/* Groupes détaillés */
.groupe-card-detail {
    background: var(--color-boxground);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-left: 5px solid rgb(21, 133, 231);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.groupe-card-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.groupe-card-detail .groupe-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.groupe-card-detail:hover .groupe-card-image {
    transform: scale(1.02);
}

.groupe-card-detail h3 {
    color: rgb(40, 113, 177);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.groupe-horaire,
.groupe-lieu {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 8px 0;
    font-weight: 500;
}

.groupe-card-detail p {
    font-size: 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
    margin: 10px 0;
}

/* Planning */
.planning-week {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.day-schedule {
    background: var(--color-boxground);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid rgb(21, 133, 231);
}

.day-schedule.highlighted {
    background: linear-gradient(135deg, rgba(21, 133, 231, 0.1) 0%, rgba(40, 113, 177, 0.1) 100%);
    border-left: 4px solid rgb(40, 113, 177);
}

.day-schedule h3 {
    color: rgb(40, 113, 177);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.schedule-list {
    list-style: none;
    padding: 0;
}

.schedule-list li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.time {
    color: rgb(21, 133, 231);
    font-weight: 700;
    min-width: 80px;
    font-size: 1.6rem;
}

.event {
    color: var(--color-text);
}

/* Permanences */
.permanences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.permanence-card {
    background: var(--color-boxground);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.permanence-card h3 {
    color: rgb(40, 113, 177);
    font-size: 2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--sky-light);
}

.permanence-card p {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 8px 0;
}

.note {
    font-size: 1.3rem !important;
    color: #999 !important;
    font-style: italic;
    margin-top: 15px !important;
}

/* Actualités complètes */
.actualites-full {
    max-width: 900px;
    margin: 0 auto;
}

.actualite-full {
    background: var(--color-boxground);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}

/* Icônes en haut à droite des actualités */
.actualite-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.icon-pin,
.icon-camera {
    width: 20px;
    height: 20px;
    padding: 4px;
    background: rgba(21, 133, 231, 0.1);
    border-radius: 6px;
    color: rgb(21, 133, 231);
    transition: all 0.3s ease;
}

.icon-pin {
    background: var(--color-background-alt);
    color: var(--color-primary);
}

.icon-camera {
    background: rgba(21, 133, 231, 0.1);
    color: rgb(21, 133, 231);
}

.actualite-full:hover .icon-pin,
.actualite-full:hover .icon-camera {
    transform: scale(1.1);
}

.actualite-pinned .icon-pin {
    animation: pinWiggle 2s ease-in-out infinite;
}

@keyframes pinWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Image sur la partie droite */
.actualite-bg-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('/images/Icons/HandIcons.svg');
    background-repeat: no-repeat;
    background-position: center right;
    background-size: contain;
    pointer-events: none;
    opacity: 0.25;
    z-index: 0;
    transition: opacity 0.3s ease;
    filter: brightness(0) saturate(100%) invert(85%) sepia(12%) saturate(894%) hue-rotate(166deg) brightness(101%) contrast(92%);
}

.actualite-full:hover .actualite-bg-svg,
.actualite-item:hover .actualite-bg-svg {
    opacity: 0.45;
}

.actualite-header,
.actualite-body {
    position: relative;
    z-index: 1;
}


.actualite-header h2 {
    color: rgb(40, 113, 177);
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-align: left;
}

.actualite-body p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-text);
}

.no-actus {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.8rem;
    color: #999;
}

/* ═══════════════════════════════════════════════════════════
   SECTION SACREMENTS 
═══════════════════════════════════════════════════════════ */

.sacrements-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sacrement-category-box {
    background: var(--color-background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.sacrement-category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sacrement-category-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--color-primary);
}

.sacrement-category-box:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.sacrement-category-box:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.category-icon {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    margin: 0;
}

.category-sacrements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sacrement-pill {
    background: var(--color-background-alt);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.sacrement-category-box:hover .sacrement-pill {
    background: var(--color-primary);
    color: var(--color-background);
}

.category-description {
    text-align: center;
    font-size: 1.3rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.category-arrow {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.sacrement-category-box:hover .category-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════
   MODES D'ACCESSIBILITÉ - SACREMENTS
═══════════════════════════════════════════════════════════ */

/* Mode sombre */
.dark .sacrement-category-box {
    background: var(--color-boxground);
}

.dark .category-icon {
    filter: brightness(0) invert(1);
}

/* Mode contraste élevé */
.high-contrast .sacrement-category-box {
    border: 2px solid var(--color-text);
}

/* Mode contraste clair */
.high-contrast-light .sacrement-category-box {
    border: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sacrements-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sacrement-category-box {
        padding: 25px;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
    }
}


/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(21, 133, 231, 0.1) 0%, rgba(40, 113, 177, 0.1) 100%);
    border-radius: 15px;
    margin-top: 40px;
}

.cta-section h2 {
    color: rgb(40, 113, 177);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.7rem;
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, rgb(21, 133, 231) 0%, rgb(40, 113, 177) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.7rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(21, 133, 231, 0.4);
}

/* ================================
Page Contact 
================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 3rem;
}

.contact-info-card {
    background: var(--color-background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}


.contact-info-card:hover {
    box-shadow: 0 10px 30px var(--shadow);
    transform: translateX(5px);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info-card:nth-child(2) .icon {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
}

.contact-info-card:nth-child(3) .icon {
    background: linear-gradient(135deg, var(--color-tertiary), #ff9800);
}

.contact-info-card:nth-child(4) .icon {
    background: linear-gradient(135deg, var(--sky-light), var(--color-primary-light));
}

.contact-info-card h2 {
    color: var(--color-text);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.6rem;
}

.contact-info-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-card a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* Carte Google Maps */
.map-container {
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--shadow);
}

.map-note {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-boxground);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    font-size: 1.4rem;
    color: var(--color-text-light);
}

.map-note a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Article épinglé */
.actualite-pinned {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, hsl(188.6, 100%, 32.9%) 100%);
    color: black;
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow);
    border: none;
}


.actualite-pinned h3 {
    color: white !important;
    font-size: 2.5rem;
}

.actualite-pinned .date {
    color: rgba(255, 255, 255, 0.9) !important;
}

.actualite-pinned p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.pin-badge {
    display: inline-block;
    background: var(--color-tertiary);
    color: rgb(54, 54, 54);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.tl-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION CETTE SEMAINE
═══════════════════════════════════════════════════════════ */

.week-carousel-container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
}

.weekSwiper {
    width: 100%;
    padding: 2rem 5rem 5rem 5rem;
}

.weekSwiper .swiper-wrapper {
    align-items: flex-start;
}

.weekSwiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.day-schedule {
    background: var(--color-boxground);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.day-schedule.today {
    border: 2px solid var(--color-tertiary);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    background: linear-gradient(to bottom, rgba(255, 193, 7, 0.05), var(--color-boxground));
}

.day-header {
    background: var(--color-primary);
    color: white;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.day-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150%;
    height: 200%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    transform: rotate(-15deg);
}

.day-schedule.today .day-header {
    background: linear-gradient(135deg, var(--color-tertiary) 0%, #ff9800 100%);
}

.day-name {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.day-date {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.day-events {
    padding: 2rem;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(30, 95, 138, 0.03);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.event-item:hover {
    background: rgba(30, 95, 138, 0.08);
    border-left-color: var(--color-primary);
    transform: translateX(5px);
}

.day-schedule.today .event-item {
    background: rgba(255, 193, 7, 0.05);
}

.day-schedule.today .event-item:hover {
    background: rgba(255, 193, 7, 0.12);
    border-left-color: var(--color-tertiary);
}

.event-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background: var(--color-primary);
    min-width: 70px;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(30, 95, 138, 0.3);
}

.day-schedule.today .event-time {
    background: var(--color-tertiary);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.event-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.event-repeat-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.event-item:hover .event-repeat-icon {
    opacity: 1;
    transform: scale(1.15);
}

.day-schedule.today .event-repeat-icon {
    color: var(--color-tertiary);
    opacity: 0.85;
}

.event-description {
    font-size: 1.4rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.no-events {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-light);
    font-size: 1.6rem;
    font-style: italic;
}

.no-events-day {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--color-text-light);
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.7;
}

/* Swiper Navigation Buttons */
.weekSwiper .swiper-button-next,
.weekSwiper .swiper-button-prev {
    color: white;
    background: var(--color-primary);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(30, 95, 138, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.weekSwiper .swiper-button-next:after,
.weekSwiper .swiper-button-prev:after {
    font-size: 22px;
    font-weight: 900;
}

.weekSwiper .swiper-button-next:hover,
.weekSwiper .swiper-button-prev:hover {
    background: var(--color-primary-dark);
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(30, 95, 138, 0.6);
    opacity: 1;
}

.weekSwiper .swiper-button-next.swiper-button-disabled,
.weekSwiper .swiper-button-prev.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Swiper Pagination*/
.weekSwiper .swiper-pagination {
    bottom: 10px;
}

.weekSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-text-light);
    opacity: 0;
    transition: all 0.3s ease;
}

.weekSwiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 0;
    width: 32px;
    border-radius: 5px;
}


/* Responsive pour tablette */
@media (max-width: 1024px) {
    .week-carousel-container {
        padding: 0 2rem;
    }
    
    .weekSwiper {
        padding: 1.5rem 4rem 4rem 4rem;
    }

    .weekSwiper .swiper-pagination-bullet {
    opacity: 0.7;
}

.weekSwiper .swiper-pagination-bullet-active {
    opacity: 0.35;
}

}

/* Responsive pour mobile */
@media (max-width: 768px) {

    .weekSwiper .swiper-pagination-bullet {
    opacity: 0.7;
    }

    .weekSwiper .swiper-pagination-bullet-active {
    opacity: 0.35;
    }
    .week-carousel-container {
        padding: 0 1rem;
    }
    
    .weekSwiper {
        padding: 1rem 3.5rem 3.5rem 3.5rem;
    }
    
    .weekSwiper .swiper-button-next,
    .weekSwiper .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    
    .weekSwiper .swiper-button-next:after,
    .weekSwiper .swiper-button-prev:after {
        font-size: 18px;
    }
    
    .day-header {
        padding: 1.5rem;
    }
    
    .day-name {
        font-size: 1.7rem;
    }
    
    .day-date {
        font-size: 1.3rem;
        padding: 0.3rem 0.8rem;
    }
    
    .day-events {
        padding: 1.5rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .event-time {
        width: fit-content;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .weekSwiper {
        padding: 1rem 0 3rem 0;
    }
    
    .weekSwiper .swiper-button-next,
    .weekSwiper .swiper-button-prev {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   CALENDRIER HEBDOMADAIRE
═══════════════════════════════════════════════════════════ */

.week-grid-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .week-grid-container {
        grid-template-columns: repeat(7, minmax(120px, 1fr));
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        scrollbar-width: thin;
        scroll-snap-type: x mandatory;
    }
    .week-grid-container > * {
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .week-grid-container {
        grid-template-columns: repeat(7, minmax(100px, 1fr));
    }
}

.day-schedule-fixed {
    background: var(--color-background);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.day-schedule-fixed:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: var(--color-primary-light);
}

.day-schedule-fixed.today {
    border-color: var(--color-tertiary);
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.05) 0%, 
        var(--color-background) 50%);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.day-schedule-fixed.today:hover {
    box-shadow: 0 8px 28px rgba(255, 193, 7, 0.4);
}

.day-schedule-fixed .day-header {
    background: var(--color-primary);
    color: white;
    padding: 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.day-schedule-fixed.today .day-header {
    background: var(--color-tertiary);
    color: #000;
}

.day-schedule-fixed .day-name {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-schedule-fixed .day-date {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

.day-schedule-fixed .day-events {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.day-schedule-fixed .event-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--color-boxground);
    border-radius: 10px;
    border-left: 3px solid var(--color-primary);
    transition: all 0.2s ease;
}

.day-schedule-fixed .event-item:hover {
    background: var(--color-background-alt);
    transform: translateX(3px);
}

.day-schedule-fixed.today .event-item {
    background: rgba(255, 193, 7, 0.12);
    border-left-color: var(--color-tertiary);
}

.day-schedule-fixed .event-time {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    background: var(--color-primary);
    width: fit-content;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(30, 95, 138, 0.3);
}

.day-schedule-fixed.today .event-time {
    background: var(--color-tertiary);
    color: #000;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

.day-schedule-fixed .event-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.4;
}

.day-schedule-fixed .event-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-schedule-fixed .event-repeat-icon {
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.day-schedule-fixed .event-item:hover .event-repeat-icon {
    opacity: 1;
    transform: scale(1.1);
}

.day-schedule-fixed.today .event-repeat-icon {
    color: var(--color-tertiary);
}

.day-schedule-fixed .event-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.day-schedule-fixed .no-events-day {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-light);
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.6;
}

/* Responsive pour le calendrier fixe */
@media (max-width: 1400px) {
    .week-grid-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .week-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .week-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .week-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .day-schedule-fixed {
        min-height: 180px;
    }
    
    .day-schedule-fixed .day-header {
        padding: 1rem;
    }
    
    .day-schedule-fixed .day-name {
        font-size: 1.4rem;
    }
    
    .day-schedule-fixed .day-date {
        font-size: 1.2rem;
    }
    
    .day-schedule-fixed .day-events {
        padding: 1rem;
    }
    
    .day-schedule-fixed .event-item {
        padding: 0.8rem;
    }
    
    .day-schedule-fixed .event-time {
        font-size: 1.2rem;
    }
    
    .day-schedule-fixed .event-title {
        font-size: 1.3rem;
    }
    
    .day-schedule-fixed .event-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .week-grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .day-schedule-fixed {
        min-height: 150px;
    }
}


/* modal */
/* Modal pour images actualités */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

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

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: scaleIn 0.4s ease;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

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

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }


/* Responsive */
@media (max-width: 1500px) {

    .logo-text {
        display: none;
    }
    .logo-second-text {
        display: none;
    }
    .logo-short-text {
        display: inline;
    }
}

@media (max-width: 1000px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 50px);
        background: var(--color-background-alt);
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
        overflow-x: hidden;
    }

    .menu.active {
        left: 0;
    }

    .menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .menu li a {
        display: block;
        padding: 15px 0;
        font-size: 1.8rem;
    }

    .menu li a::after {
        display: none;
    }

    .menu li a.active {
        color: var(--color-primary);
        font-weight: 700;
        padding-left: 10px;
        border-left: 3px solid var(--color-primary);
    }

    header {
        height: 50px;
        padding: 0 5%;
        flex-direction: row;
        justify-content: space-between;
    }

    .hero {
        height: 100vh;
        padding-bottom: 100px;
        background-position: center center;
        background-size: auto 100%;
        background-attachment: scroll;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content h3 {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .hero-content p {
        font-size: 1.6rem;
        padding: 0 20px;
    }

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

    /* Panel accessibilité mobile */
    .access-fab {
        bottom: 1rem;
        right: 1rem;
    }
    
    .access-fab .fab-button {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .access-fab .fab-button:hover .fab-icon {
        transform: scale(1.1);
    }


.dark .access-fab .fab-button .fab-icon {
    filter: brightness(0) invert(1);
}
    
    .access-fab .panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        padding: 1.25rem;
        transform: translateY(100%);
    }
    
    .access-fab .panel::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 5px;
        background: var(--color-border);
        border-radius: 10px;
    }
    
    .access-fab .panel.active {
        transform: translateY(0);
    }
    
    .access-fab .panel-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        padding-top: 1rem;
    }
    
    .access-fab .panel-header .icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .access-fab .panel-header h3 {
        font-size: 1.5rem;
    }
    
    .access-fab .panel-header p {
        font-size: 1.1rem;
    }
    
    .access-fab .section-title {
        font-size: 1.3rem;
        margin: 1.25rem 0 0.5rem;
    }

    .access-fab .option-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .access-fab .option-btn {
        padding: 1rem 0.75rem;
        font-size: 1.3rem;
    }
    
    .access-fab .option-btn .icon {
        font-size: 1.6rem;
    }
    
    .access-fab .option-btn .label {
        font-size: 1.1rem;
    }
    
    .access-fab .lang-selector {
        gap: 0.75rem;
        width: 100%;
    }
    
    .access-fab .lang-btn {
        padding: 1rem;
        gap: 0.5rem;
        max-width: none;
        width: 100%;
    }
    
    .access-fab .lang-btn .flag {
        font-size: 1.8rem;
    }
    
    .access-fab .lang-btn .lang-name {
        font-size: 1.3rem;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }
    
    .access-fab .lang-btn .lang-native {
        font-size: 1rem;
    }
    
    .access-fab .toggle-row {
        padding: 1rem 0;
    }
    
    .access-fab .toggle-label {
        font-size: 1.3rem;
    }
    
    .access-fab .reset-btn {
        font-size: 1.3rem;
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }

    .phrase-texte {
        font-size: 2rem;
    }
            
    .phrase-card {
        padding: 40px 25px;
    }
    
    .phrase-card::before,
    .phrase-card::after {
        font-size: 5rem;
    }
    
    .phrase-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
/* ═══════════════════════════════════════════════════════════
   MASQUAGE DES OPTIONS DESKTOP SUR MOBILE/TABLETTE
═══════════════════════════════════════════════════════════ */

/* Masquer les options qui nécessitent une souris sur mobile/tablette */
@media (max-width: 1024px) {
    .toggle-row.desktop-only,
    .toggle-row.hidden-on-mobile {
        display: none !important;
    }
}

/* Utiliser les media queries pour détecter les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
    .toggle-row.desktop-only,
    .toggle-row.hidden-on-mobile {
        display: none !important;
    }
}
/* ========================================
   PAGINATION DES ACTUALITÉS
   ======================================== */

.pagination {
    margin-top: 60px;
    padding: 40px;
    background: var(--color-boxground);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.pagination-info {
    font-size: 1.4rem;
    color: var(--color-text-light);
    text-align: center;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 95, 138, 0.3);
}

.pagination-first,
.pagination-last {
    padding: 12px 18px;
    font-size: 1.6rem;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    margin: 0 10px;
}

.pagination-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: var(--color-primary-light);
    color: white;
}

.pagination-number.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 95, 138, 0.3);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        padding: 30px 20px;
    }
    
    .pagination-info {
        font-size: 1.2rem;
    }
    
    .pagination-buttons {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 10px 18px;
        font-size: 1.2rem;
    }
    
    .pagination-prev,
    .pagination-next {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .pagination-first,
    .pagination-last {
        padding: 10px 14px;
    }
    
    .pagination-numbers {
        margin: 0 5px;
        gap: 5px;
    }
    
    .pagination-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 25px 15px;
    }
    
    .pagination-info {
        font-size: 1.1rem;
    }
    
    .pagination-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-numbers {
        order: -1;
        margin: 10px 0;
    }
    
    .pagination-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .pagination-first,
    .pagination-last {
        display: none;
    }
}

/* ============================================
   CARROUSEL CSS PUR — NOS CURÉS
   ============================================ */

/* Cacher les radio buttons */
.cures-carousel input[type=radio] { display: none; }

.cures-swiper-section {
    margin: 40px 0 10px;
    position: relative;
}

.cures-swiper-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary, hsl(207, 65%, 45%));
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 32px;
    position: relative;
}

.cures-swiper-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-primary, hsl(207, 65%, 45%));
    border-radius: 2px;
    margin: 10px auto 0;
    opacity: 0.5;
}

/* Conteneur principal */
.cures-carousel {
    position: relative;
    width: 100%;
    padding-bottom: 60px;
}

/* Zone des cartes */
.cures-cards {
    position: relative;
    width: 100%;
    min-height: 510px;
    height: 510px;        
    perspective: 1000px;
    transition: height 0.5s cubic-bezier(.4,0,.2,1); 
}

/* Chaque carte : position absolue centrée */
.cure-card {
    position: absolute;
    width: 340px;
    left: 50%;
    top: 0;
    height: auto;          
    min-height: 100%;      
    margin-left: -170px;
    border-radius: 18px;
    overflow: visible;
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1),
                opacity  0.5s cubic-bezier(.4,0,.2,1),
                z-index  0s 0.25s;
    transform: translateX(120%) scale(0.82);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* Le contenu interne garde ses coins arrondis */
.cure-card__image-wrap {
    border-radius: 18px 18px 0 0;
}

/* === ACTIF : carte au centre === */
#cure-1:checked ~ .cures-cards #cure-card-1,
#cure-2:checked ~ .cures-cards #cure-card-2,
#cure-3:checked ~ .cures-cards #cure-card-3,
#cure-4:checked ~ .cures-cards #cure-card-4,
#cure-5:checked ~ .cures-cards #cure-card-5,
#cure-6:checked ~ .cures-cards #cure-card-6,
#cure-7:checked ~ .cures-cards #cure-card-7 {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

/* === PRÉCÉDENT : carte à gauche === */
#cure-2:checked ~ .cures-cards #cure-card-1,
#cure-3:checked ~ .cures-cards #cure-card-2,
#cure-4:checked ~ .cures-cards #cure-card-3,
#cure-5:checked ~ .cures-cards #cure-card-4,
#cure-6:checked ~ .cures-cards #cure-card-5,
#cure-7:checked ~ .cures-cards #cure-card-6,
#cure-1:checked ~ .cures-cards #cure-card-7 {
    transform: translateX(-68%) scale(0.84);
    opacity: 0.45;
    z-index: 2;
    pointer-events: auto;
}

/* === SUIVANT : carte à droite === */
#cure-1:checked ~ .cures-cards #cure-card-2,
#cure-2:checked ~ .cures-cards #cure-card-3,
#cure-3:checked ~ .cures-cards #cure-card-4,
#cure-4:checked ~ .cures-cards #cure-card-5,
#cure-5:checked ~ .cures-cards #cure-card-6,
#cure-6:checked ~ .cures-cards #cure-card-7,
#cure-7:checked ~ .cures-cards #cure-card-1 {
    transform: translateX(68%) scale(0.84);
    opacity: 0.45;
    z-index: 2;
    pointer-events: auto;
}

/* === TOUS LES AUTRES : cachés === */
#cure-1:checked ~ .cures-cards #cure-card-3,
#cure-1:checked ~ .cures-cards #cure-card-4,
#cure-1:checked ~ .cures-cards #cure-card-5,
#cure-1:checked ~ .cures-cards #cure-card-6,
#cure-2:checked ~ .cures-cards #cure-card-4,
#cure-2:checked ~ .cures-cards #cure-card-5,
#cure-2:checked ~ .cures-cards #cure-card-6,
#cure-2:checked ~ .cures-cards #cure-card-7,
#cure-3:checked ~ .cures-cards #cure-card-5,
#cure-3:checked ~ .cures-cards #cure-card-6,
#cure-3:checked ~ .cures-cards #cure-card-7,
#cure-3:checked ~ .cures-cards #cure-card-1,
#cure-4:checked ~ .cures-cards #cure-card-6,
#cure-4:checked ~ .cures-cards #cure-card-7,
#cure-4:checked ~ .cures-cards #cure-card-1,
#cure-4:checked ~ .cures-cards #cure-card-2,
#cure-5:checked ~ .cures-cards #cure-card-7,
#cure-5:checked ~ .cures-cards #cure-card-1,
#cure-5:checked ~ .cures-cards #cure-card-2,
#cure-5:checked ~ .cures-cards #cure-card-3,
#cure-6:checked ~ .cures-cards #cure-card-1,
#cure-6:checked ~ .cures-cards #cure-card-2,
#cure-6:checked ~ .cures-cards #cure-card-3,
#cure-6:checked ~ .cures-cards #cure-card-4,
#cure-7:checked ~ .cures-cards #cure-card-2,
#cure-7:checked ~ .cures-cards #cure-card-3,
#cure-7:checked ~ .cures-cards #cure-card-4,
#cure-7:checked ~ .cures-cards #cure-card-5 {
    transform: translateX(110%) scale(0.75);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Contenu des cartes ── */

.cure-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-primary, hsl(207, 65%, 45%));
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-transform: uppercase;
}

.cure-card__image-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #e8eef4;
    flex-shrink: 0;
}

.cure-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.cure-card:hover .cure-card__image-wrap img {
    transform: scale(1.04);
}

.cure-card__body {
    padding: 20px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cure-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text, #1a2535);
    margin: 0;
    line-height: 1.2;
}

.cure-card__dates {
    font-size: 1.2rem;
    color: var(--color-primary, hsl(207, 65%, 45%));
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cure-card__dates-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cure-card__desc {
    font-size: 1.2rem;
    color: var(--color-text-light, #555);
    line-height: 1.6;
    margin: 4px 0 0;
    overflow: visible;
    -webkit-line-clamp: unset;
    display: block;
}

/* ── Boutons navigation ── */

.cures-nav__btn {
    display: none !important;
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: rgba(255,255,255,0.92);
    border: 2px solid var(--color-primary, hsl(207, 65%, 45%));
    color: var(--color-primary, hsl(207, 65%, 45%));
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    user-select: none;
}

.cures-nav__btn:hover {
    background: var(--color-primary, hsl(207, 65%, 45%));
    color: #fff;
}

.cures-nav__btn--prev { left: 10px; }
.cures-nav__btn--next { right: 10px; }



/* ── Dots ── */
.cures-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 10px;
    z-index: 10;
}

.cures-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: none;
}

.cures-dot:hover { background: rgba(0,0,0,0.4); }

#cure-1:checked ~ .cures-dots label:nth-child(1),
#cure-2:checked ~ .cures-dots label:nth-child(2),
#cure-3:checked ~ .cures-dots label:nth-child(3),
#cure-4:checked ~ .cures-dots label:nth-child(4),
#cure-5:checked ~ .cures-dots label:nth-child(5),
#cure-6:checked ~ .cures-dots label:nth-child(6),
#cure-7:checked ~ .cures-dots label:nth-child(7) {
    background: var(--color-primary, hsl(207, 65%, 45%));
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .cures-cards { height: 480px; }
    .cure-card { width: 280px; margin-left: -140px; }
    .cure-card__image-wrap { height: 240px; }

    #cure-2:checked ~ .cures-cards #cure-card-1,
    #cure-3:checked ~ .cures-cards #cure-card-2,
    #cure-4:checked ~ .cures-cards #cure-card-3,
    #cure-5:checked ~ .cures-cards #cure-card-4,
    #cure-6:checked ~ .cures-cards #cure-card-5,
    #cure-7:checked ~ .cures-cards #cure-card-6,
    #cure-1:checked ~ .cures-cards #cure-card-7 { transform: translateX(-72%) scale(0.82); }

    #cure-1:checked ~ .cures-cards #cure-card-2,
    #cure-2:checked ~ .cures-cards #cure-card-3,
    #cure-3:checked ~ .cures-cards #cure-card-4,
    #cure-4:checked ~ .cures-cards #cure-card-5,
    #cure-5:checked ~ .cures-cards #cure-card-6,
    #cure-6:checked ~ .cures-cards #cure-card-7,
    #cure-7:checked ~ .cures-cards #cure-card-1 { transform: translateX(72%) scale(0.82); }
}

@media (max-width: 480px) {
    .cures-cards { height: 460px; }
    .cure-card { width: 240px; margin-left: -120px; }
    .cure-card__image-wrap { height: 200px; }

    #cure-2:checked ~ .cures-cards #cure-card-1,
    #cure-3:checked ~ .cures-cards #cure-card-2,
    #cure-4:checked ~ .cures-cards #cure-card-3,
    #cure-5:checked ~ .cures-cards #cure-card-4,
    #cure-6:checked ~ .cures-cards #cure-card-5,
    #cure-7:checked ~ .cures-cards #cure-card-6,
    #cure-1:checked ~ .cures-cards #cure-card-7 { transform: translateX(-80%) scale(0.78); }

    #cure-1:checked ~ .cures-cards #cure-card-2,
    #cure-2:checked ~ .cures-cards #cure-card-3,
    #cure-3:checked ~ .cures-cards #cure-card-4,
    #cure-4:checked ~ .cures-cards #cure-card-5,
    #cure-5:checked ~ .cures-cards #cure-card-6,
    #cure-6:checked ~ .cures-cards #cure-card-7,
    #cure-7:checked ~ .cures-cards #cure-card-1 { transform: translateX(80%) scale(0.78); }
}

@media (max-width: 768px) {
    footer {
        padding-bottom: calc(3rem + 80px);
    }
}

@media (max-width: 600px) {
    footer {
        padding-bottom: calc(2rem + 90px);
    }
}
/* ═══════════════════════════════════════════════════════════
   ÉVÉNEMENTS ANNULÉS
═══════════════════════════════════════════════════════════ */
.tl-evt-row.is-annule {
    background: rgba(244, 67, 54, 0.06);
    border-radius: 8px;
}
.tl-evt-row.is-annule .tl-evt-title {
    text-decoration: line-through;
    color: var(--color-text-light);
    opacity: 0.75;
}
.tl-evt-row.is-annule .tl-evt-time {
    color: #ef9a9a;
}
.tl-evt-annule-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f44336;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    letter-spacing: 0.02em;
}
.tl-evt-annule-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

/* Admin : ligne annulée dans le tableau */
.events-table tr.row-annule {
    background: #fff5f5;
    opacity: 0.85;
}
.events-table tr.row-annule:hover {
    background: #ffecec;
}