:root {
    --background-gradient: linear-gradient(135deg, var(--color-darkblue) 0%, var(--color-greyblue) 40%, var(--color-greenblue) 100%);
    --color-black: #000;
    --color-darkblue: #003B66;
    --color-greenblue: #2F7D6F;
    --color-greyblue: #005E75;
    --color-red: #F08080;
    --color-white: #FFF;
    --color-yellow: #FEE505;
    --font-main: "Montserrat", sans-serif;
}

/* =========================
   RESET / BASE
   ========================= */

*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    background: var(--background-gradient);
    font-family: var(--font-main);
    font-weight: 400;
    margin: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

/* =========================
   ELEMENTS
   ========================= */

article,
section {
    margin: 0 auto;
    padding: 10px 0;
    width: 98%;
}

.quote_section blockquote {
    bottom: 10%;
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
    position: absolute;
    right: 2%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    width: 450px;
    z-index: 3;
}

.quote_section blockquote p {
    margin: 0;
}

.warning_quote {
    color: var(--color-red);
    font-weight: 500;
    text-transform: uppercase;
}

footer {
    align-items: center;
    background-color: var(--color-darkblue);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: flex;
    font-family: var(--font-main);
    font-weight: 400;
    justify-content: space-between;
    padding: 25px 60px;
}

h1 {
    font-family: "Anton", sans-serif;
    font-size: 8vw;
    font-style: italic;
    letter-spacing: 3px;
}

h2 {
    color: var(--color-yellow);
    margin: 10px 0;
}

h3,
legend {
    color: var(--color-white);
    margin-top: 7px;
    text-transform: uppercase;
}

h4 {
    color: var(--color-yellow);
}

hr {
    align-self: stretch;
    background-color: var(--color-darkblue);
    border: 0;
    border-radius: 2px;
    margin: 0 25px;
    width: 2px;
}

strong {
    color: var(--color-yellow);
    font-weight: 700;
}

strong.red {
    color: var(--color-red);
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* =========================
   UTILITAIRES
   ========================= */

.red {
    color: var(--color-red);
}

.white {
    color: var(--color-white);
}

.yellow {
    color: var(--color-yellow);
}

/* =========================
   LAYOUT / WRAPPERS
   ========================= */

.box {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 2%;
}

.boxes_row {
    align-items: stretch;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.content_wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
}

.section_content {
    align-items: stretch;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.section_content_grid {
    align-items: stretch;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(3, 1fr);
}

.section_wrapper {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    gap: 30px;
    padding: 25px;
}

.title_row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* =========================
   BOUTONS
   ========================= */

.button_details {
    background-color: var(--color-yellow);
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 300;
    padding: 10px;
    width: 100%;
}

.button_details i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.button_details:hover i {
    transform: translateX(5px);
}

.button_details_link {
    margin-top: 7px;
    width: 40%;
}

.button_submit {
    margin-top: 15px;
}

.button_submit,
.header_buttons button {
    background-color: var(--color-yellow);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--color-black);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    padding: 15px 40px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.button_submit:hover,
.header_buttons button:hover {
    background-color: var(--color-greyblue);
    border-color: var(--color-white);
    transform: scale(0.90);
}

/* =========================
   IMAGES / BLOCS
   ========================= */

.blr_split {
    align-items: stretch;
    display: flex;
    gap: 0;
}

.blr_description {
    background-color: var(--color-white);
    border-radius: 0 10px 10px 0;
    padding: 15px;
    width: 50%;
}

.blr_description p {
    margin: 10px 0;
}

.blr_description ul,
.program_wrapper ul {
    list-style-type: disc;
    margin: 10px 0;
    padding-left: 22px;
}

.blr_description ul li,
.program_wrapper ul li {
    margin: 10px;
}

.blr_description ul.blr_list {
    list-style: disc;
    margin: 10px 0 12px 0;
    padding-left: 22px;
}

.blr_description ul.blr_list li {
    margin: 8px 0;
}

.blr_section {
    margin-top: 15px;
}

.cover {
    align-items: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    height: 250px;
    width: 100%;
}

.cover h4 {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
    color: #fff;
    font-size: 1.2rem;
    margin: 2%;
    padding: 20px;
    text-align: center;
}

.illustration {
    border-radius: 10px 0 0 10px;
    display: block;
    object-fit: cover;
    width: 50%;
}

.image_background {
    display: block;
    filter: brightness(0.8);
    width: 100%;
}

.image_thumbnail {
    align-self: flex-start;
    border-radius: 50%;
    flex: 0 0 auto;
    height: clamp(90px, 18vw, 140px);
    object-fit: cover;
    object-position: center;
    width: clamp(90px, 18vw, 140px);
}

.program_summary {
    text-align: justify;
}

.program_wrapper {
    width: 23%;
}

.program_wrapper h3 {
    text-align: center;
}

/* =========================
   CARROUSEL
   ========================= */

@keyframes scrolling {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.carousel {
    display: flex;
    overflow: hidden;
}

.carousel_card {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 0.10) 5px 5px 20px 0;
    height: 200px;
    min-width: 250px;
    width: 250px;
}

.carousel_group {
    animation: scrolling 20s linear infinite;
    display: flex;
    flex: 0 0 100%;
    gap: 20px;
    padding-right: 20px;
    will-change: transform;
}

.carousel:hover .carousel_group {
    animation-play-state: paused;
}

.card1 { background-image: url("../img/illustrations/carousel/1.jpg"); }
.card2 { background-image: url("../img/illustrations/carousel/2.jpg"); }
.card3 { background-image: url("../img/illustrations/carousel/3.webp"); }
.card4 { background-image: url("../img/illustrations/carousel/4.jpg"); }
.card5 { background-image: url("../img/illustrations/carousel/5.jpg"); }
.card6 { background-image: url("../img/illustrations/carousel/6.jpg"); }
.card7 { background-image: url("../img/illustrations/carousel/7.jpg"); }
.card8 { background-image: url("../img/illustrations/carousel/8.jpg"); }

/* =========================
   EVENTS
   ========================= */

.event_date,
.event_location {
    font-size: 125%;
    font-style: italic;
    font-weight: 300;
    margin: 2% 0;
}

.event_details {
    margin: 30px;
    position: absolute;
    top: 15%;
    width: 100%;
}

.event_title {
    color: var(--color-white);
    font-size: 300%;
}

.events_section {
    align-items: stretch;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =========================
   HEADER
   ========================= */

@keyframes zoomInHeader {
    from { transform: scale(1.25); }
    to { transform: scale(1); }
}

header {
    overflow: hidden;
    position: relative;
    width: 100%;
}

header .image_background {
    height: 320px;
    object-fit: cover;
}

.header_background {
    animation: zoomInHeader 1.2s ease-out forwards;
    transform: scale(1.1);
}

.header_buttons {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.header_logo {
    width: 10%;
}

.header_logo img {
    width: 100%;
}

.header_menu nav ul {
    align-items: center;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.header_menu nav li a {
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header_menu nav li a:hover {
    color: var(--color-yellow);
}

.header_menu nav li a::after {
    background-color: var(--color-yellow);
    bottom: -4px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    width: 0;
}

.header_menu nav li a:hover::after {
    width: 60%;
}

.header_nav {
    align-items: center;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    width: 88%;
}

.header_overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.header_wrapper {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: 0;
    margin: 0.5%;
    position: absolute;
    top: 0;
    width: 99%;
    z-index: 3;
}

.name_wrapper {
    left: 50%;
    position: absolute;
    top: 60%;
    transform: translate(-50%, -50%);
    z-index: 2.5;
}

.nav_burger {
    display: none;
}

.nav_toggle {
    display: none;
}

/* =========================
   QUOTE / OVERLAY
   ========================= */

.event_header,
.quote_section {
    color: var(--color-white);
    font-family: var(--font-main);
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

/* Overlay par défaut neutre (évite le halo blanc partout) */
.overlay {
    background: none;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    position: absolute;
    right: 0;
    width: 100%;
    z-index: 2;
}

/* Halo radial UNIQUEMENT sur les quotes */
.quote_section .overlay {
    background: radial-gradient(circle at 95% 95%,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0) 60%
    );
}

/* Dégradé sombre UNIQUEMENT sur les events (lisibilité date/lieu) */
.event_header .overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.25) 55%,
        rgba(0,0,0,0) 100%
    );
}

.quote_section {
    border-radius: 16px;
}

.quote_section > .image_background {
    filter: brightness(0.8);
    height: 520px;
    object-fit: cover;
}

.quote_section blockquote.quote_text {
    bottom: 12%;
    margin: 0;
    position: absolute;
    right: 4%;
    width: min(520px, 42%);
    z-index: 3;
}

/* =========================
   EVENT HEADER (corrigé)
   ========================= */

.event_header {
    position: relative;
    overflow: hidden;
    padding: 0;
    width: 100%;
    height: clamp(260px, 55vw, 380px);
}

.event_header .image_background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    z-index: 1;
}

.event_header .event_details {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 3;
    margin: 0;
    padding: 14px 14px 16px;
    max-width: 100%;
}

.event_header .event_details h2,
.event_header .event_details h3 {
    margin: 0 0 6px 0;
}

.event_header .event_date,
.event_header .event_location {
    margin: 6px 0;
}

/* =========================
   NEWS
   ========================= */

.news_box {
    background-color: var(--color-white);
    color: #000;
    cursor: pointer;
    flex: 1;
    margin: 0 auto;
    min-height: 100px;
    padding-bottom: 40px;
    position: relative;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.news_box h4 {
    margin-top: 5px;
}

.news_box i {
    bottom: 15px;
    font-size: 200%;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    transition: transform 0.3s ease-in-out;
}

.news_box:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    color: var(--color-greyblue);
    transform: scale(1.1);
}

.news_box:hover i {
    transform: translateX(-50%) scale(1.5);
}

.news_box_home {
    max-width: 300px;
}

.news_box_list {
    width: 80%;
}

.news_date {
    background-color: var(--color-greyblue);
    border-radius: 3px;
    color: var(--color-yellow);
    padding: 5px;
    text-align: center;
    width: 50%;
}

/* =========================
   PRIORITY FLIP
   ========================= */

.flip_back,
.flip_front {
    backface-visibility: hidden;
    box-sizing: border-box;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.flip_back {
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    font-weight: 700;
    justify-content: center;
    padding: 10px;
    transform: rotateY(180deg);
}

.flip_back p {
    color: #000;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.flip_front img {
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.flip_front h4 {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
    left: 50%;
    margin: 0;
    padding: 10px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

.flip_inner {
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    width: 100%;
}

.priority_box {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    perspective: 1000px;
    position: relative;
    width: 100%;
}

.priority_box:hover .flip_inner {
    transform: rotateY(180deg);
}

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

.footer-copyright {
    flex: 1;
    font-size: 12px;
    text-align: center;
}

.footer-links nav ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.footer-links nav li a {
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links nav li a:hover {
    color: var(--color-yellow);
}

.footer-social-networks {
    display: flex;
    gap: 20px;
}

.footer-social-networks a {
    color: var(--color-white);
    font-size: 22px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-networks a:hover {
    color: var(--color-yellow);
    transform: scale(0.9);
}

.legal {
    font-size: 60%;
    font-style: italic;
    font-weight: 300;
}

/* =========================
   POPUPS
   ========================= */

.error_form {
    padding: 15px;
    background: var(--color-red);
    border-radius: 10px;
}

#activism,
#support,
#message_form {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    width: 100%;
    z-index: 4;
}

#activism:target,
#support:target,
#message_form:target {
    opacity: 1;
    visibility: visible;
}

#activism:target .popup,
#support:target .popup,
#message_form:target .popup {
    transform: scale(1);
}

.popup {
    background: var(--background-gradient);
    border-radius: 10px;
    color: var(--color-white);
    max-height: 90vh;
    max-width: 700px;
    overflow-y: auto;
    padding: 10px;
    position: relative;
    scrollbar-width: none;
    transform: scale(0.9);
    transition: transform 0.25s ease;
    width: 75%;
    z-index: 5;
    -ms-overflow-style: none;
}

.popup::-webkit-scrollbar {
    display: none;
}

.popup_close {
    color: #D3D3D3;
    font-size: 200%;
    position: absolute;
    right: 0;
    text-decoration: none;
    top: 0;
    transform: scale(0.9);
    transition: color 0.3s ease, transform 0.3s ease;
}

.popup_close:hover {
    color: #FF5E4D;
    transform: scale(1);
}

.popup .fa-circle-check,
.popup .fa-triangle-exclamation {
    font-size: 700%;
    margin-bottom: 15px;
}

.popup_message {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.popup_message p {
    text-align: center;
}

.required_field {
    color: var(--color-red);
}

/* =========================
   FORMULAIRES
   ========================= */

.contact_consent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 65%;
}

.contact_form .button_submit {
    margin-top: 5px;
    width: fit-content;
}

.contact_form select,
.stay_informed_form select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    padding: 12px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact_form select:focus,
.stay_informed_form select:focus {
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(254, 229, 5, 0.25);
}

.contact_section {
    margin-top: 25px;
    padding: 20px 0 30px 0;
}

.contact_text {
    width: 35%;
}

.contact_text p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 10px 0 0 0;
}

.contact_wrapper,
.stay_informed_wrapper {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    gap: 30px;
    padding: 25px;
}

.input_civility {
    max-width: 140px;
}

.input_group {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
}

.input_group input {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    padding: 12px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input_group input:focus {
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(254, 229, 5, 0.25);
}

.input_group input::placeholder {
    color: rgba(0, 0, 0, 0.45);
    font-style: italic;
}

.input_group label {
    color: var(--color-yellow);
    font-size: 0.9rem;
    font-weight: 600;
}

.input_group textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    min-height: 140px;
    outline: none;
    padding: 12px 14px;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input_group textarea:focus {
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(254, 229, 5, 0.25);
}

.input_group textarea::placeholder {
    color: rgba(0, 0, 0, 0.45);
    font-style: italic;
}

.input_row {
    display: flex;
    gap: 20px;
}

.stay_informed_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 60%;
}

.stay_informed_form .button_submit {
    margin-top: 10px;
    width: fit-content;
}

.stay_informed_section {
    margin-top: 25px;
    padding: 20px 0;
}

.stay_informed_text {
    width: 40%;
}

.support_inputs {
    display: grid;
    gap: 15px 25px;
    grid-template-columns: 1fr 1fr;
    margin: 20px 0;
}

/* ===== Support options (switch + texte) ===== */
.support_option {
    align-items: center;
    display: flex;
    gap: 12px;
    margin: 10px 0;
}

.support_option .switch {
    flex: 0 0 auto;
    margin-right: 0;
}

.support_option > label:not(.switch) {
    cursor: pointer;
    flex: 1;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
}

.switch,
.switch__input {
    touch-action: manipulation;
}

/* =========================
   RADIO
   ========================= */

.radio-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
    user-select: none;
}

.radio-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.radio-card:has(input:checked) {
    background: linear-gradient(0deg, rgba(254, 229, 5, 0.08), rgba(254, 229, 5, 0.08)), #fff;
    border-color: #003B66;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.radio-card:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

.radio-card:has(input:focus-visible) {
    outline: 2px solid #1e90ff;
    outline-offset: 2px;
}

.radio-card .radio-text {
    color: #222;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}

.radio-card > input[type="radio"] {
    appearance: none;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.radio-group {
    border: 0;
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 0;
}

.radio-group > legend {
    color: #002C47;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.radio-mark {
    align-items: center;
    border: 2px solid #003B66;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 18px;
    height: 18px;
    justify-content: center;
    margin-top: 2px;
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
    width: 18px;
}

.radio-card:has(input:checked) .radio-mark {
    background: #003B66;
    border-color: #003B66;
    box-shadow: inset 0 0 0 4px #fff;
}

@supports not(selector(:has(*))) {
    .radio-card input[type="radio"]:checked + .radio-mark {
        background: #003B66;
        border-color: #003B66;
        box-shadow: inset 0 0 0 4px #fff;
    }

    .radio-card input[type="radio"]:checked ~ .radio-text {
        font-weight: 600;
    }

    .radio-card input[type="radio"]:focus-visible + .radio-mark {
        outline: 2px solid #1e90ff;
        outline-offset: 2px;
    }
}

/* =========================
   SWITCH
   ========================= */

.switch {
    --h: 28px;
    --pad: 3px;
    --ring: 0 0 0 3px rgba(34, 197, 94, 0.35);
    --thumb: #ffffff;
    --track-off: #d1d5db;
    --track-on: var(--color-greenblue);
    --w: 52px;

    display: inline-block;
    height: var(--h);
    margin-right: 10px;
    position: relative;
    width: var(--w);
}

.switch__input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.switch__input:checked + .switch__track {
    background: var(--track-on);
}

.switch__input:checked + .switch__track::after {
    transform: translateX(calc(var(--w) - var(--h)));
}

.switch__input:disabled {
    cursor: not-allowed;
}

.switch__input:disabled + .switch__track {
    opacity: 0.55;
}

.switch__input:focus-visible + .switch__track {
    box-shadow: var(--ring);
    outline: 2px solid transparent;
}

.switch__track {
    background: var(--track-off);
    border-radius: var(--h);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    inset: 0;
    position: absolute;
    transition: background 0.2s ease;
}

.switch__track::after {
    background: var(--thumb);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    content: "";
    height: calc(var(--h) - var(--pad) * 2);
    left: var(--pad);
    position: absolute;
    top: var(--pad);
    transition: transform 0.2s ease;
    width: calc(var(--h) - var(--pad) * 2);
}

.video_wrap{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video_player{
    width: 100%;
    max-width: 420px;  /* limite la largeur sur mobile, ajuste si besoin */
    height: auto;
    display: block;
}

.btn_row {
    width:98%;
    margin:1%;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.btn_row .button_details_link{
    width:25%;
}

@media (prefers-reduced-motion: reduce) {
    .button_details i,
    .button_submit,
    .carousel_group,
    .footer-social-networks a,
    .news_box,
    .news_box i,
    .radio-card,
    .radio-mark,
    .switch__track,
    .switch__track::after {
        transition: none;
    }
}

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

@media (max-width: 1024px) {
    .quote_section blockquote {
        margin: 10px 0 0 0;
        padding: 0 12px;
        position: static;
        width: auto;
    }

    footer {
        gap: 15px;
        padding: 18px 24px;
    }

    hr {
        display: none;
    }

    .header_logo {
        width: 140px;
    }

    .header_nav {
        gap: 14px;
        width: auto;
    }

    .header_wrapper {
        box-sizing: border-box;
        margin: 0;
        padding: 10px 12px;
        width: 100%;
    }

    .name_wrapper {
        top: 62%;
    }

    .news_box_list {
        width: 100%;
    }

    .program_wrapper {
        width: 30%;
    }

    .quote_section > .image_background {
        height: 460px;
    }

    .quote_section blockquote.quote_text {
        bottom: 10%;
        padding: 0;
        right: 3%;
        width: min(560px, 52%);
    }

    .section_content {
        gap: 20px;
    }

    .contact_wrapper,
    .section_wrapper,
    .stay_informed_wrapper {
        gap: 18px;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    article,
    section {
        padding: 10px 0;
        width: 100%;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px;
    }

    h1 {
        font-size: 13vw;
        letter-spacing: 1px;
    }

    h2 {
        font-size: 1.25rem;
    }

    header .image_background {
        height: 280px;
    }

    .blr_split {
        flex-direction: column;
    }

    .button_details_link {
        width: 100%;
    }

    .button_details,
    .button_submit {
        width: 100%;
    }

    .carousel_card {
        border-radius: 18px;
        height: 170px;
        min-width: 220px;
        width: 220px;
    }

    .contact_form,
    .contact_text,
    .stay_informed_form,
    .stay_informed_text {
        width: 100%;
    }

    .cover {
        height: auto;
        min-height: 160px;
        padding: 10px 0;
    }

    .cover h4 {
        font-size: 1rem;
        margin: 12px;
        padding: 14px 16px;
    }

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

    .flip_back p {
        font-size: 1rem;
    }

    .flip_front h4 {
        font-size: 1rem;
        padding: 10px;
        width: 90%;
    }

    .header_buttons {
        gap: 10px;
    }

    .header_buttons button {
        font-size: 0.82rem;
        padding: 11px 14px;
        white-space: nowrap;
    }

    .header_logo {
        flex: 0 0 auto;
        width: 120px;
    }

    .header_menu {
        background: rgba(0, 0, 0, 0.70);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 14px;
        display: none;
        left: 12px;
        padding: 12px;
        position: absolute;
        right: 12px;
        top: 64px;
        z-index: 10;
    }

    .header_menu nav ul {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 8px;
    }

    .header_menu nav li a {
        font-size: 16px;
    }

    .header_nav {
        align-items: center;
        gap: 10px;
        width: auto;
    }

    .header_wrapper {
        box-sizing: border-box;
        left: 0;
        padding: 10px 12px;
        position: absolute;
        top: 0;
        width: 100%;
    }

    .illustration,
    .blr_description {
        border-radius: 10px;
        width: 100%;
    }

    .image_thumbnail {
        border-radius: 12px;
        height: 180px;
        width: 100%;
    }

    .input_civility {
        max-width: none;
    }

    .input_row {
        flex-direction: column;
        gap: 12px;
    }

    .name_wrapper {
        text-align: center;
        top: 68%;
        width: 100%;
    }

    .nav_burger {
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        box-sizing: border-box;
        cursor: pointer;
        display: inline-flex;
        flex-direction: column;
        gap: 6px;
        height: 44px;
        justify-content: center;
        padding: 10px;
        width: 44px;
    }

    .nav_burger span {
        background: var(--color-white);
        border-radius: 2px;
        display: block;
        height: 2px;
        width: 100%;
    }

    .nav_toggle:checked ~ .header_menu {
        display: block;
    }

    .news_box,
    .news_box:hover {
        transform: none;
    }

    .news_box_home {
        max-width: none;
    }

    .popup {
        max-width: 92%;
        padding: 12px;
        width: 92%;
    }

    .priority_box {
        aspect-ratio: 4 / 3;
    }

    .program_wrapper {
        width: 100%;
    }

    .quote_section > .image_background {
        height: 480px;
        object-position: center 20%;
    }

    .quote_section blockquote.quote_text {
        bottom: 0;
        box-sizing: border-box;
        font-size: 0.98rem;
        left: 0;
        line-height: 1.38;
        padding: 12px 12px 14px 12px;
        position: absolute;
        right: 0;
        width: auto;
        z-index: 3;
    }

    .quote_section blockquote.quote_text {
        isolation: isolate;
    }

    .quote_section blockquote.quote_text::before {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.35) 55%,
            rgba(0, 0, 0, 0.00) 100%
        );
        content: "";
        inset: 0;
        position: absolute;
        z-index: -1;
    }

    .quote_section blockquote.quote_text h2 {
        font-size: 1.20rem;
        margin: 0 0 8px 0;
    }

    .section_content,
    .boxes_row {
        flex-direction: column;
        gap: 16px;
    }

    .section_content_grid {
        gap: 16px;
        grid-template-columns: repeat(2, 1fr);
    }

    .support_inputs {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .support_option {
        align-items: flex-start;
    }

    .support_option .switch {
        margin-top: 2px;
    }

    .title_row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .title_row .button_details {
        width: 100%;
    }

    .title_row .button_details_link {
        margin-top: 0;
        width: 100%;
    }

    .footer-copyright {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    blockquote {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 10px;
    }

    h1 {
        font-size: 14vw;
    }

    header .image_background {
        height: 250px;
    }

    /* Event : garde place pour date/lieu */
    .event_title {
        font-size: 1.55rem;
    }

    .event_date,
    .event_location {
        font-size: 1rem;
    }

    .header_buttons button {
        font-size: 0.78rem;
        padding: 10px 12px;
    }

    .header_logo {
        width: 105px;
    }

    .name_wrapper {
        top: 72%;
    }

    .quote_section > .image_background {
        height: 520px;
        object-position: center 18%;
    }

    .quote_section blockquote.quote_text {
        font-size: 0.90rem;
        line-height: 1.32;
        padding: 10px 10px 12px 10px;
    }

    .quote_section blockquote.quote_text h2 {
        font-size: 1.10rem;
        margin-bottom: 6px;
    }

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