    /**
Theme Name: surikwat
Author: Surikwat
Author URI: https://www.surikwat.com
Description: Theme du site CT Anglade
Version: 1.0.0
Text Domain: surikwat
Template: astra
*/

/* ==========================================================================
   1. GÉNÉRAL & TYPOGRAPHIE
   ========================================================================== */
#page a:hover,
.page-template-default a:hover, 
#page .current-menu-item > a {
    color: #C90000 !important;
}

@media (min-width: 922px) {
    .page-template-default .ast-container { max-width: 100%; }
}

.page-template-default .ast-single-post-featured-section img { max-height: 450px; }

.page-template-default #main h1 {
    font-family: "Poppins", Sans-serif;
    font-size: 50px;
    font-weight: 900;
    font-style: italic;
    color: #1c3677;
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

.page-template-default #main h2 {
    font-family: "Poppins", Sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #1c3677;
}

#ast-scroll-top { background-color: #1c377d; }
@media (max-width: 922px) 
{
    header .custom-logo-link img 
    {
        max-width: 230px;
        width: 290px;
    }
}


/* ==========================================================================
   2. HEADER & MENU ANIMÉ
   ========================================================================== */
.custom-logo-link { position: relative; }
.sub-menu .menu-link { text-transform: capitalize; }
.ast-hfb-header .site-header { box-shadow: 0px 4px 10px #00000020; }

.ast-site-identity { position: relative; z-index: 10; padding: 10px 0; }
.ast-site-identity::before {
    content: "";
    position: absolute;
    top: -10px; bottom: -3px; right: -45px; left: -2000px;
    background: #1b3575;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    transform: skewX(-15deg);
    box-shadow: 15px 0px 30px rgba(0, 0, 0, 0.2);
    z-index: -1;
}

@media (min-width: 922px) {
    .site-header-primary-section-left { position: relative !important; z-index: 100 !important; }
    .site-header-primary-section-center {
        position: relative !important; z-index: 10 !important; 
        animation: apparitionTiroir 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }
    @keyframes apparitionTiroir {
        0% { transform: translateX(-300%); opacity: 0; }
        20% { opacity: 1; }
        100% { transform: translateX(0); }
    }
}


/* ==========================================================================
   PAGE ARCHIVE DES CT (SPLIT SCREEN MAP + LIST)
   ========================================================================== */

/* 1. Le conteneur principal : Flexbox inversé */
.directories-archive-wrapper {
    display: flex;
    flex-direction: row-reverse; /* Met la Map à gauche */
    align-items: flex-start; 
    background: #1b3575; 
}

/* 2. La Map (Colonne Gauche - 60%) */
.directories-map-section {
    width: 60%;
    position: sticky;
    top: 0;
    height: 100vh;
    display: block; 
}

#directories-map {
    height: 100% !important;
    width: 100%;
    z-index: 1;
}

/* 3. La Liste (Colonne Droite - 40%) */
.directories-post-wrapper {
    width: 40%;
    padding: 2rem !important;
    background: #1b3575;
}

.directories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Cartes rapprochées */
}

/* 4. Le Design des Cartes (Compact) */
.tease-directories .card {
    background: #ffffff;
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tease-directories .card:hover {
    transform: translateX(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.tease-directories .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tease-directories .card-title {
    font-size: 1.2rem;
    letter-spacing: -1px;
    color: #1c377d;
    margin: 0;
}
@media (max-width: 922px) 
{
    .tease-directories .card-title {
    font-size: 1.2rem;
    letter-spacing: -1px;
    }
}

.tease-directories .card-title a {
    text-decoration: none;
    color: inherit;
}

.tease-directories address {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
    line-height: 1.2;
    font-style: normal;
}

/* 5. Boutons et Actions */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    margin-top: 0.5rem;
}

.picto-container {
    display: flex;
    gap: 0.5rem;
}

.picto_archive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #dde0f3;
    color: #1c377d !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.picto_archive:hover {
    background: #1c377d;
    color: #ffffff !important;
}

.btn-reserver {
    display: inline-block;
    background: #df042e;
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.btn-reserver:hover {
    background: #b80022;
}

/* 6. Responsive (Tablettes et Mobiles) */
@media (max-width: 1024px) {
    .directories-archive-wrapper {
        flex-direction: column;
    }
    .directories-map-section {
        width: 100%;
        position: relative;
        height: 400px;
    }
    .directories-post-wrapper {
        width: 100%;
        padding: 1rem !important;
    }
}

/* 7. Design de la carte (Transformation en mode sombre/bleu) */
.leaflet-layer {
    /* Ce filtre désature les couleurs naturelles et applique un ton bleuté élégant */
    filter: grayscale(80%) sepia(30%) hue-rotate(180deg) brightness(90%) contrast(110%);
}

.leaflet-marker-icon {
    /* Modifie la teinte du picto de base pour l'assombrir et coller à ton bleu */
    filter: hue-rotate(30deg) saturate(120%) brightness(70%);
}

.directories-map-popup h2 {
    color: #1c377d !important; /* Force ton bleu pour le titre dans la bulle de la carte */
}

#directories-map .btn.btn-secondary {
  font-family: roboto;
}
#directories-map .directories-map-popup h2 {
  letter-spacing: 0.1px;
}


/* ==========================================================================
   BOUTONS HEADER ET ACCUEIL (RESTITUTION DES HOVERS)
   ========================================================================== */

/* --- Boutons du Header --- */
.ast-custom-button:hover {
  color: #c5c5c5;
}

.ast-header-button-1 .ast-custom-button:hover {
  color: #df042e;
  background: #fffefe;
}

.ast-header-button-1 .ast-custom-button:hover svg {
  fill: #df042e !important;
}

/* L'icône "Livre ouvert" blanche par défaut */
.site-header .ast-custom-button::before {
    content: "";
    display: inline-block;
    width: 18px; 
    height: 16px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23FFFFFF' d='M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-top: -2px;
}

/* L'icône "Livre ouvert" devient ROUGE au survol */
.site-header .ast-custom-button:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23df042e' d='M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z'/%3E%3C/svg%3E");
}

/* --- Boutons Accueil et divers --- */
.e-15a7360-396c2af.e-button-base:hover {
  background: #fff2;
}

#page .btn1:hover svg {
    fill: #C90000!important;
}

#page .btn2:hover svg {
    fill: #dbdbdb!important;
}

#page .btn2 a:hover {
    color: #dbdbdb !important;
}

#page .btn_bleu a:hover {
    color: #1c3677 !important;
}


/* ==========================================================================
   3. SINGLE CENTRE (STRUCTURE & FOND)
   ========================================================================== */
.single-directories #content { background: #1b3575; color: white; }

.single-directories #content article,  .single-directories #content article .entry-content{padding: 0 !important;}
.single-directories #content .entry-header h1,
.single-directories #content h2 { color: white; }
.wp-block-table.is-style-stripes tbody tr:nth-child(2n+1) {
  background-color: #f0f0f06b;
}
.single-directories  .wp-block-list {
  text-align: left;
}
.single-directories  .single-directories #content .wp-block-columns.is-layout-flex {
    margin-bottom: 50px;
    border-bottom: solid 2px #ffffff2b;
    padding-bottom: 50px;
}
#agendaMainContainer {
  background: white;
  padding: 10px;
}
.controle-2colonnes div.tarifsct figure {
  box-shadow: none;
}
.single-directories #content  .ast-article-single figure{
    box-shadow: none;
}
@media (max-width: 922px) {
     .controle-2colonnes div.tarifsct {
     padding: 0;
    }
    .controle-2colonnes div.tarifsct img {
     margin: 20px;
    }
}

/* ==========================================================================
   4. BLOC 50/50 INFOS PRATIQUES (CORRIGÉ)
   ========================================================================== */
.directory-practical-info-split {
    display: flex !important;
    flex-direction: row !important; /* Force l'alignement horizontal */
    flex-wrap: wrap !important;
    background-color: #1b3575; 
    width: 100vw;
    margin: 40px 0 40px calc(-50vw + 50%); 
    overflow: hidden; 
}


.single-directories .split-content address {
  margin: 0;
}
#content .single-directories h1 {
  font-size: 3em;
}
 .split-content  .tel-link {
  color: white;
  text-decoration: none !important;
}
#content #main .bloc-rdv-single {
  margin-top: 0;
}

#main .single-directories header {
  padding: 0 !important;
  margin-top: 60px;
  margin-bottom: 0;
}

#main .single-directories  .wp-block-table.is-style-stripes {
  border-bottom: 0;
}
.directory-presentation .wp-block-columns-is-layout-flex figure {
  margin: 0 auto;
    margin-bottom: 0px;
}

.bloc-rdv-single2 {
  padding: 0 60px;
}
.directory-presentation .wp-block-columns-is-layout-flex {
  gap: 0px;
}
.controle-3colonnes p {
  padding: 10px 20px;
}
#controle-colonnes-centre {
  background: white;
  color: #1b3575;
}
.controle-3colonnes {
  margin-bottom: 30px !important;
  border-bottom: solid 1px #fff6;
  padding-bottom: 30px;
}
.controle-2colonnes div {
  padding: 30px;
}
.controle-2colonnes div.tarifsct {
  padding: 0;
}
.controle-2colonnes div.tarifsct td {
  text-align: left;
}
.directory-presentation .wp-block-columns-is-layout-flex figure{
margin: 0 auto;
}
/* La Photo */
.split-photo { 
    flex: 1 1 50% !important; 
    min-width: 300px; 
    position: relative; 
    min-height: 450px; 
    opacity: 0; 
}
.split-photo img { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
}

/* Le Contenu Texte */
.split-content {
    flex: 1 1 50% !important; 
    min-width: 300px; 
    padding: 60px 5% !important; 
    color: #ffffff;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    opacity: 0;
}

/* Animations */
.directory-practical-info-split.is-visible .split-photo { animation: glisserGauche 1s forwards; }
.directory-practical-info-split.is-visible .split-content { animation: glisserDroite 1s forwards; }

@keyframes glisserGauche { 0% { transform: translateX(-100px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes glisserDroite { 0% { transform: translateX(100px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }

/* NETTOYAGE DES LISTES (Anti-Astra) */
#content #main ul.infos-list-pro { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 0 30px 0 !important; 
}

#content #main ul.infos-list-pro li { 
    display: flex !important; 
    align-items: center !important; 
    margin-bottom: 20px !important; 
    padding: 0 !important; /* Retire le décalage Astra */
    list-style-type: none !important;
}

#content #main ul.infos-list-pro li::before { 
    content: none !important; 
    display: none !important; 
}

/* Les Pictos */
.split-content .picto {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 15px; 
    background: #ffffff; 
    color: #1b3575 !important;
    padding: 8px; 
    border-radius: 8px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Bloc Horaires */
.infos-hours-pro {
    background: #ffffff; 
    color: #1b3575; 
    padding: 25px;
    border-radius: 8px; 
    border-left: 5px solid #df042e; 
    margin-bottom: 30px;
}

.infos-hours-pro h3 { color: #1b3575 !important; margin-top: 0; }

/* Bouton */
.btn-reserver-split {
    display: inline-block; 
    background: #df042e; 
    color: #ffffff !important;
    padding: 15px 35px; 
    border-radius: 4px; 
    font-weight: bold; 
    text-transform: uppercase;
    text-decoration: none !important;
}

 #page #content .btn-reserver-split:hover {background:white;}
/* ==========================================================================
   5. SECTION "NOS AUTRES CENTRES" (MODE TICKER CONTINU)
   ========================================================================== */

/* La section fond blanc */
body.single-directories #primary .directory-other-centres {
    background-color: #dcdcdc !important; 
    padding: 40px 0 !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 40px 0 0 0 !important;
}

/* Le Titre (Bleu sur fond blanc) */
body.single-directories #primary .directory-other-centres h2 {
    color: #1b3575 !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin: 0 auto 40px auto !important;
    text-decoration: none !important;
}

/* SWIPER TICKER CONFIG */
.other-centres-swiper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0 60px 0 !important;
}

/* Secret de la fluidité : Transition linéaire */
.other-centres-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
    display: flex !important;
    align-items: stretch !important; /* Force même hauteur */
}

.other-centres-swiper .swiper-slide {
    height: auto !important;
    display: flex !important;
}

/* LE DESIGN DES CARTES */
#content #main .directory-other-centres .other-centre-card {
    background-color: #1b3575 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important; /* Retire le soulignement */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.other-centre-img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.other-centre-title {
    color: #ffffff !important;
    padding: 15px 15px 5px 15px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
}

.other-centre-city {
    color: rgba(255,255,255,0.8) !important;
    padding: 0 15px 20px 15px !important;
    margin-top: auto !important; /* Pousse la ville en bas */
    font-size: 0.9rem !important;
    text-transform: uppercase;
}

/* ==========================================================================
   6. FOOTER & DIVERS
   ========================================================================== */
.site-footer p, .site-footer, .site-footer a { color: #fcfcfc; }