/*
Theme Name: Divi Child
Template: Divi
Description: Child theme Divi – Presse & Événements
Version: 4.27.5
Updated: 2026-02-11
*/

/* ==================================================
   PALETTE COULEURS
================================================== */
:root {
    --color-text: #444444;
    --color-text-light: #6b6b6b;
    --color-title: #3f2021;       
    --color-link: #6b3a3a;
    --color-link-hover: #caa87d;
    --color-border: #dddddd;

    /* footer */
    --footer-text: #caa87d;
    --footer-link: #ffffff;
    --footer-link-hover: #caa87d;
}

/* ==================================================
   TYPOGRAPHIE GLOBALE
================================================== */
html {
    font-size: 16px;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: "liga", "kern";
    color: var(--color-text);
    font-size: 1.08rem;
    line-height: 1.6;
}

.et_pb_pagebuilder_layout {
    font-size: inherit;
}

/* ==================================================
   TITRES
================================================== */

/* Base titres*/
h1, h2, h3, h4, h5, h6,
.archive-title,
.presse-titre,
.single-title {
    color: var(--color-title);
    font-weight: 600;
}

/*Variation titres*/
.archive-title {
    font-size: 1.3em;
}

/*Single title*/
.single-title {
    font-size: 2em;
    margin: 20px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    position: relative;

    max-width: 720px;
    margin-left: auto;
    margin-right: auto;

    padding: 0 20px 10px;
    box-sizing: border-box;
}

/*Barre sous-titres*/
.single-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-link-hover);
    margin-top: 6px;
    border-radius: 2px;
}



/* ==================================================
   META
================================================== */

/*Base commune*/
.archive-meta,
.single-meta {
    font-size: 0.95em;
    color: var(--color-text-light);
    margin-bottom: 15px;

    max-width: 720px;
    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

    box-sizing: border-box;
}

/*Overide archives*/
.archive-meta {
    margin: 0;
    padding-left: 0;
    padding-bottom: 5px;
    text-align: left;
}

/*Structure interne*/
.archive-meta span,
.single-meta div {
    display: block;
}



/* ==================================================
   LIENS (hors menu)
================================================== */
a {
    color: var(--color-link);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
}

/* ==================================================
   MENU
================================================== */

/*Header base*/
#main-header {
    background-color: var(--color-title);
}

/*Liens menu unifiés*/
#main-header a,
#et_mobile_nav_menu a {
    color: #f4efe7 !important;
	transition: color 0.2s ease;
}

#main-header a:hover,
#et_mobile_nav_menu a:hover {
    color: var(--color-link-hover) !important;
}

/*Mobile icon*/
.mobile_menu_bar:before {
    color: #f4efe7 !important;
}


/*Mobile menu border*/
.et_mobile_menu {
    border-top: 3px solid var(--color-link-hover) !important;
}

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

/*Base boutons*/
button,
input[type="submit"],
.et_pb_button {
    background-color: var(--color-title);
    color: #f4efe7;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;

    transition: background-color 0.3s ease, color 0.3s ease;
}

/*Hover*/
button:hover,
input[type="submit"]:hover,
.et_pb_button:hover {
    background-color: var(--color-link-hover);
    color: var(--color-title);
}

/*Accessibilité*/
button:focus,
input[type="submit"]:focus,
.et_pb_button:focus {
    outline: 2px solid var(--color-link-hover);
    outline-offset: 2px;
}

/* ==================================================
   FORMULAIRES (Contact Form 7 + Divi CLEAN)
================================================== */

/* =========================
   BASE GLOBAL SAFE
========================= */

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

/* empêche scroll horizontal global */
html, body {
    overflow-x: hidden;
}

/* =========================
   STRUCTURE CF7
========================= */

.wpcf7 {
    width: 100%;
    max-width: 100%;
}

.wpcf7-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* wrap CF7 (important pour éviter débordement inputs) */
.wpcf7-form-control-wrap {
    display: block;
    max-width: 100%;
}

/* =========================
   CHAMPS
========================= */

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    max-width: 600px;

    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;

    font-family: inherit;
    font-size: 1rem;

    box-sizing: border-box;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus uniquement visuel (pas layout shift) */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    outline: none;
    border-color: var(--color-link-hover);
    box-shadow: 0 0 0 2px rgba(202, 168, 125, 0.25);
}

/* =========================
   TYPO FORMULAIRE
========================= */

.wpcf7 p {
    margin-bottom: 16px;
}

.wpcf7 label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--color-title);
}

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

@media (max-width: 768px) {
    .wpcf7 input,
    .wpcf7 textarea,
    .wpcf7 select {
        max-width: 100%;
    }
}

/* =========================
   DIVI FIX TARGETÉ (IMPORTANT)
========================= */

/* uniquement colonnes contenant CF7 */
.et_pb_column:has(.wpcf7) {
    overflow: visible !important;
    min-width: 0;
}

/* sécurité supplémentaire fallback */
.et_pb_column .wpcf7 {
    width: 100%;
}

.et_pb_column .wpcf7-form {
    overflow: visible;
}

/* colonne Divi full width safe */
.et_pb_column.et_pb_column_4_4 {
    min-width: 0;
}




/* ==================================================
   FOOTER
================================================== */
/*Base footer*/
.custom-footer {
    background-color: #2a1414;
    color: var(--footer-text);
}

/* Texte footer */
.custom-footer p,
.custom-footer span,
.custom-footer li {
    color: var(--footer-text);
    font-size: 15px;
}


/* Liens */
.custom-footer a {
    color: var(--footer-link) !important;
    transition: color 0.2s ease;
}

.custom-footer a:hover {
    color: var(--footer-link-hover) !important;
}

/* ==================================================
   IMAGES SINGLE
================================================== */
.single-content img,
.single-image-vertical img,
.single-image-horizontal img,
.image-actu.wp-post-image {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;

    margin: 2.5rem auto;
    border-radius: 12px;
	
    transition: transform 0.3s ease;
}

/* ==================================================
   IMAGES ARCHIVES / LISTES
================================================== */

/*Base commune*/
.evenement-affiche,
.image-vertical,
.presse-image {
    overflow: hidden;
    border-radius: 15px;
    flex-shrink: 0;
}

/*Formats*/
.evenement-affiche,
.image-vertical {
    width: 140px;
    height: 198px;
}

.presse-image {
    width: 198px;
    height: 140px;
}

/*Images*/
.evenement-affiche img,
.image-vertical img,
.presse-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    will-change: transform;
}

/*Logo journal*/
.logo_journal{
	max-width:20%;
}


/* ==================================================
   HOVER SUBTIL – PRESSE & ÉVÉNEMENTS
================================================== */


/*Base layout + transition*/
.archive-ligne,
.presse-ligne,
.evenement-ligne {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/*Hover*/
.archive-ligne:hover,
.presse-ligne:hover,
.evenement-ligne:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}


/* ==================================================
   PAGINATION
================================================== */

/*Container*/
.pagination {
    margin: 40px 0;
    text-align: center;
}

/*Liste*/
.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/*Items*/
.pagination li a,
.pagination li span {
    padding: 8px 14px;
    border-radius: 6px;

    background: #eeeeee;
    color: #333;

    text-decoration: none;
    font-weight: 600;

    transition: background-color 0.2s ease, color 0.2s ease;
}

/*States*/
.pagination li a:hover {
    background: var(--color-link-hover);
    color: var(--color-title);
}

.pagination li span.current {
    background: var(--color-title);
    color: #f4efe7;
}

/*Responsive*/
@media (max-width: 768px) {
    .pagination li a,
    .pagination li span {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .pagination ul {
        gap: 6px;
    }
}

/* ==================================================
   SINGLE – LECTURE CONFORTABLE
================================================== */

/*Container*/
.single-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;

    font-size: 1.08rem;
    line-height: 1.75;
}

/*Paragraphes*/
.single-content p {
    margin-bottom: 1.6rem;
}

/*Titres*/
.single-content h2 { 
    margin: 3rem 0 1.2rem;
    font-size: 1.6rem;
    line-height: 1.4;
}

.single-content h3 { 
    margin: 2.2rem 0 1rem;
    font-size: 1.3rem;
}

/*Listes*/
.single-content ul,
.single-content ol {
    margin: 1.5rem 0 1.8rem 1.4rem;
}

.single-content li {
    margin-bottom: 0.6rem;
}

/*Blockquote*/
.single-content blockquote {
    margin: 2.5rem 0;
    padding: 1.2rem 1.5rem;

    border-left: 4px solid var(--color-link-hover);
    background: #f9f5f0;

    font-style: italic;
}

/*Hr*/
.single-content hr {
    margin: 3rem auto;
    border: none;

    height: 1px;
    width: 60%;
    background: #e5e5e5;
}

/* ==================================================
   HERO SECTION – CLEAN STABLE VERSION
================================================== */

.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    background-size: cover;
    background-position: 70% center;
    overflow: hidden;
}

/* ROW RESET PROPRE */
.hero-section .et_pb_row {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    justify-content: flex-start;
    align-items: stretch;
}

/* COLUMN → FIX IMPORTANT */
.hero-section .et_pb_column {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto; /* 👈 CENTRAGE PROPRE */
    padding: 0 6vw 10vh 6vw;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* OVERLAY */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.45) 35%,
        rgba(255,255,255,0.15) 60%,
        rgba(255,255,255,0) 80%
    );
}

/* TITRES */
.hero-section h1 {
    line-height: 1.15;
    font-size: clamp(22px, 2.2vw, 44px);
    letter-spacing: 0.5px;
    margin: 0;
}

.hero-section h2 {
    font-size: clamp(16px, 1.4vw, 24px);
    line-height: 1.3;
    margin: 0;
}

/* ==================================================
   HERO RESPONSIVE (1440px → 1280px)
================================================== */
@media (max-width: 1440px) {
    .hero-section h1 {
        font-size: 32px;
    }
}

@media (max-width: 1366px) {
    .hero-section h1 {
        font-size: 28px;
    }
}

@media (max-width: 1280px) {
    .hero-section h1 {
        font-size: 26px;
    }

    .hero-section .et_pb_column {
        padding-bottom: 5vh;
    }
}


/* Scroll button */
.hero-scroll-link {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-decoration: none;
}

.hero-scroll-link .scroll-down.et-pb-icon {
    font-family: 'ETmodules' !important;
    font-size: 32px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(244, 239, 231, 0.75);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.16);
    color: #f4efe7;
    transition: all 0.3s ease;
    animation: heroScrollBounce 1.8s infinite;
    will-change: transform;
}

.hero-scroll-link:hover .scroll-down.et-pb-icon {
    background: rgba(202, 168, 125, 0.9);
    border-color: var(--color-link-hover);
    color: #3f2021;
}

@keyframes heroScrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

html { scroll-behavior: smooth; }


/* ================================================== HERO MOBILE FULL SCREEN FIX ================================================== */ @media (max-width: 980px) { .hero-section { display: block; min-height: 100svh; /* full écran réel */ height: 100svh; overflow: hidden; /* empêche débordement section suivante */ background-position: 10% center; } .hero-section .et_pb_row { display: block; height: 100%; } .hero-section .et_pb_column { margin-left: 0; max-width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 0 6vw 10vh 6vw; /* ❌ IMPORTANT : on supprime le décalage qui casse tout */ transform: none; } .hero-section h1 { font-size: 22px; line-height: 1.2; } .hero-section h2 { font-size: 14px; } }



/* ==================================================
   MOBILE – PRESSE, ÉVÉNEMENTS & SINGLE
================================================== */
@media (max-width: 768px) {

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

    .presse-image {
        width: 100%;
        height: 180px;
        border-radius: 15px;
        overflow: hidden;
    }

    .single-content,
    .single-title,
    .single-meta,
    .archive-contenu {
        padding-left: 15px;
        padding-right: 15px;
    }

    .evenement-ligne {
        gap: 15px;
    }

    .evenement-affiche,
    .image-vertical {
        width: 110px;
        height: 155px;
    }

    .evenement-contenu h4 {
        font-size: 1.05em;
        line-height: 1.3;
    }

    .evenement-contenu {
        min-width: 0;
    }

    .logo_journal {
        max-width: 100px;
    }
}


/* ==================================================
BARRE DE RECHERCHE
================================================== */

#et_search_icon {
    color: #f4efe7 !important;
}

#et_search_icon:hover {
    color: var(--color-link-hover) !important;
}

.et_close_search_field,
.et-search-form input {
    color: #f4efe7 !important;
}


/* ==================================================
FIX DIVI IMAGE MOBILE
================================================== */
@media only screen and (max-width: 767px) {
    .et_pb_image_0 .et_pb_image_wrap img,
    .et_pb_image_1 .et_pb_image_wrap img {
        width: 100% !important;
    }
}


/* ==================================================
UTILITY CLASS
================================================== */
.u-padding {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ==================================================
TYPO PRESSE + ÉVÉNEMENTS (FIX DIVI ROBUSTE)
================================================== */

/* 1. Zone globale */
.archive-presse,
.archive-evenements {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
}

/* 2. Ligne (sécurité Divi) */
.archive-presse .archive-ligne,
.archive-evenements .archive-ligne {
    font-family: inherit;
}

/* 3. Contenu texte réel (IMPORTANT) */
.archive-presse .archive-contenu,
.archive-evenements .archive-contenu,
.archive-presse .archive-contenu *,
.archive-evenements .archive-contenu * {
    font-family: inherit !important;
	color: var(--color-text);}

/* 4. Extraits */
.archive-text,
.presse-extrait,
.evenement-extrait {
    font-size: 1.08rem;
    line-height: 1.6;
}

/* 5. Meta */
.archive-presse .journal,
.archive-evenements .journal {
    font-size: 15px;
    color: var(--color-text-light);
}

/* =========================================
FORCE TYPO PRESSE (anti-Divi)
========================================= */

.archive-presse,
.archive-presse * {
    font-family: "Inter", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}


/* =========================================
UNIFORMISATION CONTENU (Divi override)
========================================= */

.et_pb_row.single-content {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .et_pb_row.single-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================================
BASE CONTENEUR (PAGES + SINGLE)
========================================= */

.page .et_pb_row,
.single-content .et_pb_row {
    width: 100% !important;
    max-width: 720px;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 20px;
    padding-right: 20px;

    box-sizing: border-box;
}

/* Mobile */
@media (max-width: 768px) {
    .page .et_pb_row,
    .single-content .et_pb_row {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================================
CONTENEUR TEXTE SINGLE
========================================= */

.single-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;

    font-size: 1.08rem;
    line-height: 1.75;
}

/* Paragraphes */
.single-content p {
    margin-bottom: 1.6rem;
}


/* =========================================
TITRES (ALIGNEMENT GLOBAL)
========================================= */

.single-title {
    max-width: 720px;
    margin: 20px auto;
    padding: 0 20px 10px;
    box-sizing: border-box;
}


/* =========================================
IMAGES (ANTI DÉBORDEMENT GLOBAL)
========================================= */

.page img,
.single-content img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* sécurité Divi colonnes */
.page .et_pb_column,
.single-content .et_pb_column {
    overflow-x: hidden;
}



/* =========================================
Titre adapté Desktop ou MOBILE
========================================= */

/* Desktop */
.decalage-gauche h1 {
    text-transform: none;
}

/* Mobile */
@media (max-width: 767px) {
    .decalage-gauche h1 {
        text-transform: uppercase;
    }
}
