/* Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* --- Palette --- */
:root {
  --blue-820: #19486e;
  --blue-800: #1a4d77;
  --ink: #1b1b1b;
  --card-bg: #ffffff;
  --accent-yellow: #ffd24d;
  --accent-red: #ef476f; 
  
  /* --- Catégories --- */
  --cat-resto: #ff9f1c;
  --cat-culture: #9b5de5;
  --cat-sante: #ef476f;
  --cat-transport: #118ab2;
  --cat-tourisme: #06d6a0;

  /* --- Layout --- */
  --shadow: 0 8px 24px rgba(10, 24, 40, .08);
  --radius-std: 16px;
  
  /* --- Typography --- */
  --base-size: 16px; 
  --fz-h2: clamp(1.5rem, 2.5vw + 1rem, 2.2rem);
}

html { font-size: var(--base-size); scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--ink); background: #fafbfc; line-height: 1.6; }

/* FIX WORDPRESS ADMIN BAR */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* --- Utilitaires --- */
.container { width: min(1200px, 92%); margin-inline: auto; }

.cta { background: var(--accent-yellow); color: #121212; padding: 10px 20px; border-radius: 99px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap:6px; border:none; cursor: pointer; transition: transform .1s; white-space: nowrap; }
.cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.cta.signal-btn { background: var(--accent-yellow); color: var(--ink); box-shadow: 0 4px 12px rgba(255, 210, 77, 0.3); }
.cta.signal-btn:hover { background: #ffc107; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--blue-800); color: #fff; box-shadow: var(--shadow); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; flex-wrap: wrap; gap: 15px; }

.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.3rem; margin-right: auto; }
.brand img { height: 55px; width: 40px; border-radius: 8px; background: #fff; }

/* --- GESTION DU HEADER (Hello Elementor) --- */

/* 1. SUR TOUT LE SITE (Sauf l'accueil) : HEADER SOLIDE #2C3E50 */
body:not(.home) .site-header,
body:not(.home) #site-header {
    background-color: #2C3E50 !important; 
    position: relative !important;        
    width: 100% !important;
    z-index: 999;
}

/* 2. UNIQUEMENT SUR L'ACCUEIL : HEADER TRANSPARENT & SUPERPOSÉ */
body.home .site-header,
body.home #site-header {
    background-color: transparent !important; 
    position: absolute !important;            
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: none !important;
}

/* 3. AJUSTEMENT CONTENU (Sauf accueil) */
body:not(.home) .archive-hero,
body:not(.home) .single-hero,
body:not(.home) .contact-hero {
    padding-top: 40px !important; 
}

/* --- HERO --- */
    .hero { position: relative; color: #fff; text-align: left; padding: 0; }
    .hero-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; opacity: 0.4; mix-blend-mode: overlay; }
    .hero-trame { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(26,77,119,0.95) 0%, rgba(26,77,119,0.6) 100%); }
    
    .hero-top {
    padding: 120px 0 100px;
    background-color: var(--handi-blue);
    position: relative;
    width: auto; 
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto; 
    padding: 0 20px;
    width: 100%; 
}
    
    .hero-inner .copy {
        width: 100%;
        max-width: 700px; 
        padding-right: 20px; 
    }

    .hero-logo-deco {
        position: absolute;
        top: 30px;
        right: 5%;
        width: 240px; 
        height: auto;
        z-index: 5;
        display: block;
    }
    
    .single .entry-footer{
        display: none !important;
    }
    .comment-form-email, .comment-form-url, .comment-form-cookies-consent{
        display: none !important;       
    }
    footer {
        background: white !important;   
        color: black !important;    
        padding: 40px;
    }
    .comment-metadata a{
        color: black;
    }
    .hero-btns { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
    
    .cta { display: inline-block; background: var(--handi-gold); color: #000; padding: 12px 24px; border-radius: 50px; font-weight: 800; text-decoration: none; transition: transform 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.2); border: none; cursor: pointer;}
    .cta:hover { transform: translateY(-2px); background: #fff; }
    .cta-big { padding: 18px 40px; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }

    .btn-signal { background-color: var(--handi-gold); color: #000; border: none; font-weight: 800; border-radius: 50px; padding: 12px 24px; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
    .btn-signal:hover { background: #fff; transform: translateY(-2px); }
    .signal-icon { background: #000; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight:bold; }

/* --- MINI CARROUSEL --- */
.hero-mini-slider {
    position: absolute;
    bottom: 40%;
    right: 15%;
    transform: translate(-100px, 0);
    width: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
    padding: 0;
    overflow: hidden;
    color: #333;
}
    
    .mini-slide { display: none; animation: fadeIn 0.5s; position: relative; }
    .mini-slide.active { display: block; }
    .mini-slide-img { height: 160px; background-size: cover; background-position: center; position: relative; }
    .mini-slide-tag { position: absolute; top:12px; left:12px; background:var(--handi-gold); color:#000; font-size:0.8rem; font-weight:800; padding:4px 10px; border-radius:4px; text-transform:uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
    .mini-slide-content { padding: 15px 15px 50px 15px; }
    .mini-slide-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 5px 0; color: var(--handi-blue); line-height: 1.3; }
    .mini-slide-desc { font-size: 0.85rem; color: #666; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .mini-slide-link { font-size: 0.85rem; font-weight: 700; color: var(--handi-blue); text-decoration: none; display:inline-block; margin-top:8px;}
    .mini-nav { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 5px; }
    .mini-nav-btn { background: #f1f5f9; border: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--handi-blue); font-weight: bold; transition: 0.2s; }
    .mini-nav-btn:hover { background: var(--handi-blue); color: #fff; }

    @media (max-width: 1280px) {
        .hero-mini-slider { 
            position: relative; 
            right: auto; bottom: auto; 
            margin-top: 50px; 
            width: 100%; max-width: 400px; 
        }
        .hero-logo-deco { display: none; }
        .hero-inner .copy {
            max-width: 100%; 
            padding-right: 0;
        }
    }


/* --- SECTION DOSSIER DE LA SEMAINE --- */
    .dossier-section { padding: 80px 0; background: #fff; }
    .dossier-card { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 40px; 
        background: var(--handi-light); 
        border-radius: 24px; 
        overflow: hidden; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        align-items: center;
    }
    .dossier-image { height: 100%; min-height: 350px; background-size: cover; background-position: center; }
    .dossier-text { padding: 40px; }
    .dossier-badge { 
        display: inline-block; 
        background: var(--handi-gold); 
        color: #000; 
        padding: 5px 15px; 
        border-radius: 50px; 
        font-weight: 800; 
        font-size: 0.8rem; 
        margin-bottom: 15px; 
        text-transform: uppercase;
    }
    .dossier-text h3 { font-size: 2rem; color: var(--handi-blue); margin-bottom: 20px; line-height: 1.2; }
    .dossier-description { font-size: 1.1rem; color: #444; line-height: 1.6; margin-bottom: 25px; }
    .dossier-footer { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
    .btn-comment { background: var(--handi-blue); color: #fff; padding: 12px 25px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.3s; }
    .btn-comment:hover { background: var(--handi-gold); color: #000; }

    @media (max-width: 768px) {
        .dossier-card { grid-template-columns: 1fr; }
        .dossier-image { height: 250px; }
    }

.header-actions { display: flex; align-items: center; gap: 20px; }

nav ul { list-style: none; display: flex; gap: 22px; padding: 0; margin: 0; flex-wrap: wrap; }
nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.9; font-size: 0.95rem; }
nav a:hover { opacity: 1; text-decoration: underline; }

.font-controls { display: flex; gap: 4px; background: rgba(255,255,255,0.1); padding: 4px; border-radius: 8px; margin-right: 10px; }
.font-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 0.8rem; width: 28px; height: 28px; border-radius: 4px; cursor: pointer; display: grid; place-items: center; font-weight: 700; transition: background 0.2s; }
.font-btn:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 900px) {
  .header-actions { flex-direction: column; align-items: flex-end; gap: 10px; width: 100%; margin-top: 10px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .brand { margin-bottom: 5px; }
}

/* --- FIX GLOBAL FOOTER HANDISCORE --- */
#footer-main {
    background-color: #1a4d77 !important; 
    color: #ffffff !important;
}

#footer-main h3, #footer-main h4, #footer-main p, #footer-main span, #footer-main div {
    color: #ffffff !important;
}

#footer-main a {
    color: #ffffff !important;
    text-decoration: none !important;
}

#footer-main a:hover {
    color: #FDC000 !important; 
}

#footer-main .sub-footer {
    background-color: rgba(0, 0, 0, 0.2) !important; 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer-main .sub-footer span {
    color: #aecfe8 !important; 
}

.page-template-page-explorer #footer-main {
    grid-column: 1 / -1;
    width: 100%;
}

.category-mood-filter {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 30px;
}

.mood-pill.active {
        border-color: var(--handi-gold);
    background: var(--handi-gold);
    color: #000;
}
.category-actualites .category-mood-filter, .category-actualites .envie-score, .single-post .single-meta{
    display: none !important;
}


/* Agrandir le logo */
.site-logo img, .navbar-brand img, .custom-logo {
    max-height: 100px !important; 
    width: auto !important;
    height: auto !important;
}

.site-header .logo {
    max-width: 250px; 
}

@media (max-width: 768px) {
    .site-logo img {
        max-height: 60px !important;
    }
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* --- FIX HEADER : Forcer le fond bleu sur les pages autres que l'accueil --- */
body:not(.home) #site-header, 
body:not(.home) .site-header {
    background-color: var(--handi-blue) !important; 
    position: relative !important; 
}


section.section-infos{
    padding: 75px 0 !important;
}
.highlight-card {
    padding: 20px !important;
    border: none !important;
}
span.brand-name{
    color: white;
}
.hero-logo-deco {
    display: none !important;
}
.hero-mini-slider{
    bottom: 150px !important;
}
.map-section {
    margin-top: 0 !important;
    padding-bottom: 75px !important;
    padding-top: 75px !important;
}
footer{
    margin-top: 0 !important;
}
.site-header .container {
    max-width: 100%;
}


.archive-hero {
    padding-top: 60px; 
}

.font-controls, button#btn-decrease{ 
    display: none !important;
}

/* --- STYLE DU HEADER --- */
.site-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.brand img {
    height: 50px; 
    width: auto;
}
.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a4d77; 
    transition: color 0.3s ease;
}

.brand:hover .brand-name {
    color: #FDC000; 
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}
.header-actions nav ul li a {
    color: #1a4d77;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}
.header-actions nav ul li a:hover {
    color: #FDC000;
}


/* --- HERO --- */
.hero { position: relative; background: var(--blue-820); /*min-height: 72vh;*/ display: flex; flex-direction: column; overflow: hidden; }
.hero-top { position: relative; flex: 1; display: flex; flex-direction: column; }

.hero-bg, .hero-trame { position: absolute; inset: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-bg { background-position: right center; background-size: auto 90%; background-repeat: no-repeat; opacity: 0.9; z-index: 0; mix-blend-mode: multiply; }
.hero-trame { background-size: cover; background-position: center; mix-blend-mode: soft-light; opacity: 0.1; z-index: 0; }

.hero-inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; padding: 120px 0 80px; }
.hero-inner h2 { font-size: var(--fz-h2); line-height: 1.1; margin: 0 0 1rem; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-inner p { max-width: 75ch; font-size: 1.15rem; color: #eaf3ff; margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.hero-arrows { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; z-index: 3; padding: 0 2%; }
.hero-arrow { pointer-events: auto; background: rgba(255, 255, 255, .9); border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); font-size: 1.5rem; color: var(--blue-800); }

/* Pillars */
.pill-deck { position: relative; z-index: 4; margin-top: -60px; margin-bottom: 40px; }
.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pill { background: linear-gradient(180deg, #f5f7fa, #eef3f8); padding: 24px; border-radius: var(--radius-std); display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); border: 2px solid transparent; transition: all .3s; }
.pill.active { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(26, 77, 119, .18); border-color: rgba(255,255,255,0.5); opacity: 1; }
.pill.dim { opacity: 0.6; filter: grayscale(0.3); }
.pill-icon { font-size: 2rem; background: #fff; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex-shrink: 0; }
.taglink { display: inline-block; background: #fff; border: 1px dashed #c7d6e6; border-radius: 999px; padding: 6px 12px; font-size: 0.9rem; color: var(--blue-800); text-decoration: none; font-weight: 700; margin-top: 10px; }

/* --- CARTE & FILTRES --- */
.map-section { padding: 20px 0 40px; background: #fff; position: relative; z-index: 5; }
.map-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } }

.card-std { background: #fff; border-radius: var(--radius-std); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #f1f4f8; display: flex; flex-direction: column; height: 100%;}
.map-filters { padding: 16px; border-bottom: 1px solid #eef2f6; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content: space-between; }
.filters-group { display:flex; gap:8px; flex-wrap:wrap; }

.filter-btn { background: #f0f4f8; color: var(--blue-800); border: 1px solid #dce5ed; padding: 6px 14px; border-radius: 99px; font-weight: 700; cursor: pointer; transition: all .2s; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.filter-btn:hover { background: #e2e8f0; }
.filter-btn.active { background: var(--blue-800); color: #FFF2AC; border-color: var(--blue-800); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.map-embed { 
    width: 100%; 
    height: 500px; 
    position: relative; 
    z-index: 1; 
    /* On garde le flex-grow si vous en avez besoin pour le design, mais on sécurise l'intérieur */
    flex-grow: 1; 
}

#map { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
}

.custom-pin { background-color: #fff; border-radius: 50%; border: 3px solid #fff; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.2s; }
.custom-pin:hover { transform: scale(1.2); z-index: 999 !important; }

.highlight-card { padding: 0; }
.highlight-head { padding: 16px; border-bottom: 1px solid #f0e9ff; display: flex; align-items: center; gap: 10px; }
.highlight-body { padding: 16px; }

/* --- GRILLES & CARTES --- */
.section-title { color: #0b2c4a; font-size: var(--fz-h2); margin: 0 0 32px 0; }
.blocks { padding: 60px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card { background:#fff; border-radius:16px; box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; border: 1px solid rgba(0,0,0,0.03); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }

.card-img { height:200px; background-size:cover; background-position:center; background-color: #eee; position: relative; }
.cat-pill { position: absolute; top: 12px; right: 12px; background: var(--blue-800); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 2px 8px rgba(0,0,0,0.2); z-index: 2; }

.bg-culture { background: var(--cat-culture); }
.bg-resto { background: var(--cat-resto); }
.bg-sante { background: var(--cat-sante); }
.bg-tourisme { background: var(--cat-tourisme); }
.bg-transport { background: var(--cat-transport); }

.card-body { padding:20px; flex:1; display:flex; flex-direction:column; }
.card h3 { margin: 0 0 8px; color: var(--blue-800); font-size: 1.2rem; }
.card-meta { font-size: 0.95rem; color: #4a5568; margin-bottom: 16px; flex: 1; }
.card-link { font-weight: 700; color: #2c6ea3; text-decoration: none; margin-top: auto; }

/* --- MISSIONS --- */
.missions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
@media (min-width: 1024px) { .missions-grid { grid-template-columns: repeat(4, 1fr); } }

.mission-item { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mission-icon-box { width: 64px; height: 64px; background: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: var(--blue-800); box-shadow: 0 4px 12px rgba(0,0,0,0.05); border: 1px solid #eef2f6; }
.mission-content h3 { margin: 0 0 10px 0; color: var(--blue-800); font-size: 1.4rem; }
.mission-content p { margin: 0 0 16px 0; color: #555; font-size: 1rem; line-height: 1.6; }
.mission-link { color: var(--blue-800); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent-yellow); padding-bottom: 2px; transition: all .2s; }
.mission-link:hover { background: var(--accent-yellow); border-color: transparent; color: #000; }

/* --- ÉTUDES --- */
.etudes-list { display: flex; flex-direction: column; gap: 16px; }
.etude-row { background: #fff; padding: 24px; border-radius: 12px; display: flex; align-items: center; gap: 24px; border: 1px solid #eef2f6; transition: box-shadow .2s, transform .2s; }
.etude-row:hover { box-shadow: 0 6px 20px rgba(26, 77, 119, 0.08); transform: translateX(4px); }
.etude-icon { flex-shrink: 0; width: 48px; height: 48px; background: #f0f7ff; color: var(--blue-800); border-radius: 8px; display: grid; place-items: center; font-size: 1.5rem; }
.etude-info { flex: 1; }
.etude-info h3 { margin: 0 0 4px 0; font-size: 1.1rem; color: var(--blue-800); }
.etude-info p { margin: 0; font-size: 0.9rem; color: #666; }
.etude-action { flex-shrink: 0; }
@media (max-width: 600px) { .etude-row { flex-direction: column; align-items: flex-start; gap: 16px; } .etude-action { align-self: flex-start; } }

#envies { background: linear-gradient(to bottom, #fffcf5, #ffffff); }
#envies .card { border: 2px solid #f0e2ff; }
#missions { background: #f7fbff; } 
#etudes { background: #fff; border-top: 1px solid #f0f0f0; }

/* --- FOOTER --- */
footer { background: #0f253e; color: #d6e2ef; margin-top: 60px; padding-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: 30px; } }
footer h3, footer h4 { color: #fff; margin-top: 0; margin-bottom: 1rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: #d6e2ef; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.sub-footer { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 0.9rem; color: #8baecf; }


/* Cible les tuiles d'arrière-plan de la carte Leaflet 
#map .leaflet-tile-pane {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}*/

/* ========================================================== */
/* A. AMÉLIORATIONS MENU HAUT (Roll Hover Lisible)             */
/* ========================================================== */
.header-actions nav ul li a {
    position: relative;
    text-decoration: none !important;
    padding-bottom: 5px; 
    transition: color 0.3s ease;
    color: #ffffff; 
}
.header-actions nav ul li a:hover {
    color: #FFDC51; 
}
.header-actions nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0); 
    height: 3px; 
    bottom: 0;
    left: 0;
    background-color: #FFDC51; 
    transform-origin: bottom right; 
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.header-actions nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left; 
}
.header-actions nav ul li.current-menu-item a {
    color: #F2A035; 
}
.header-actions nav ul li.current-menu-item a::after {
    transform: scaleX(1); 
    background-color: #F2A035; 
}

#envies .grid-3 {
    margin-top: 30px;
}

/* ========================================================== */
/* B. AMÉLIORATIONS BOUTONS & CARTES (Sans Mouvement)         */
/* ========================================================== */
.hero-inner .cta {
    position: relative;
    z-index: 1; 
    transition: all 0.3s ease-out;
    border: 2px solid transparent; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.hero-inner .cta:hover {
    box-shadow: 0 0 15px rgba(255, 220, 81, 0.8), 0 4px 10px rgba(0,0,0,0.1); 
    border: 2px solid #0F253E;
}
.hero-inner a[href="#envies"].cta {
    border-color: #0F253E; 
    color: #0F253E !important; 
}
.hero-inner a[href="#envies"].cta:hover {
    border-color: #FFDC51; 
    color: #0F253E !important;
}

.blocks .card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease; 
    border: 1px solid #f0f0f0; 
}
.blocks .card:hover {
    box-shadow: 0 5px 15px rgba(255, 220, 81, 0.5); 
    border-color: #FFDC51; 
}
.blocks .card-img {
    transition: none; 
}
.blocks .card-link {
    color: #0F253E; 
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blocks .card-link:hover {
    color: #FFDC51; 
}

.map-filters .filter-btn {
    position: relative;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8f8f8;
    color: #444;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #ddd;
}
.map-filters .filter-btn:hover {
    color: #0F253E; 
    background: #fff;
    border-color: #FFDC51; 
    box-shadow: 0 0 8px rgba(255, 220, 81, 0.5);
}
.map-filters .filter-btn.active {
    background: #0F253E; 
    color: white;
    border-color: #0F253E;
}

/* ========================================================== */
/* C. NOUVEAU PIED DE PAGE (Footer)                           */
/* ========================================================== */
.new-handiscore-footer {
    background: #0F253E; 
    color: #eaf3ff; 
    padding: 60px 0 0;
    font-family: 'Inter', sans-serif;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr; 
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; 
    }
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFDC51; 
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 20px;
}
.footer-brand img {
    height: 40px;
    width: auto;
}
.new-handiscore-footer h4 {
    color: #FFDC51; 
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}
.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
.footer-col a {
    color: #eaf3ff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col a:hover {
    color: #FFDC51; 
    text-decoration: underline;
}
.footer-col i.fas {
    color: #FFDC51;
    margin-right: 8px;
    width: 18px; 
    text-align: center;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.footer-links-list li {
    margin-bottom: 8px;
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    color: #FFDC51; 
    font-size: 1.5rem;
    opacity: 0.8;
}
.social-icons a:hover {
    color: #ffffff; 
    opacity: 1;
    text-decoration: none;
}
.sub-footer {
    padding: 15px 0;
}
.sub-footer .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
    .sub-footer .container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/**********blog********/
:root {
    --handi-blue: #1a4d77;
    --handi-gold: #FDC000;
    --handi-light: #f4f8fb;
    --text-dark: #2c3e50;
    --text-grey: #666;
}

.cta {
    display: inline-block;
    background-color: var(--handi-gold) !important;
    color: #000 !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cta:hover {
    transform: translateY(-3px) !important;
    background-color: #fff !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    color: #000 !important;
}

.archive-hero {
    position: relative;
    background-color: var(--handi-blue);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0 80px;
    margin-bottom: 0;
}
.archive-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,77,119,0.9) 0%, rgba(20,59,92,0.7) 100%);
    z-index: 1;
}
.archive-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb span { color: var(--handi-gold); }

.archive-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.1;
}
.archive-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

.archive-posts-section {
    padding: 60px 0;
    background-color: var(--handi-light);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: var(--handi-blue);
}
.post-card-img-link {
    display: block;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-card-img {
    transform: scale(1.05);
}
.post-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    font-weight: 600;
    justify-content: center;
}
.post-tag { color: var(--handi-gold); }
.post-card-title {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: 700;
}
.post-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.post-card:hover .post-card-title a {
    color: var(--handi-blue);
}
.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.post-card-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background-color: transparent !important;
    padding-bottom: 20px;
    color: var(--text-dark);
}
.cta-card {
    padding: 10px 30px;
    font-size: 0.9rem;
}

.archive-pagination {
    margin-top: 60px;
    text-align: center;
}
.nav-links {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a, .nav-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 50px;
    background: #fff;
    color: var(--handi-blue);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #e1e4e8;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links span.current {
    background: var(--handi-blue);
    color: #fff;
    border-color: var(--handi-blue);
}
@media (max-width: 768px) {
    .archive-hero { padding: 80px 0 60px; }
    .posts-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .post-card-img-link { height: 200px; }
}

/**********************************carte v2*********************/
:root {
    --blue-800: #1a4d77;
    --accent-yellow: #f1c40f;
    --grey-light: #f1f5f9;
}
.app-container {
    display: flex;
    height: calc(100vh - 80px); 
    width: 100%;
    position: relative;
    background: #fafbfc;
}
.sidebar {
    width: 400px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 12px rgba(0,0,0,0.05);
    overflow-y: auto;
    flex-shrink: 0;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid #f1f4f8; }
.sidebar h1 { font-size: 1.5rem; color: var(--blue-800); margin: 0; font-weight: 800; }
.sidebar-block { padding: 20px; border-bottom: 1px solid #f1f4f8; }
.block-title { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }

.filters-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    background: #fff; color: var(--blue-800); border: 1px solid #cbd5e1;
    padding: 6px 14px; border-radius: 99px; font-weight: 600; cursor: pointer;
    font-size: 0.8rem; display: flex; align-items: center; gap: 6px; transition: 0.2s;
}
.filter-btn:hover { background: #f1f5f9; }
.filter-btn.active { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border:1px solid rgba(0,0,0,0.1); }

.transport-modes { display: flex; gap: 10px; margin-bottom: 15px; }
.mode-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px;
    cursor: pointer; transition: all 0.2s; color: #64748b; font-size: 0.8rem; font-weight: 600;
}
.mode-btn span { font-size: 1.4rem; margin-bottom: 4px; display: block; }
.mode-btn:hover { background: #f1f5f9; }
.mode-btn.active {
    background: #ebf8ff; border-color: var(--blue-800); color: var(--blue-800);
    box-shadow: 0 4px 6px rgba(26, 77, 119, 0.1);
}

.mode-notification {
    padding: 10px; border-radius: 8px; font-size: 0.85rem; margin-bottom: 15px;
    border: 1px solid transparent; transition: 0.3s;
}
.info-wheelchair { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.info-foot { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }
.info-car { background: #fff7ed; border-color: #fdba74; color: #c2410c; }

.input-stack { display: flex; flex-direction: column; gap: 10px; }
.input-row { display: flex; gap: 8px; position: relative; align-items: center; }
.input-wrapper { position: relative; flex: 1; display: flex; align-items: center; }
.input-icon { position: absolute; left: 10px; z-index: 10; font-size: 1.1rem; }
.route-input {
    width: 100%; padding: 12px 12px 12px 35px; border: 1px solid #cbd5e1; border-radius: 8px;
    font-size: 0.9rem; background: #fff;
}
.route-input:focus { border-color: var(--blue-800); outline: none; }
.btn-geo {
    background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px;
    width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; font-size: 1.2rem;
}
.btn-geo:hover { background: #e2e8f0; color: var(--blue-800); }

.autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border: 1px solid #cbd5e1; border-radius: 0 0 8px 8px; z-index: 2000;
    max-height: 200px; overflow-y: auto; display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.autocomplete-item { padding: 10px; font-size: 0.85rem; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.autocomplete-item:hover { background: #f0f9ff; color: var(--blue-800); }

.btn-calc-route {
    width: 100%; background: var(--blue-800); color: #fff; border: none;
    padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer;
    margin-top: 15px; font-size: 1rem; transition: 0.2s;
}
.btn-calc-route:hover { background: #154369; }
.btn-reset {
    width: 100%; background: none; border: none; color: #64748b;
    font-size: 0.85rem; text-decoration: underline; cursor: pointer; margin-top: 10px;
}

.route-result {
    margin-top: 20px; padding: 15px; background: #fff;
    border-radius: 10px; border: 1px solid #e2e8f0; border-left: 5px solid var(--accent-yellow);
    display: none; animation: fadeIn 0.3s;
}
.result-line { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.95rem; }
.result-val { font-weight: 800; color: var(--blue-800); }
.result-note { margin-top: 8px; font-size: 0.8rem; color: #666; font-style: italic; border-top: 1px solid #eee; padding-top: 8px; }

.map-wrapper { flex: 1; position: relative; height: 100%; }
#map { width: 100%; height: 100%; z-index: 1; }
.leaflet-routing-container { display: none !important; }

.leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 280px !important; }
.popup-hero { height: 130px; background-size: cover; background-position: center; position: relative; }
.popup-cat-pill {
    position: absolute; bottom: 10px; left: 10px; padding: 4px 10px; border-radius: 50px;
    border: 2px solid #fff; font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.popup-body { padding: 15px; }
.popup-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 5px 0; color: var(--blue-800); }
.stars-popup { color: #f1c40f; display: block; margin-bottom: 8px; font-size: 0.9rem; }
.popup-desc { font-size: 0.85rem; color: #555; margin-bottom: 12px; line-height: 1.4; }
.popup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-action { text-align: center; padding: 8px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.8rem; border: none; cursor: pointer; display: block; }
.btn-go { background: var(--blue-800); color: #fff; }
.btn-fiche { background: #f1f5f9; color: var(--blue-800); }

@media (max-width: 800px) {
    .app-container { flex-direction: column-reverse; height: auto; min-height: 100vh; }
    .sidebar { width: 100%; height: auto; max-height: 50vh; order: 2; border-right: none; border-top: 1px solid #ddd; }
    .map-wrapper { height: 50vh; width: 100%; order: 1; }
}

/******************** page nos missions**************************/
:root {
            --primary: #0056b3;
            --secondary: #00a8e8;
            --dark: #2c3e50;
            --light: #f8f9fa;
            --accent: #27ae60;
        }

        .hero-missions {
            background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)), 
                        url('https://images.unsplash.com/photo-1534533983088-61273cf8eb0d?auto=format&fit=crop&q=80') center/cover;
            height: 60vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding: 0 20px;
        }

        .hero-missions h1 {
            font-size: 3rem;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .hero-missions p {
            font-size: 1.2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .intro {
            padding: 80px 20px;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }
        .intro h2 {
            color: var(--primary);
            font-size: 2.2rem;
            margin-bottom: 20px;
        }

        .missions-grid-page {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 40px 20px;
            background-color: var(--light);
        }

        .mission-card {
            background: white;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            text-align: center;
            transition: transform 0.3s ease;
        }
        .mission-card:hover { transform: translateY(-10px); }
        .mission-card i { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }
        .mission-card h3 { color: var(--primary); margin-bottom: 15px; }

        .values {
            padding: 80px 20px;
            max-width: 1280px;
            margin: 0 auto;
        }
        .value-item {
            display: flex;
            align-items: center;
            margin-bottom: 40px;
            gap: 40px;
        }
        .value-item:nth-child(even) { flex-direction: row-reverse; }
        .value-text { flex: 1; }
        .value-image {
            flex: 1;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .value-image img { width: 100%; display: block; }

        .cta-missions {
            background: var(--primary);
            color: white;
            text-align: center;
            padding: 60px 20px;
        }

        @media (max-width: 768px) {
            .value-item, .value-item:nth-child(even) { flex-direction: column; }
            .hero-missions h1 { font-size: 2rem; }
        }

/******************************page contact***********************************************/
.contact-hero {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=1600'); 
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 140px 0 100px; 
    text-align: center;
}
.contact-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,77,119,0.95) 0%, rgba(20,59,92,0.8) 100%);
    z-index: 1;
}
.contact-hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.contact-title { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.contact-subtitle { font-size: 1.2rem; opacity: 0.9; line-height: 1.6; }

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; 
    gap: 40px;
    margin-top: -50px; 
    position: relative;
    z-index: 10;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

.handi-form label {
    display: block;
    font-weight: 700;
    color: var(--handi-blue);
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.handi-form input,
.handi-form select,
.handi-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e4e8;
    border-radius: 12px; 
    background: #f8fafc;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
}
.handi-form input:focus,
.handi-form select:focus,
.handi-form textarea:focus {
    outline: none;
    border-color: var(--handi-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26, 77, 119, 0.1);
}
.handi-form textarea { resize: vertical; }

.contact-infos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.info-card h3 {
    margin-top: 0;
    color: var(--handi-blue);
    font-size: 1.3rem;
    border-bottom: 2px solid var(--handi-gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
    align-items: flex-start;
}
.info-list li:last-child { margin-bottom: 0; }
.info-list .icon {
    background: var(--handi-light);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.info-list a { color: var(--handi-blue); text-decoration: none; font-weight: 600; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; margin-top: 0; }
    .form-row { grid-template-columns: 1fr; }
    .contact-hero { padding: 100px 0 60px; }
}


/* ==========================================================================
   MENU HAUT & RESPONSIVE UNIFIÉ (STABLE ET NETTOYÉ)
   ========================================================================== */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px; 
}
.main-navigation ul li a {
    position: relative;
    text-decoration: none;
    color: #ffffff !important; 
    font-size: 17px; 
    font-weight: 600; 
    padding: 8px 12px;
    display: inline-block;
    transition: 0.3s;
}
.main-navigation ul li a:hover { color: #ffde59 !important; }
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
    color: #ffde59 !important;
    background: rgba(255, 222, 89, 0.1) !important; 
    border-radius: 4px;
}

.menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;      
    height: 21px;     
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.menu-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;      
    background-color: #ffde59 !important; 
    border-radius: 3px;
    transition: 0.3s ease-in-out;
}

@media (max-width: 1250px) {
    .menu-toggle-btn { display: flex !important; }
    .main-navigation {
        display: none; 
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        background: #1a1a1a; 
        padding: 20px 0;
        z-index: 999;
    }
    .main-navigation.active { display: block !important; }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .main-navigation ul li a {
        font-size: 20px;
        padding: 15px;
        display: block;
        color: #fff !important;
    }
}


/* ==========================================================================
   PROTECTION DE LA CARTE (FIX DES CARRÉS BLANCS & FLUX)
   ========================================================================== */

/* Annule tout blocage de taille sur le document global */
html, body {
    height: auto !important; 
}

#content.site-content {
    width: 100%; position: relative; display: block;
}

/* On s'assure que Elementor laisse la place au header mais SANS bloquer la carte */
body.home .elementor-section-full_height {
    padding-top: 80px !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* C'est la ligne magique qui empêche le thème de déformer vos carrés de carte */
#map .leaflet-container img.leaflet-tile, #map img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: 256px !important;
    height: 256px !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: inherit !important;
    opacity: 1 !important;
    transform: translate3d(0,0,0); /* Active l'accélération matérielle */
}

/* Sécurise le fond et empêche le débordement invisible */
#map, #map .leaflet-container {
    width: 100% !important;
    background-color: #f8f9fa !important;
    overflow: visible !important;
    z-index: 1 !important;
}

/* ==========================================================================
   FIX ALIGNEMENT HEADER : [ LOGO ] ----- [ MENU ] [ BOUTON SOS ]
   ========================================================================== */

/* 1. Le conteneur principal écarte le logo (à gauche) et le reste (à droite) */
.site-header .topbar, 
.site-header .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* 2. Le logo reste bien à gauche */
.site-branding, 
.brand {
    display: flex !important;
    align-items: center;
    margin-right: auto !important; /* Pousse tout le reste vers la droite */
}

/* 3. Le conteneur droit aligne le Menu ET le Bouton SOS côte à côte */
.header-right-side, 
.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important; /* Espace entre le menu et le bouton SOS */
}

/* 4. Le menu lui-même s'aligne horizontalement sur PC */
.main-navigation, 
.header-actions nav {
    display: block; /* S'assure que le bloc est visible sur PC */
}

.main-navigation ul, 
.header-actions nav ul {
    display: flex !important;
    flex-direction: row !important; /* Force l'affichage en ligne */
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px !important; /* Espace entre les onglets du menu */
}

/* 5. GESTION DU MOBILE (En dessous de 1250px) */
@media (max-width: 1250px) {
    /* Cache le menu normal sur mobile */
    .main-navigation, 
    .header-actions nav {
        display: none !important;
    }
    
    /* Affiche le menu quand on clique sur le hamburger */
    .main-navigation.active, 
    .header-actions nav.active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    /* Le menu passe en colonne (vertical) sur mobile */
    .main-navigation ul, 
    .header-actions nav ul {
        flex-direction: column !important;
    }
}
/* ==========================================================================
   HERO — TEXTE PLUS PETIT + "HANDISCORE" EN VALEUR
   ========================================================================== */
.hero-inner h2 + *,
.hero-inner .breadcrumb,
.archive-hero .breadcrumb { font-size: 0.8rem !important; }

.hero-inner h2 {
    font-size: clamp(1.2rem, 1.4vw + 0.6rem, 1.8rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.6rem !important;
}
.hero-inner p { font-size: 0.9rem !important; line-height: 1.5 !important; }
.hero-inner p strong {
    color: var(--handi-gold) !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    display: inline-block;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-inner .cta { font-size: 0.9rem !important; padding: 10px 20px !important; }


/* ==========================================================================
   STICKY : neutralise le overflow-x:hidden du body qui casse le sticky
   ========================================================================== */
html, body { overflow-x: clip !important; }
#content.site-content { overflow: visible !important; margin-top: 0 !important; padding-top: 0 !important; }


/* ==========================================================================
   HEADER — sticky pleine largeur, bord à bord, partout (y compris accueil)
   ========================================================================== */
body #site-header.site-header,
body.home #site-header.site-header,
body:not(.home) #site-header.site-header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
    border-bottom: none !important;
}

@media (max-width: 782px) { body.admin-bar #site-header.site-header { top: 46px !important; } }


/* ==========================================================================
   TOPBAR FINE
   ========================================================================== */
.handi-topbar {
    background: #14304c;
    color: #cfe0f0;
    font-size: 0.85rem;
    width: 100%;
    border-bottom: none !important;
}
.handi-topbar .topbar-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 20px !important;
    box-sizing: border-box;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 10px;
}
.topbar-left { display: flex !important; align-items: center !important; margin: 0 !important; }
.topbar-baseline { display: inline-flex; align-items: center; line-height: 1.2; letter-spacing: 0.3px; }
.topbar-baseline strong {
    color: var(--handi-gold);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-right: 4px;
}
.topbar-right { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; }
.topbar-contact {
    color: #cfe0f0 !important; text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s;
}
.topbar-contact i { color: var(--handi-gold); }
.topbar-contact:hover { color: #fff !important; }
.topbar-btn {
    display: inline-flex !important; align-items: center; gap: 8px;
    padding: 6px 16px !important; border-radius: 50px;
    font-weight: 700; font-size: 0.85rem; text-decoration: none;
    white-space: nowrap; transition: all 0.25s ease;
}
.topbar-adherer { color: var(--handi-gold) !important; border: 1.5px solid var(--handi-gold); background: transparent; }
.topbar-adherer:hover { background: var(--handi-gold); color: #14304c !important; }
.topbar-sos { background: var(--handi-gold); color: #000 !important; box-shadow: 0 2px 8px rgba(253,192,0,0.3); }
.topbar-sos:hover { background: #fff; transform: translateY(-1px); }
.topbar-sos .signal-icon {
    background: #000; color: var(--handi-gold);
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: bold;
}


/* ==========================================================================
   HEADER PRINCIPAL — logo + menu, fond bleu, hauteur compacte
   ========================================================================== */
.header-main {
    background: #21659E !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;        /* << hauteur : règle ici (ex: 4px 20px) */
    box-sizing: border-box;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Logo — règle UNIQUE de taille (modifie le 100px) */
.site-branding {
    flex-shrink: 0;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.site-branding a,
.site-branding .custom-logo-link {
    margin: 0 !important; padding: 0 !important;
    line-height: 0 !important; display: flex !important; align-items: center !important;
}
.site-branding .custom-logo,
.site-branding img,
.site-branding a img {
    height: 100px !important;          /* << TAILLE DU LOGO ici */
    max-height: 100px !important;
    width: auto !important;
    margin: 0 !important; padding: 0 !important;
    display: block !important; vertical-align: middle !important;
}

/* Menu */
.header-right-side {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    gap: 20px !important;
    margin-right: 40px !important;     /* << décale le menu du bord droit */
}
.header-right-side .main-navigation { flex: 0 1 auto !important; }
.header-right-side .main-navigation ul {
    display: flex !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    gap: 10px !important;
}
.header-right-side .main-navigation ul li a {
    font-size: 15px !important;        /* << TAILLE DU MENU ici */
    padding: 8px 10px !important;
    white-space: nowrap !important;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .map-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .map-embed { height: 350px !important; }
    .grid-3 { grid-template-columns: 1fr !important; padding: 0 10px; }
    .grid-edito-missions { grid-template-columns: 1fr !important; gap: 40px !important; }
    .edito-box > div { flex-direction: column !important; align-items: center !important; text-align: center; }
    .edito-box img { margin-bottom: 15px; width: 120px !important; height: 120px !important; }
    .edito-box div[style*="display:flex"] { flex-direction: column !important; gap: 15px !important; align-items: center; }
    .edito-box div[style*="border-left"] { border-left: none !important; border-top: 1px solid #eee; padding-left: 0 !important; padding-top: 15px; width: 100%; }
    .dossier-card { flex-direction: column !important; }
    .dossier-image { width: 100% !important; height: 200px !important; }
    .section-title { font-size: 1.6rem !important; }
    h1 { font-size: 2rem !important; }
}

@media (max-width: 1300px) {
    .hero-mini-slider { display: none !important; }
    .hero-inner { text-align: center; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .topbar-left { display: none !important; }
    .handi-topbar .topbar-inner { justify-content: center !important; padding: 8px 0 !important; }
    .topbar-right { flex-wrap: wrap; justify-content: center; }
    .topbar-btn { font-size: 0.78rem; padding: 5px 12px !important; }
    .site-branding .custom-logo,
    .site-branding img,
    .site-branding a img { height: 60px !important; max-height: 60px !important; }
    .hero-inner h2 { font-size: 1.2rem !important; }
    .hero-inner p { font-size: 0.85rem !important; }
    .hero-inner p strong { font-size: 1.05rem !important; }
}

/* Leaflet — pas de filtre grayscale */
.leaflet-tile-pane,
.leaflet-tile-pane img,
.leaflet-container .leaflet-tile-pane { -webkit-filter: none !important; filter: none !important; }




body #site-header.site-header,
body.home #site-header.site-header,
body:not(.home) #site-header.site-header {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1000 !important;
    border-bottom: none !important;
}



.handi-topbar {
    background: #14304c;
    color: #cfe0f0;
    font-size: 0.85rem;
    width: 100%;
    border-bottom: none !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
}
body.admin-bar .handi-topbar { top: 32px !important; }
@media (max-width: 782px) { body.admin-bar .handi-topbar { top: 46px !important; } }



/* Supprime la marge blanche entre topbar et header */
.handi-topbar { margin: 0 !important; }
#site-header.site-header { margin-top: 0 !important; }
#content.site-content { margin-top: 0 !important; padding-top: 0 !important; }


/* Header bas sticky, juste sous la topbar */
#site-header.site-header {
    position: sticky !important;
    top: 44px !important;   /* = hauteur de ta topbar ; ajuste si besoin */
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}
body.admin-bar #site-header.site-header { top: 76px !important; } /* 44 + 32 */

/* État réduit : logo et paddings divisés par ~2 */
#site-header.shrink .header-main { padding: 0 20px !important; }
#site-header.shrink .site-branding .custom-logo,
#site-header.shrink .site-branding img,
#site-header.shrink .site-branding a img {
    height: 50px !important;       /* 100px → 50px */
    max-height: 50px !important;
    transition: height 0.3s ease !important;
}
#site-header.shrink .header-right-side .main-navigation ul li a {
    padding: 4px 10px !important;
}



/* ==========================================================================
   FIX MARGE BLANCHE ENTRE TOPBAR ET HEADER
   ========================================================================== */

/* 1. Aucune marge sur topbar et header */
.handi-topbar { margin: 0 0 0 0 !important; }
#site-header.site-header { margin: 0 !important; }

/* 2. Le thème Hello Elementor ajoute souvent un wrapper avec padding/min-height */
.site-header-inner,
.elementor-location-header,
header.site-header > .header-container:empty { 
    margin: 0 !important; 
    padding: 0 !important; 
    min-height: 0 !important; 
    display: none; /* si c'est un conteneur vide résiduel */
}

/* 3. Marge éventuelle entre body > wp_body_open et le 1er élément */
body > .handi-topbar + #site-header { margin-top: 0 !important; }




/* FIX : annule le décalage admin-bar sur le header relatif (cause de la marge blanche) */
body.admin-bar #site-header.site-header,
#site-header.site-header {
    top: auto !important;
}


/* ==========================================================================
   STICKY PROPRE : topbar en haut + header bas juste en dessous
   ========================================================================== */

/* Topbar collée tout en haut */
.handi-topbar {
    position: sticky !important;
    top: 0 !important;
    margin: 0 !important;
    z-index: 1001 !important;
}

/* Header bas sticky, accroché juste sous la topbar (44px = hauteur topbar) */
#site-header.site-header {
    position: sticky !important;
    top: 44px !important;       /* hauteur réelle de ta topbar */
    margin: 0 !important;
    z-index: 1000 !important;
    transition: top 0.3s ease !important;
}

/* Quand tu es connecté en admin : on décale des 2 barres (topbar + admin-bar WP) */
body.admin-bar .handi-topbar { top: 32px !important; }
body.admin-bar #site-header.site-header { top: 76px !important; }  /* 32 + 44 */
@media (max-width: 782px) {
    body.admin-bar .handi-topbar { top: 46px !important; }
    body.admin-bar #site-header.site-header { top: 90px !important; }
}

/* ==========================================================================
   FIX FINAL STICKY — DERNIER bloc du fichier
   ========================================================================== */
html, body { overflow-x: visible !important; }

/* VISITEURS (pas d'admin-bar) */
html body .handi-topbar {
    position: sticky !important; top: 0 !important;
    margin: 0 !important; z-index: 1001 !important;
}
html body #site-header.site-header {
    position: sticky !important; top: 44px !important;
    margin: 0 !important; z-index: 1000 !important;
}

/* TOI connecté (admin-bar 32px en plus) */
html body.admin-bar .handi-topbar { top: 32px !important; }
html body.admin-bar #site-header.site-header { top: 76px !important; }
@media (max-width: 782px) {
    html body.admin-bar .handi-topbar { top: 46px !important; }
    html body.admin-bar #site-header.site-header { top: 90px !important; }
}

css/* BULLDOZER STICKY - tout en bas */
html body.admin-bar div.handi-topbar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 32px !important;
    margin: 0 !important;
    z-index: 1001 !important;
}
html body.admin-bar header#site-header.site-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 76px !important;
    margin: 0 !important;
    z-index: 1000 !important;
}






/* ==========================================================================
   HEADER SHRINK via IntersectionObserver (pas de clignotement)
   ========================================================================== */

/* Logo : transition douce sur la hauteur */
html body #site-header .site-branding .custom-logo,
html body #site-header .site-branding img,
html body #site-header .site-branding a img {
    height: 140px !important;
    max-height: 140px !important;
    transition: height 0.3s ease !important;
}
html body #site-header .header-main {
    padding: 6px 20px !important;
    transition: padding 0.3s ease !important;
}

/* État réduit : header bien plus compact une fois collé */
html body #site-header.shrink .site-branding .custom-logo,
html body #site-header.shrink .site-branding img,
html body #site-header.shrink .site-branding a img {
    height: 65px !important;
    max-height: 65px !important;
}
html body #site-header.shrink .header-main {
    padding: 2px 20px !important;
}
html body #site-header.shrink .header-right-side .main-navigation ul li a {
    padding: 4px 10px !important;
}



/* ==========================================================================
   NOS MISSIONS — cartes cliquables mises en avant
   ========================================================================== */
.missions-intro {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mission-card-link {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    margin-bottom: 18px;
    text-decoration: none;
    border: 2px solid transparent;
    border-left: 4px solid var(--handi-gold);
    transition: all 0.3s ease;
}
.mission-card-link:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(26,77,119,0.12);
    border-color: var(--handi-gold);
}

.mission-card-link .mission-icon {
    font-size: 1.6rem;
    background: #eaf3ff;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease;
}
.mission-card-link:hover .mission-icon {
    background: var(--handi-gold);
}

.mission-content strong {
    color: var(--handi-blue);
    font-size: 1.25rem;
    display: block;
    margin-bottom: 6px;
}
.mission-content p {
    margin: 0 0 10px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.55;
}
.mission-arrow {
    color: var(--handi-blue);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.mission-card-link:hover .mission-arrow {
    color: var(--handi-gold);
}

/* FIX carte qui chevauche le footer */
.app-container {
    height: auto !important;        /* on enlève le calc(100vh - 80px) cassé */
    min-height: 600px !important;   /* hauteur mini de la zone carte */
    position: relative !important;
}

.map-wrapper {
    height: 600px !important;       /* hauteur fixe de la carte */
}

.sidebar {
    position: relative !important;  /* la sidebar reste dans le flux, pas par-dessus */
    max-height: 600px !important;
}

/* Le footer doit venir APRÈS la carte, jamais dessous */
.app-container + footer,
footer {
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
}



/* ===== ACCORDÉON VERTICAL "NOS MISSIONS" — tablette + desktop ===== */
@media (min-width: 768px) {

  .missions-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .missions-accordion .mission-card-link {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, background 0.3s ease;
  }

  /* En-tête toujours visible : icône + titre + chevron */
  .missions-accordion .mission-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
  }

  .missions-accordion .mission-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--handi-blue, #1a4d77);
  }
  .missions-accordion .mission-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
  }

  .missions-accordion .mission-head strong {
    flex: 1;
    color: var(--handi-blue, #1a4d77);
    font-size: 1.1rem;
  }

  .missions-accordion .mission-chevron {
    color: var(--handi-blue, #1a4d77);
    transition: transform 0.35s ease;
  }

  /* Corps pliable : fermé par défaut */
  .missions-accordion .mission-content {
    max-height: 0;
    opacity: 0;
    padding: 0 20px 0 74px;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  }
  .missions-accordion .mission-content p {
    margin: 0 0 10px;
    color: #555;
  }
  .missions-accordion .mission-arrow {
    color: var(--handi-blue, #1a4d77);
    font-weight: 700;
  }

  /* --- État OUVERT : 1er bloc par défaut --- */
  .missions-accordion .mission-card-link:first-child {
    background: #f4f8fb;
    box-shadow: 0 6px 18px rgba(26,77,119,0.10);
  }
  .missions-accordion .mission-card-link:first-child .mission-content {
    max-height: 220px;
    opacity: 1;
    padding: 0 20px 18px 74px;
  }
  .missions-accordion .mission-card-link:first-child .mission-chevron {
    transform: rotate(180deg);
  }

  /* --- Au survol de la zone : tout se ferme... --- */
  .missions-accordion:hover .mission-card-link {
    background: #fff;
    box-shadow: none;
  }
  .missions-accordion:hover .mission-card-link .mission-content {
    max-height: 0;
    opacity: 0;
    padding: 0 20px 0 74px;
  }
  .missions-accordion:hover .mission-card-link .mission-chevron {
    transform: rotate(0deg);
  }

  /* --- ...sauf le bloc survolé, qui s'ouvre --- */
  .missions-accordion:hover .mission-card-link:hover {
    background: #f4f8fb;
    box-shadow: 0 6px 18px rgba(26,77,119,0.10);
  }
  .missions-accordion:hover .mission-card-link:hover .mission-content {
    max-height: 220px;
    opacity: 1;
    padding: 0 20px 18px 74px;
  }
  .missions-accordion:hover .mission-card-link:hover .mission-chevron {
    transform: rotate(180deg);
  }
}



/* ===== CARTE + LISTE CÔTE À CÔTE (50/50, carte sticky) ===== */
.carte-liste-combo { padding: 50px 0 60px; }

@media (min-width: 1000px) {
	
#carte .cl-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

  .cl-carte {
    position: sticky;
    top: 90px;                        /* ajuste selon la hauteur de ton header */
  }

  /* La carte est plus étroite en demi-largeur : on la rehausse */
  .cl-carte .map-embed-full { height: 560px; }

  /* La liste passe de 4 à 2 colonnes dans sa demi-largeur */
  .cl-liste .liste-acces-places { grid-template-columns: repeat(2, 1fr); }
}

/* Sous 1000px : on empile, pas de sticky */
@media (max-width: 999px) {
  .cl-carte { position: static; margin-bottom: 40px; }
}

/* En très étroit, la liste repasse en 1 colonne (déjà géré, mais on sécurise) */
@media (max-width: 560px) {
  .cl-liste .liste-acces-places { grid-template-columns: 1fr; }
}
/* Intro resserrée, plus petite, italique */
.carte-intro {
    color: #5b6770;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.45;
    max-width: 720px;
    margin: 4px 0 12px;
}

/* La carte doit ancrer la légende et le bouton */
.map-embed-full { position: relative; }

/* Légende : cadre compact en bas à gauche, DANS la carte */
.carte-legende {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    max-width: 60%;
    padding: 8px 10px;
    background: rgba(255,255,255,0.92);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    backdrop-filter: blur(2px);
}
.carte-legende-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: #2b3a45;
    font-weight: 600;
}
.carte-legende-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px #fff;
}

/* Bouton "Ouvrir la carte" : collé en bas à droite, format bouton sans arrondi */
.btn-map-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--handi-blue);
    color: #fff;
    padding: 11px 18px;
    border-radius: 0;                 /* pas d'arrondi */
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    transition: background 0.2s;
}
.btn-map-overlay:hover {
    background-color: var(--handi-gold);
    color: #000;
    transform: none;                  /* on annule l'ancien translateY */
}
.btn-map-overlay svg {
    width: 15px; height: 15px;
    stroke: currentColor;
}

/* ===== CORRECTIFS CARTE (priorité forcée) ===== */

/* Bouton collé en bas à droite, format bouton net, sans arrondi */
#carte .btn-map-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: var(--handi-blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
#carte .btn-map-overlay:hover {
    background-color: var(--handi-gold);
    color: #000;
    transform: none !important;
}
/* Loupe : petite, monochrome */
#carte .btn-map-overlay svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
}

/* Légende : cadre compact en bas à gauche, DANS la carte */
#carte .map-embed-full { position: relative; }
#carte .carte-legende {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;
    max-width: 55%;
    margin: 0;
    padding: 7px 9px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
#carte .carte-legende-titre { display: none; }   /* masque "Catégories :" si encore présent */
#carte .carte-legende-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 600;
    color: #2b3a45;
}
#carte .carte-legende-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px #fff;
}

/* Intro : plus petite, italique, moins de marge */
#carte .carte-intro {
    font-size: 0.9rem !important;
    font-style: italic;
    line-height: 1.4;
    margin: 4px 0 12px !important;
}
@media (min-width: 1000px) {
  /* Aligne le haut de la barre d'outils avec le haut de la carte à gauche.
     Compense la hauteur du titre "Carte d'accessibilité" + intro de la colonne gauche. */
  .cl-liste { padding-top: 96px; }   /* ajuste : 80–110px selon la hauteur réelle du titre+intro */
}


/* ===== LISTE DERNIÈRES ACTUALITÉS (colonne édito) ===== */
.actu-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.actu-list-titre {
    font-size: 1rem; font-weight: 800; color: var(--handi-blue);
    margin: 0 0 4px; padding-bottom: 6px;
    border-bottom: 2px solid var(--handi-gold); align-self: flex-start;
}
.actu-item {
    display: flex; gap: 14px; align-items: stretch;
    background: #fff; border: 1px solid #eef2f6; border-radius: 12px;
    overflow: hidden; text-decoration: none;
    box-shadow: 0 2px 10px rgba(26,77,119,.05);
    transition: transform .18s ease, box-shadow .18s ease;
}
.actu-item:hover { transform: translateX(4px); box-shadow: 0 8px 20px rgba(26,77,119,.12); }
.actu-thumb {
    position: relative; flex-shrink: 0;
    width: 110px; background-size: cover; background-position: center; background-color: #eaf3ff;
}
.actu-tag {
    position: absolute; top: 6px; left: 6px;
    background: var(--handi-gold); color: #000;
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    padding: 3px 8px; border-radius: 4px;
}
.actu-body { padding: 12px 14px 12px 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.actu-title {
    font-size: 0.95rem; font-weight: 700; color: var(--handi-blue);
    line-height: 1.25; margin: 0 0 5px;
}
.actu-desc {
    font-size: 0.8rem; color: #5b6770; line-height: 1.4; margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.actu-link {
    font-size: 0.8rem; font-weight: 700; color: var(--handi-blue);
    margin-top: auto; transition: color .2s;
}
.actu-item:hover .actu-link { color: #d38a00; }

/* ========================================================================== 
   QUI SOMMES-NOUS — LISIBILITÉ RENFORCÉE SUR ORDINATEUR
   ========================================================================== */
.page-id-766 .elementor-766{
    overflow-x:clip;
}

@media (min-width: 900px){
    .page-id-766 .hs-history-intro > p,
    .page-id-766 .hs-timeline-content > p,
    .page-id-766 .hs-text-content > p,
    .page-id-766 .hs-grid-heading > p,
    .page-id-766 .hs-card > p,
    .page-id-766 .hs-contact-content > p{
        font-size:18px !important;
        line-height:1.7 !important;
    }

    .page-id-766 .hs-history-intro > p,
    .page-id-766 .hs-timeline-content > p,
    .page-id-766 .hs-text-content > p,
    .page-id-766 .hs-grid-heading > p,
    .page-id-766 .hs-card > p{
        color:#2c3e50 !important;
    }

    .page-id-766 .hs-history-intro > .hs-history-lead{
        max-width:820px;
        font-size:21px !important;
        line-height:1.6 !important;
    }

    .page-id-766 .hs-history-intro > p:not(.hs-history-lead){
        max-width:760px;
        margin-left:auto;
        margin-right:auto;
        text-align:left;
    }

    .page-id-766 .hs-timeline-content > p,
    .page-id-766 .hs-text-content > p{
        max-width:72ch;
    }
}

@media (max-width: 899px){
    .page-id-766 .hs-history-intro > p,
    .page-id-766 .hs-timeline-content > p,
    .page-id-766 .hs-text-content > p,
    .page-id-766 .hs-grid-heading > p,
    .page-id-766 .hs-card > p,
    .page-id-766 .hs-contact-content > p{
        font-size:17px !important;
        line-height:1.65 !important;
    }
}
/* ========================================================================== 
   QUI SOMMES-NOUS — harmonisation palette et contraste — v2.0.2
   ========================================================================== */
body.page-id-766 .elementor-element-d9ec463{
    padding-top:0 !important;
    padding-bottom:0 !important;
}

body.page-id-766 .hs-full-wrapper{
    --hs-menu-blue:#21659E;
    --hs-dark-blue:#1a4d77;
    --hs-accent-yellow:#FDC000;
    --hs-text-body:#354654;
    --hs-bg-light:#f4f8fb;
    --hs-border:#d7e3ec;
}

body.page-id-766 .hs-hero{
    background:linear-gradient(120deg,#21659E 0%,#1a4d77 100%) !important;
    border-bottom-color:#FDC000 !important;
}

body.page-id-766 .hs-history,
body.page-id-766 .hs-contact-block{
    background:#ffffff !important;
}

body.page-id-766 .hs-section-alt,
body.page-id-766 .hs-grid-section{
    background:#f4f8fb !important;
}

body.page-id-766 .hs-title,
body.page-id-766 .hs-timeline-content h3,
body.page-id-766 .hs-card h3{
    color:#15304c !important;
}

body.page-id-766 .hs-eyebrow,
body.page-id-766 .hs-timeline-year,
body.page-id-766 .hs-card-icon{
    color:#21659E !important;
}

body.page-id-766 .hs-title::after{
    background:#FDC000 !important;
}

body.page-id-766 .hs-timeline-content{
    background:#f4f8fb;
    border-left-color:#21659E !important;
}

body.page-id-766 .hs-timeline-current .hs-timeline-content{
    background:linear-gradient(120deg,#1a4d77 0%,#153f61 100%) !important;
    border-left-color:#FDC000 !important;
}

body.page-id-766 .hs-timeline-current .hs-timeline-content h3{
    color:#FDC000 !important;
}

body.page-id-766 .hs-timeline-current .hs-timeline-content p{
    color:rgba(255,255,255,.94) !important;
}

body.page-id-766 .hs-timeline-current .hs-timeline-content strong{
    color:#ffffff !important;
}

body.page-id-766 .hs-stats-section{
    background:linear-gradient(120deg,#21659E 0%,#1a4d77 100%) !important;
}

body.page-id-766 .hs-stat-number{
    color:#FDC000 !important;
}

body.page-id-766 .hs-card{
    border-bottom-color:#21659E !important;
}

body.page-id-766 .hs-focus-box{
    border-left-color:#FDC000 !important;
    background:#f4f8fb !important;
    color:#354654 !important;
}

body.page-id-766 .hs-contact-button{
    background:#FDC000 !important;
    color:#15304c !important;
}



/* ========================================================================== 
   MENU PRINCIPAL — soulignement animé Handiscore
   ========================================================================== */
@media (min-width: 1025px) {
    #site-navigation.main-navigation > ul > li > a::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 3px;
        height: 3px;
        border-radius: 999px;
        background: #FDC000;
        transform: scaleX(.28);
        transform-origin: left center;
        transition: transform .28s ease;
        pointer-events: none;
    }

    #site-navigation.main-navigation > ul > li > a:hover::after,
    #site-navigation.main-navigation > ul > li > a:focus-visible::after,
    #site-navigation.main-navigation > ul > li.current-menu-item > a::after,
    #site-navigation.main-navigation > ul > li.current-menu-ancestor > a::after,
    #site-navigation.main-navigation > ul > li.current_page_item > a::after {
        transform: scaleX(1);
    }

    #site-navigation.main-navigation > ul > li > a:focus-visible {
        outline: 2px solid #FDC000;
        outline-offset: 4px;
        border-radius: 3px;
    }
}


/* Menu principal : page active sans cartouche */
@media (min-width: 1025px) {
    #site-navigation.main-navigation > ul > li.current-menu-item > a,
    #site-navigation.main-navigation > ul > li.current-menu-ancestor > a,
    #site-navigation.main-navigation > ul > li.current_page_item > a {
        background: transparent !important;
        border-radius: 0 !important;
    }
}

/* V7.4 — LOGO MOBILE : PROPORTIONS D'ORIGINE CONSERVÉES */
@media (max-width:680px){
  html body #site-header .site-branding .custom-logo,
  html body #site-header .site-branding img,
  html body #site-header .site-branding a img{
    width:min(235px,calc(100vw - 110px))!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
  }
  html body #site-header .site-branding,
  html body #site-header .custom-logo-link{
    min-height:0!important;
    height:auto!important;
  }
}

/* Navigation et accès rapides Handiscore. */
.handi-topbar .hs-accessibility-shortcut{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:5px 0;color:#fff;background:transparent;border:0;font:inherit;cursor:pointer;white-space:nowrap;}
.hs-accessibility-shortcut:hover{color:#FDC000!important;}
.hs-accessibility-shortcut:focus-visible,.hs-back-top:focus-visible{outline:3px solid #FDC000;outline-offset:3px;}
@media(min-width:1281px){#site-navigation.main-navigation{display:block!important;}#trigger-mobile-menu{display:none!important;}#site-navigation.main-navigation>ul{gap:8px!important;flex-wrap:nowrap!important;}#site-navigation.main-navigation>ul>li>a{font-size:15px!important;white-space:nowrap!important;padding-left:8px!important;padding-right:8px!important;}}
@media(max-width:480px){.handi-topbar .topbar-right{gap:7px!important;flex-wrap:wrap;justify-content:flex-end;}.handi-topbar .hs-accessibility-shortcut{font-size:13px;gap:4px;}.handi-topbar .hs-search-toggle{width:32px;min-width:32px;padding:4px;}.handi-topbar .topbar-contact,.handi-topbar .topbar-adherer{font-size:13px!important;}.handi-topbar .topbar-contact i{display:none;}.handi-topbar .hs-accessibility-shortcut svg{width:16px;}}
.hs-partners-logos a:has(img[alt="Ville de Bourg-lès-Valence"]),.hs-partners-logos a:has(img[alt="Ville de Valence"]){min-width:0;}
html body .hs-partners-logos img[alt="Ville de Bourg-lès-Valence"],html body .hs-partners-logos img[alt="Ville de Valence"]{width:210px!important;max-width:100%!important;height:130px!important;padding:4px!important;}
.hs-back-top{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;margin-top:16px;border:1px solid #6b91ae;border-radius:8px;background:transparent;color:#fff!important;text-decoration:none;font-size:15px;line-height:1.4;}
.hs-back-top:hover{border-color:#FDC000;color:#FDC000!important;}
@media(max-width:600px){html body .hs-partners-logos img[alt="Ville de Bourg-lès-Valence"],html body .hs-partners-logos img[alt="Ville de Valence"]{height:110px!important;}}

/* Handiscore — lisibilité mobile, 20 novembre 2026. */
@media (max-width: 680px) {
  html body.home #content .v4-hero-intro,
  html body.home #content .v4-about-card .v4-overlay-content p,
  html body.single-lieu #content .hs-study-summary__copy p {
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
  }

  html body.home #content .v4-missions-intro,
  html body.home #content .v4-inclusion-intro,
  html body.home #content .envies-intro,
  html body.home #content .env-description,
  html body.home #content .community-ad-text,
  html body.home #content .v4-tournament-content p,
  html body.single-lieu #content .card-std p,
  html body.single-lieu #content .card-std li,
  html body.single-lieu #content .sidebar-wrapper p,
  html body.single-lieu #content .grid-4 p,
  html body #content .hs-related > p {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
  }

  html body.home #content .v4-overlay-content small,
  html body.home #content .v4-static-map-caption small {
    font-size: 1.0625rem !important;
    line-height: 1.5 !important;
  }

  html body.home #content .v4-mission-action,
  html body.home #content .v4-culture-card {
    height: auto !important;
    min-height: 260px !important;
  }
  html body.home #content .v4-mission-action .hs-v8-card-photo,
  html body.home #content .v4-culture-card .hs-v8-card-photo {
    flex: 0 0 170px;
    min-height: 170px;
  }
  html body.home #content .v4-overlay-content,
  html body.home #content .env-body {
    overflow-wrap: anywhere;
  }
}

/* Images mobiles : dimensions explicites, photos sans étirement. */
@media(max-width:680px){
 html body.home #carte .v4-static-map>img{display:block;flex:0 0 auto!important;height:240px!important;min-height:240px!important;max-height:none!important;width:100%!important;object-fit:cover!important;}
 html body.home #carte .v4-static-map{height:auto!important;min-height:0!important;}
 html body.home #carte .v4-map-visual{height:auto!important;min-height:0!important;}
 html body.home #carte .v4-actualites .v3-rub-img{display:block;flex:0 0 auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3;object-fit:cover;}
 html body.home #carte .env-imgwrap{overflow:hidden;}
 html body.home #carte .env-imgwrap img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;}
 html body #content .envie-featured-body p,
 html body #content .envie-card-excerpt,
 html body #content .envie-description p{font-size:1.125rem!important;line-height:1.6!important;}
 html body #content .envie-card-excerpt{display:block;-webkit-line-clamp:unset;max-height:none;}
 html body .hs-foot-brand p,html body .hs-foot-cta p{font-size:1.0625rem!important;line-height:1.6!important;}
}

/* Les critères et le pied de page suivent aussi l'agrandissement Ally. */
@media(max-width:680px){
 html body.single-lieu #content .critere-row{flex-wrap:wrap;gap:8px;}
 html body.single-lieu #content .critere-label{min-width:0;overflow-wrap:anywhere;}
 html body.single-lieu #content .card-std>div:first-child{flex-wrap:wrap;gap:8px;}
 html body .hs-foot-cta-inner>div{min-width:0;max-width:100%;overflow-wrap:anywhere;}
}
