/*=========================================================Osons Vaires – Styles personnalisés Joomla 5.3.0 (Cassiopeia)=========================================================*/
/* Import Carlito (clone libre de Calibri) */
@import url('https://fonts.googleapis.com/css2?family=Carlito:wght@400;700&display=swap');

:root {
    --rouge: #b4002f;
    --marron: #b2691d;
    --bleu: #004080;
    --vert: #1b8f3d;
    --vertosons: #2d7826;
    --orange: #f4a300;
    --gris: #333;
    --blanc: #ffffff;
    --vertaffiche: #9acd68;
}

/* ===== Reset global ===== */
body {
    font-family: 'Carlito', Calibri, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #222;
    line-height: 1.6;
}

/* Neutralise le header Cassiopeia natif */
.header.container-header,
.container-header {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* =============================
HEADER OSONS VAIRES
============================= */
.ov-header {
    position: relative;
}


/* image pleine largeur, centrée */
.ov-bg {
    width: 100% !important;
    height: 40vh !important;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    filter: brightness(1.1);
}

/*-----------------------------------------*/

.ov-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    /*background: rgba(0, 0, 0, 0.3);*/
    /* background: rgba(0, 0, 0, 0.4);*/

    z-index: 2;
    /*pointer-events: none; /* évite d’intercepter les clics */
    /*pointer-events: none; /* évite d’intercepter les clics */

}

.ov-overlay h1 {

    position: absolute;
    top: 7rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0.2em 0 0;
    text-transform: uppercase;
    text-shadow: 1px 0px 1px rgba(0, 0, 0, 1.7);

}

.ov-overlay h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0.1em 0 1em;
    text-transform: uppercase;
}

.ov-date {
    position: absolute;
    top: 0;
    text-align: center;
    margin-top: 3.5rem;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.3em;
    text-shadow: 1px 0px 1px rgba(0, 0, 0, 1.7);

}

/* Slogan */
.ov-slogan {
    position: absolute;
    top: 15rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    /*margin-bottom: 2rem;*/
    color: var(--marron) !important;
    text-shadow: 1px 0px 1px rgba(0, 0, 0, 1.7);

}


/* =====================
Bandeau HERO responsive
===================== */
/* === Bandeau principal (hero) === */
.hero {
    position: relative;
    width: 100%;
    height: 22vh;
    /* Ajuste ici la hauteur */
    /* background-image: url("/images/osons_vaires/image3-1.png"); */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    /* centre horizontalement */
    align-items: center;
    /* centre verticalement */
    text-align: center;
    overflow: hidden;
}

/* Conteneur du texte */
.hero-text {
    position: absolute;
    top: 0;
    text-align: center;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Styles des titres et date */
.hero-text .overlay-date {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0.2em 0 0;
    color: #fff;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0.2em 0 1em;
    text-transform: uppercase;
    color: #fff;
}

/* Optionnel : léger dégradé si le texte manque de contraste */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0,0,0,0.25);*/
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 35vh;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }
}

/* Slogan */
.hero-text .slogan {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--marron) !important;
}

/* Annonce (texte plus grand et marron) */
.hero-text .annonce {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--marron) !important;
    margin-bottom: 1rem;
}

/* Intro */
.hero-text .intro {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0.5rem 0;
    color: var(--marron) !important;
}

/*-----------------------------------------*/
/* Barre réseaux sociaux */
/*-----------------------------------------*/
.ov-social {
    position: absolute;
    /*bottom: 0;*/
    top: 0;
    right: 0;
    width: 100%;
    text-align: right;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.6rem 2rem;
    z-index: 3;
}

.ov-social a {
    color: white;
    margin-left: 1rem;
    font-size: 1.4rem;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.ov-social a:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

    .ov-bg {
        height: 30vh;
    }

    .ov-overlay h1 {
        font-size: 2.5rem;
        top: 5rem;
    }

    .ov-overlay h2 {
        font-size: 1.2rem;
    }

    .ov-date {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .ov-slogan {
        font-size: 1.2rem;
    }

    .ov-social {
        text-align: center;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 480px) {
    .ov-bg {
        height: 25vh;
    }

    .ov-overlay h1 {
        font-size: 2rem;
        top: 4rem;
    }

    .ov-overlay h2 {
        font-size: 1rem;
    }

    .ov-date {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .ov-slogan {
        font-size: 1rem;
    }

    .ov-social {
        padding: 0.3rem 0.5rem;
    }
}

/* =============================
CONTENU PAGE
============================= */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
}

h3 {
    color: var(--vertosons);
    font-size: 1.4rem;
    margin-top: 1.2rem;
}

h4 {
    font-size: 1.5rem;
    color: var(--marron);
    margin-top: 1rem;
}

h5 {
    font-size: 1.2rem;
    color: var(--marron);
}

ul {
    margin-left: 1.2rem;
}

.highlight-block {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 1.2rem 0;
    flex-wrap: wrap;
}

.highlight {
    flex: 1;
    min-width: 220px;
    padding: 0.8rem;
    border-radius: 8px;
    color: white;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.highlight.ameliorer {
    background: var(--vertaffiche);
}

.highlight.proteger {
    background: #0077b6;
}

.highlight.partager {
    background: var(--orange);
}

.cta {
    text-align: center;
    background: var(--vertaffiche);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.15rem;
    margin-top: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.cta a {
    color: white;
    text-decoration: underline;
}

.cta ul {
    list-style: none;
    padding: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery figure {
    margin: 0;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery figcaption {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    color: #555;
    text-align: center;
}

footer {
    margin-top: 3rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    background: #eee;
}

@media screen and (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    .highlight-block {
        flex-direction: column;
    }
}

/* ============================================
Neutralisation du fond Cassiopeia (gris clair)
============================================ */

/* supprime le fond général */
body.site,
.wrapper-static,
.wrapper-fluid,
.site-grid {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* supprime toute marge/ombre parasite autour du header */
.ov-header {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
}

/* facultatif : éviter une bordure basse Cassiopeia */
.container-header::after {
    content: none !important;
}


/* =======================================================
Correction complète du fond gris et centrage du bandeau
======================================================= */

/* supprime le fond gris du corps et des conteneurs */
body.site,
.wrapper-static,
.wrapper-fluid,
.site-grid,
body {
    background: #ffffff !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* supprime toute bordure basse du header cassiopeia */
.container-header::after {
    content: none !important;
    display: none !important;
}

/* =======================================================
Élimination totale du fond gris Cassiopeia
======================================================= */

/* 1️⃣ Force toutes les zones globales en fond blanc */
html,
body,
body.site,
.wrapper-static,
.wrapper-fluid,
.site-grid,
.site {
    background: #ffffff !important;
    background-color: #ffffff !important;
    --template-bg-light: #ffffff !important;
    /* neutralise la variable Cassiopeia */
    --template-bg-dark: #ffffff !important;
    --cassiopeia-color-primary: #ffffff !important;
    --cassiopeia-bg-light: #ffffff !important;
    --cassiopeia-bg: #ffffff !important;
}

/* ============================
Menu principal horizontal
============================ */

/* ============================================================
Réduction et alignement horizontal du menu principal (Home + Accueil)
============================================================ */
/* ============================
Menu principal horizontal Osons Vaires
============================ */

/* Conteneur général du menu */
.container-banner .mod-menu {
    display: flex !important;
    justify-content: center !important;
    /* centre horizontalement le menu */
    align-items: center !important;
    /* aligne verticalement les items */
    gap: 0px;
    /* espace entre Home, logo, Accueil */
    padding: 10px 0 !important;
    margin: 0 auto;
    background: linear-gradient(to right, #cde7c4, #f5fdf2);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
* CSS pour aligner les éléments de navigation sur la même ligne */
 /* Style pour le conteneur principal */
.container-banner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Style pour la liste de navigation */
.mod-menu.mod-list.nav {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Style pour les éléments de la liste */
.mod-menu.mod-list.nav .nav-item {
    display: inline-block !important;
    margin-right: 15px !important;
}

/* Style pour les liens */
.mod-menu.mod-list.nav .nav-item a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

/* Style pour les images dans les liens */
.mod-menu.mod-list.nav .nav-item a img {
/*     max-height: 0px !important;
    width: auto !important;
    margin-right: -12px  !important;*/
  display: none !important;
}

/* Style pour le fil d'Ariane */
.mod-breadcrumbs__wrapper {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important; /* Pousse le fil d'Ariane à droite */
}

.mod-breadcrumbs.breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mod-breadcrumbs__item {
    display: inline-block !important;
    margin-left: 5px !important;
}

/* Ajustement pour le texte "Vous êtes ici" */
.mod-breadcrumbs__here {
    display: inline-block !important;
    margin-right: 5px !important;
}









/* Menu stylé pour Osons Vaires */
.container-banner {
  background: linear-gradient(135deg, #2e7d32, #1565c0)!important;
  border-radius: 8px!important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15)!important;
  padding: 0 !important;
}

.mod-menu.mod-list.nav {
  display: flex !important;
  justify-content: center!important;
  padding: 0 !important;
}

.mod-menu.mod-list.nav .nav-item {
  margin: 0 !important;
}

.mod-menu.mod-list.nav .nav-item a {
  color: #908c8c !important;
  font-size: 17px!important;
/*  font-weight: 500!important;*/
  padding: 20px 15px!important;
  text-transform: uppercase!important;
  transition: all 0.3s!important;
  position: relative!important;
  font-family: 'Montserrat', sans-serif!important;
  /* text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.9)!important;*/

}

.mod-menu.mod-list.nav .nav-item a:before {
  content: ''!important;
  position: absolute!important;
  bottom: 10px!important;
  left: 25px!important;
  width: 0!important;
  height: 2px!important;
  background-color: #b2681e!important;
  transition: width 0.3s!important;
 /*   text-shadow: 4px 6px 3px rgba(0, 0, 0, 0.7)!important;*/

}

.mod-menu.mod-list.nav .nav-item a:hover:before {
  width: calc(100% - 50px)!important;
}

.mod-menu.mod-list.nav .nav-item a:hover {
  color: #b2681e!important;
  background-color: rgba(255, 255, 255, 0.1)!important;
  transform: translateY(-2px)!important;
  /*  text-shadow: 4px 6px 3px rgba(0, 0, 0, 0.7)!important;*/

}

.mod-menu.mod-list.nav .nav-item.active a {
    color: #b2681e!important;
  font-weight: 700!important;
/*  text-shadow: 4px 6px 3px rgba(0, 0, 0, 0.7)!important;*/
}

.mod-menu.mod-list.nav .nav-item a img {
/*  max-height: 30px !important;
  border-radius: 4px!important;
  transition: transform 0.3s!important;*/
  display: none !important;
  
}

.mod-menu.mod-list.nav .nav-item a:hover img {
  transform: scale(1.1)!important;
}

@media screen and (max-width: 768px) {
  .mod-menu.mod-list.nav {
    flex-direction: column !important;
  }
  
  .mod-menu.mod-list.nav .nav-item {
    width: 100% !important;
  }
}
/* ============================
incivilités 
============================ */
/* Header */
/* Pas de header/footer custom: page info sobre */

/* Hero */
#ov-incivilites .hero2 {
  margin: 2rem 0 1.25rem;
}

#ov-incivilites .hero2 h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 2.4vw + 1rem, 2.6rem);
  line-height: 1.2;
    color: var(--marron);
  text-align: center;

}

#ov-incivilites .hero2 .page-title {
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

#ov-incivilites .hero2 p {
  color: var(--text);
}

#ov-incivilites p {
  margin: 0 0 0.75rem;
}

#ov-incivilites .citation {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: #f8fbff;
}

#ov-incivilites .citation h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--accent-dark);
}

#ov-incivilites .citation blockquote {
  margin: 0;
  color: #0b3b5f;
  font-style: italic;
}

/* Cards */
#ov-incivilites .card {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 1.25rem 0;
}

#ov-incivilites .card h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: var(--vertosons);
}

#ov-incivilites .card h3 {
  margin-bottom: 0.25rem;

    color: var(--marron);
    font-size: 1.4rem;
}

#ov-incivilites ul {
  padding-left: 1.25rem;
}

#ov-incivilites li + li {
  margin-top: 0.4rem;
}

/* Liens (Joomla-like) */
#ov-incivilites a {
  color: var(--accent);
  text-decoration: none;
}

#ov-incivilites a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Footer */
/* Pas de footer custom */

/* Accessibility helpers */
#ov-incivilites a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ov-incivilites cta {
    text-align: center;
    background: var(--vertaffiche);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.15rem;
    margin-top: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.ov-incivilites cta a {
    color: white;
    text-decoration: underline;
}

.ov-incivilites cta ul {
    list-style: none;
    padding: 0;
}


/* Print styles */
@media print {
  #ov-incivilites .site-header, #ov-incivilites .site-footer, #ov-incivilites .site-nav { display: none; }
  #ov-incivilites .card { box-shadow: none; border-color: #ddd; }
  #ov-incivilites .citation { background: #fff; }
}

/* =============================
PAGE JEUNESSE (scopée)
============================= */
#ov-jeunesse {
  font-family: 'Carlito', Calibri, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

#ov-jeunesse main.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

#ov-jeunesse .page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  border-bottom: 1px solid #e3e6ea;
  padding-bottom: 0.5rem;
  color: var(--marron);
  text-align: center;
}

#ov-jeunesse .intro p {
  margin: 0 0 0.8rem;
}

#ov-jeunesse .card {
  background: transparent;
  border: 0;
  padding: 0;
}

#ov-jeunesse h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.6rem;
  color: var(--vertosons);
}

#ov-jeunesse h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.25rem;
  color: var(--marron);
}

#ov-jeunesse ul {
  padding-left: 1.25rem;
  margin: 0 0 0.8rem;
}

#ov-jeunesse li + li { margin-top: 0.35rem; }

#ov-jeunesse a {
  color: var(--bleu);
  text-decoration: none;
}

#ov-jeunesse a:hover { text-decoration: underline; }

#ov-jeunesse .citation {
  margin-top: 1.2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--vertosons);
  background: #f8fbff;
}

#ov-jeunesse .citation blockquote {
  margin: 0 0 0.5rem;
  color: #0b3b5f;
  font-style: italic;
}

#ov-jeunesse .citation .source {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
  #ov-jeunesse main.container { padding: 0 1rem; }
}


/* =============================
PAGE JEUNESSE (scopée)
============================= */
#ov-jeunesse {
  font-family: 'Carlito', Calibri, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

#ov-jeunesse main.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

#ov-jeunesse .page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  border-bottom: 1px solid #e3e6ea;
  padding-bottom: 0.5rem;
  color: var(--marron);
  text-align: center;
}

#ov-jeunesse .intro p {
  margin: 0 0 0.8rem;
}

#ov-jeunesse .card {
  background: transparent;
  border: 0;
  padding: 0;
}

#ov-jeunesse h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.6rem;
  color: var(--vertosons);
}

#ov-jeunesse h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.25rem;
  color: var(--marron);
}

#ov-jeunesse ul {
  padding-left: 1.25rem;
  margin: 0 0 0.8rem;
}

#ov-jeunesse li + li { margin-top: 0.35rem; }

#ov-jeunesse a {
  color: var(--bleu);
  text-decoration: none;
}

#ov-jeunesse a:hover { text-decoration: underline; }

#ov-jeunesse .citation {
  margin-top: 1.2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--vertosons);
  background: #f8fbff;
}

#ov-jeunesse .citation blockquote {
  margin: 0 0 0.5rem;
  color: #0b3b5f;
  font-style: italic;
}

#ov-jeunesse .citation .source {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
  #ov-jeunesse main.container { padding: 0 1rem; }
}

/* =============================
PAGE « NOTRE LISTE » (scopée)
============================= */
#ov-liste {
  font-family: 'Carlito', Calibri, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

/* En-tête vert dégradé inspiré du site */
#ov-liste .liste-header {
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(154,205,104,0.95), rgba(255,255,255,0.98));
  padding: 2.6rem 1rem 1.4rem;
  text-align: center;
}

#ov-liste .liste-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 2.8vw + 1rem, 2.6rem);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: #2d2d2d;
  letter-spacing: 0.5px;
}

@supports (text-wrap: balance) {
  #ov-liste .liste-title { text-wrap: balance; }
}

#ov-liste .liste-subtitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #c36800; /* orange/marron du site */
}

/* =============================
Vidéos YouTube (galerie 2 colonnes)
============================= */
#ov-liste .videos-section {
  margin: 1.5rem 0 2rem;
}

#ov-liste .videos-title {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--marron);
}

#ov-liste .video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 800px) {
  #ov-liste .video-grid { grid-template-columns: 1fr 1fr; }
}

#ov-liste .video-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 0.75rem;
}

#ov-liste .video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

#ov-liste .video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

#ov-liste .video-name {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2d2d2d;
}

/* Conteneur principal */
#ov-liste .liste-container {
  max-width: 860px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.25rem;
}

/* Grille de cartes candidats */
#ov-liste .liste-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}

@media (min-width: 900px) {
  #ov-liste .liste-grid { grid-template-columns: 1fr 1fr; }
  /* séparateur vertical entre colonnes (style magazine) */
  #ov-liste .liste-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0;
    border-left: 2px dotted #dcdcdc;
  }
}

/* Carte candidat */
#ov-liste .liste-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

#ov-liste .portrait {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid #e9f4e2; /* rappel feuille/vert clair */
  background: #fafafa;
}

#ov-liste .card-name {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #c36800; /* plus proche du visuel */
}

#ov-liste .card-quote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #333;
}

/* Resserrement et meilleure lisibilité du texte */
#ov-liste .card-content {
  max-width: 58ch; /* limite de longueur de ligne pour éviter un texte trop large */
}
#ov-liste .card-quote {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}
@supports (text-wrap: pretty) {
  #ov-liste .card-quote { text-wrap: pretty; }
}

#ov-liste .card-content p + p {
  margin-top: 0.7rem;
}

/* Encadré contact */
#ov-liste .liste-contact {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: var(--vertaffiche);
  color: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}

#ov-liste .liste-contact p { margin: 0 0 0.4rem; }

#ov-liste .liste-social { margin-top: 0.4rem; }
#ov-liste .liste-social a {
  color: #fff;
  text-decoration: underline;
  margin-right: 0.75rem;
}

/* Bas de page 3 colonnes (contact / QR / logo) */
#ov-liste .liste-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1.25rem;
}

#ov-liste .footer-qr, #ov-liste .footer-logo {
  margin: 0;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

#ov-liste .footer-qr img, #ov-liste .footer-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

#ov-liste .footer-qr figcaption, #ov-liste .footer-logo figcaption {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive affinement */
@media (max-width: 600px) {
  #ov-liste .liste-card { grid-template-columns: 1fr; }
  #ov-liste .portrait { width: 100%; height: 220px; }
  #ov-liste .liste-bottom { grid-template-columns: 1fr; }
}

/* Alignement du texte autour de l'image (desktop) */
@media (min-width: 900px) {
  #ov-liste .liste-card { display: block; }
  #ov-liste .liste-card::after { content: ""; display: block; clear: both; }

  #ov-liste .portrait {
    float: left;
    width: 160px;
    height: 200px;
    margin: 0 1rem 0.6rem 0;
    shape-outside: inset(0 round 16px);
    -webkit-shape-outside: inset(0 round 16px);
  }

  /* le texte s'aligne à droite de l'image, avec largeur de lecture contrôlée */
  /* supprimer le BFC pour permettre l'enroulement correct du texte autour du float */
  #ov-liste .card-content { /* no overflow here */ }
}

/* =============================
PAGE « ÉVÉNEMENTS » (scopée)
============================= */
#ov-evenements {
  font-family: 'Carlito', Calibri, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

#ov-evenements .events-header {
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(154,205,104,0.95), rgba(255,255,255,0.98));
  padding: 2.6rem 1rem 1.4rem;
  text-align: center;
}

#ov-evenements .events-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 2.6vw + 1rem, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: #2d2d2d;
  letter-spacing: 0.5px;
}
@supports (text-wrap: balance) {
  #ov-evenements .events-title { text-wrap: balance; }
}

#ov-evenements .events-subtitle {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #c36800;
}

#ov-evenements .events-container {
  max-width: 900px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.25rem;
}

#ov-evenements .events-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

#ov-evenements .event-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

#ov-evenements .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

#ov-evenements .event-meta time {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eef7e9;
  color: #2d7722;
  font-weight: 700;
  font-size: 0.95rem;
}

#ov-evenements .event-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #fff3e5;
  color: #c36800;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid #ffe0bd;
}

#ov-evenements .event-title {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--marron);
}

#ov-evenements .event-image {
  margin: 0 0 0.75rem;
  text-align: center;
}
#ov-evenements .event-image img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 3px solid #e9f4e2;
}
#ov-evenements .event-image figcaption {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #666;
}

/* Texte autour de l'image sur desktop */
@media (min-width: 900px) {
  #ov-evenements .event-image {
    float: left;
    width: 320px;
    margin: 0 1rem 0.6rem 0;
    shape-outside: inset(0 round 14px);
    -webkit-shape-outside: inset(0 round 14px);
  }
}

#ov-evenements .event-content {
  max-width: 62ch;
}
#ov-evenements .event-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
}
@supports (text-wrap: pretty) {
  #ov-evenements .event-content p { text-wrap: pretty; }
}

/* Responsive */
@media (max-width: 600px) {
  #ov-evenements .events-container { padding: 0 1rem; }
}
/* =============================
PAGE « CHARTE DES VALEURS » (scopée)
============================= */
#ov-charte {
  font-family: 'Carlito', Calibri, "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

#ov-charte .charte-header {
  background:
    radial-gradient(1200px 300px at 10% 0%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(154,205,104,0.95), rgba(255,255,255,0.98));
  padding: 2.6rem 1rem 1.4rem;
  text-align: center;
}

#ov-charte .charte-title {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 2.6vw + 1rem, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  color: #2d2d2d;
  letter-spacing: 0.5px;
}
@supports (text-wrap: balance) {
  #ov-charte .charte-title { text-wrap: balance; }
}

#ov-charte .charte-subtitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #c36800;
}

#ov-charte .charte-container {
  max-width: 900px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.25rem;
}

#ov-charte .charte-intro p {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}
@supports (text-wrap: pretty) {
  #ov-charte .charte-intro p { text-wrap: pretty; }
}

#ov-charte .charte-block {
  margin: 1.4rem 0 1rem;
}

#ov-charte .charte-block h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--marron);
}

#ov-charte .charte-block ul {
  padding-left: 1.25rem;
  margin: 0;
}

#ov-charte .charte-block li {
  margin: 0 0 0.6rem;
  line-height: 1.6;
  text-align: justify;
  hyphens: auto;
}

/* Responsive */
@media (max-width: 600px) {
  #ov-charte .charte-container { padding: 0 1rem; }
}








/* Barre et items */
.container-banner.full-width { position: relative; }
.container-banner .mod-menu {
  display: flex; gap: 1rem; align-items: center; justify-content: center;
  list-style: none; margin: 0; padding: 0.5rem 1rem;
}
.container-banner .mod-menu > .nav-item { position: relative; }
.container-banner .mod-menu > .nav-item > a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  text-decoration: none; color: #0b3b5f; font-weight: 600;
  padding: 0.35rem 0.5rem; border-radius: 6px;
}

/* Caret indicateur sur les parents ("deeper parent") */
.container-banner .mod-menu > .nav-item.parent > a::after {
  content: "▾"; font-size: 0.8rem; margin-left: 0.25rem; transition: transform 0.2s;
}
.container-banner .mod-menu > .nav-item.parent[aria-expanded="true"] > a::after {
  transform: rotate(180deg);
}

 /*Dropdown (desktop) */
.container-banner .mod-menu__sub {
  position: absolute; top: 100%; left: 0;
  min-width: 180px; padding: 0.5rem; margin: 0; list-style: none;
  background: linear-gradient(to right, #cde7c4, #f5fdf2); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: none; z-index: 10;
}
.container-banner .mod-menu__sub li { margin: 0; }
.container-banner .mod-menu__sub a {
  display: block; padding: 0.35rem 0.5rem; border-radius: 6px;
  color: #0b3b5f; text-decoration: none;
}
.container-banner .mod-menu__sub a:hover { background: linear-gradient(to right, #cde7c4, #f5fdf2); }

/* Ouverture au survol / focus en desktop */
.container-banner .mod-menu > .nav-item.parent:hover > .mod-menu__sub,
.container-banner .mod-menu > .nav-item.parent:focus-within > .mod-menu__sub {
  display: block;
}

/* Mobile: structure en colonne et ouverture via aria-expanded */
@media (max-width: 768px) {
  .container-banner .mod-menu { flex-direction: column; align-items: stretch; }
  .container-banner .mod-menu__sub {
    position: static; box-shadow: none; background: transparent;
    padding: 0.25rem 0 0.25rem 0.75rem; display: none;
  }
  .container-banner .nav-item.parent[aria-expanded="true"] > .mod-menu__sub { display: block; }
}

/* Item avec image ("Qui sommes nous") */
.container-banner .nav-item img { height: 28px; width: auto; vertical-align: middle; }
.container-banner .nav-item .image-title { font-weight: 600; }


