@charset "UTF-8";
/*
 * Sainte-Cécile : styles spécifiques au site.
 *
 * Repris du « CSS additionnel » du Customizer, qui doit maintenant être vidé :
 * ce qu'il contient serait chargé APRÈS ce fichier et réintroduirait les valeurs d'origine.
 *
 * Les lignes précédées de « A11y: » sont les seules différences avec le CSS d'origine
 * (contrastes WCAG AA, focus visible, cibles tactiles, unités relatives, mobile).
 * Chargé par cggt_scripts() avant accessibility.css.
 */

/* ------------------------------------------------------------------ */
/* Formulaire « slide in » (Mailpoet / popup)                         */
/* ------------------------------------------------------------------ */
#mp_form_slide_in1 {
    width: 30% !important;
}

/* A11y: 30 % de large est inutilisable sur tablette et mobile (≈ 230 px à 768 px). */
@media (max-width: 1024px) {
    #mp_form_slide_in1 {
        width: min(92%, 42rem) !important;
    }
}

/* ------------------------------------------------------------------ */
/* Plugin « Read more »                                               */
/* ------------------------------------------------------------------ */
/*
 * Aspect d'origine du site : carré de 30 px, salmon #d8846e (choix du site, y compris le contraste du « + » blanc : 2,8:1).
 * Seules différences, invisibles : « + » décoratif pour les lecteurs d'écran, et « outline: none » retiré
 * pour que le focus clavier reste visible (anneau noir de accessibility.css, uniquement au clavier).
 * Le nom du lien (« Lire la suite : … ») est ajouté par a11y-links.js.
 */
.steC-read-more {
    position: relative;
    color: #d8846e;
    border-bottom: 1px solid #d8846e;
    margin: 0 0 3em 0;
    display: block;
    height: auto;
    padding-bottom: 1em;
}

.read-more-text {
    /*max-width: 200px;*/
    font-size: 16pt;
}

.read-more-text > h2 {
    font-size: 16pt;
}

.steC-read-more > a {
    position: absolute;
    bottom: 0;
    right: 0;
    display: block;
    color: #d8846e;
    font-size: 1.8rem;
    width: 30px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    background-color: #d8846e;
}

.steC-read-more > a::after {
    content: "+";
    content: "+" / "";                          /* « + » décoratif, non lu par les lecteurs d'écran (navigateurs compatibles) */
    display: block;
    font-family: serif;
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    -webkit-transition: all 0.7s;
    transition: all 0.7s;
}

.steC-read-more > a:hover::after,
.steC-read-more > a:focus::after,
.steC-read-more > a:active::after {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
}

/* ------------------------------------------------------------------ */
/* Page                                                               */
/* ------------------------------------------------------------------ */
body {
    width: 100%;
}

@media (max-width: 768px) {
    body {
        width: auto;                            /* A11y: 100 % + marge de 5 px à gauche dépassait l'écran de 5 px (défilement horizontal, WCAG 1.4.10) */
        margin: 0 5px 0 5px !important;
    }
}

/* A11y: sur la version mobile, le lien « Messe & horaires » n'est qu'une icône de 16 × 16 px. */
a:has(> .horaires-text) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* ------------------------------------------------------------------ */
/* Blocs entièrement cliquables                                       */
/* ------------------------------------------------------------------ */
.entire-div-link:hover,
.entire-div-link:focus-within {                 /* A11y: même retour visuel au clavier qu'à la souris */
    filter: brightness(0.98);
    transition: filter 0.2s;
    cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Visual Composer : image simple                                     */
/* ------------------------------------------------------------------ */

/* Conteneur */
.vce-single-image-inner {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    background: transparent !important;
}

/* Image en mode ratio-box (desktop) */
.vce-single-image-inner img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Responsive : supprime la ratio-box pour fluidifier l'image */
@media (max-width: 768px) {
    .vce-single-image-inner {
        height: auto !important;
        padding-bottom: 0 !important;
    }

    .vce-single-image-inner img {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
    }
}

/* ------------------------------------------------------------------ */
/* Events Manager                                                     */
/* ------------------------------------------------------------------ */
.event-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-date {
    width: 70px;
    padding: 10px;
    border-right: 3px solid #e09e78;
    background: #f0f0f0;
    font-weight: bold;
    text-align: center;
}

.event-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.event-content {
    padding: 15px;
}

.event-title {
    margin: 0 0 10px;
    color: #a04a34;                             /* A11y: #c67c63 = 3,3:1 → #a04a34 = 6:1 */
}

.event-excerpt {
    margin-bottom: 10px;
    color: #555;
}

.event-readmore {
    display: inline-flex;                       /* A11y: cible tactile 44 px */
    align-items: center;
    min-height: 44px;
    color: #a04a34;                             /* A11y: #c67c63 = 3,3:1 → #a04a34 = 6:1 */
    text-decoration: underline;                 /* A11y: un lien ne se distingue pas par la couleur seule */
    text-underline-offset: 0.2em;
}

.event-location {
    margin-top: 10px;
    color: #6b6b6b;                             /* A11y: #777 = 4,48:1 (juste sous 4,5) → #6b6b6b = 5,3:1 */
    font-size: 0.9em;
}

/* ------------------------------------------------------------------ */
/* Events Manager : couleur d'accent                                  */
/* ------------------------------------------------------------------ */

/*
 * Le plugin colore tous ses liens et boutons avec --accent-color, construit à partir de
 * ces trois variables (bleu par défaut : hsl(220, 86 %, 57 %)). On les remplace par le salmon
 * de la charte, hsl(12, 58 %, 64 %) = #d8846e, comme les titres du site.
 * Le survol est calculé par le plugin à partir des mêmes variables (plus foncé) : il reste cohérent.
 * A11y: #d8846e sur blanc = 2,8:1 (choix assumé du site). Pour du texte courant, #a04a34 donne 6:1 :
 * il suffit de remplacer --accent-s par 51% et --accent-l par 42%.
 */
.em {
    --accent-hue: 12.45;                        /* = rgb(216, 132, 110) = #d8846e */
    --accent-s: 57.6%;
    --accent-l: 63.9%;
}

/* ------------------------------------------------------------------ */
/* Accueil : cartes d'événements (.steC_card, grille Events Manager)  */
/* ------------------------------------------------------------------ */

/*
 * Balisage produit par le format d'Events Manager :
 *   .em-event.em-item.steC_card > .em-item-image (.event-date-badge dedans) + .event-title-box
 *   + .em-item-desc + hr.event-separator + .em-event-location
 * Reprend le style des anciennes .event-card (fond blanc, ombre, coins arrondis).
 */
.em.em-list .em-item.steC_card {
    /* Lignes de la grille : image, titre, description, séparateur, lieu. La description (1fr) absorbe l'espace libre :
       séparateur et lieu sont donc alignés en bas de carte, d'une carte à l'autre. (flex agrandissait les images.) */
    grid-template-rows: auto auto 1fr auto auto;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;                           /* Events Manager mettait var(--meta-bg), invalide ici : le fond de la section transparaissait */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contenu texte : marges intérieures (l'image reste pleine largeur). */
.steC_card .event-title-box,
.steC_card .em-item-desc,
.steC_card .em-event-location {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.steC_card .event-title-box {
    padding-top: 1.5rem;
}

.steC_card .em-item-desc {
    color: #555;                                /* 7,5:1 sur blanc */
}

.steC_card .em-event-location {
    padding-bottom: 1.5rem;
    color: #6b6b6b;                             /* 5,3:1 sur blanc */
}

.steC_card .event-separator {
    height: 1px;
    margin: 1.5rem;
    border: 0;
    background: #d9d9d9;
}

/* Titre de la carte : taille réduite (42 px venait du réglage des titres H2 de Visual Composer) et couleur du site. */
.em.em-list .steC_card h2.em-item-title {
    margin-bottom: 1rem;
    font-size: 2.6rem !important;               /* Events Manager impose « calc(var(--font-size) + 26px) !important » */
    line-height: 1.2;
    /*
     * Events Manager colore ses liens avec « color: var(--accent-color) !important » : seule la variable peut
     * changer la couleur du titre. Salmon de la charte : contraste 2,8:1 sur blanc (choix assumé, voir A11y).
     */
    --accent-color: #d8846e;
}

.em .steC_card .em-item-title a {
    color: #d8846e;
    text-decoration: none;
}

.em .steC_card .em-item-title a:hover,
.em .steC_card .em-item-title a:focus {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Lien de lieu : même salmon que le titre (variable d'accent, le plugin impose sa couleur en !important). */
.em .steC_card .em-event-location {
    --accent-color: #d8846e;
}

.em .steC_card .em-event-location a {
    color: #d8846e;
    text-decoration: none;
}

.steC_card .em-icon {
    color: #6b6b6b;
}

/* Pastille de date posée sur l'image. */
.steC_card .event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.6rem;
    padding: 0.6rem 1rem;
    border-bottom: 3px solid #e09e78;
    border-radius: 6px;
    color: #1f2a30;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    line-height: 1.1;
    text-align: center;
}

.steC_card .event-date-badge .day {
    font-size: 2.4rem;
    font-weight: 700;
}

.steC_card .event-date-badge .month {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* WooCommerce                                                        */
/* ------------------------------------------------------------------ */
.custom-single-product {
    margin: 0 10%;
    padding: 2rem 0;
}

.custom-single-product__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.custom-single-product__left {
    flex: 1 1 50%;
}

.custom-single-product__right {
    display: flex;
    flex: 1 1 35%;
    flex-direction: column;
    gap: 1.5rem;
}

.custom-single-product__title {
    margin-bottom: 1.5rem;
}

.custom-single-product__image .woocommerce-product-gallery {
    margin: 0;
}

@media (max-width: 960px) {
    .custom-single-product {
        margin: 0 5%;
    }
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                       */
/* ------------------------------------------------------------------ */
#footer_logo_img {
    max-width: 250px;
    max-height: 250px;
}

#footer_row_global {
    background-color: #d8846e;
}

/* A11y: texte blanc sur #d8846e = 2,8:1. Texte foncé = 5,2:1. */
#footer_row_global,
#footer_row_global p,
#footer_row_global li {
    color: #1f2a30;
}

#footer_row_global a {
    color: inherit;
    text-decoration: none;                      /* pas de soulignement dans le pied de page (choix du site) */
}

.postid-4238 p.price {
    display: none !important;
}

/* ------------------------------------------------------------------ */
/* Événement en vedette                                               */
/* ------------------------------------------------------------------ */
.em-vedette {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
}

.em-vedette__text {
    flex: 1;
    min-width: 0;
}

.em-vedette__text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.em-vedette__text p {
    margin: 0 0 12px 0;
    color: #666;
}

.em-vedette__text a.btn {
    display: inline-flex;                       /* A11y: cible tactile 44 px */
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    background: #c62f3b;                        /* A11y: #e63946 + texte blanc = 4,2:1 → #c62f3b = 5,4:1 */
    font-size: 0.9em;
    text-decoration: none;
}

.em-vedette__text a.btn:hover,
.em-vedette__text a.btn:focus {
    color: #fff;
    background: #a82530;
}

.em-vedette__img {
    flex-shrink: 0;
    width: 160px;
}

.em-vedette__img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .em-vedette {
        flex-direction: column;
    }

    .em-vedette__img {
        width: 100%;
    }
}
