/*
Theme Name: CDKa
Theme URI: http://nsanalab.com/themes/cdka
Author: Mulopwe
Author URI: http://nsanalab.com/themes/cdka
Description: Thème de Caritas Développement Kananga — slider plein écran, domaines d'intervention, projets, chiffres clés et actualités, entièrement réglables dans Apparence > Personnaliser.
Version: 2.0
Requires at least: 5.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-logo, custom-menu, editor-style, featured-images, translation-ready
Text Domain: caritas
*/

/* TABLE DES MATIÈRES
 * 1.  Variables & base
 * 2.  Boutons
 * 3.  En-tête & navigation
 * 4.  Slider (hero)
 * 5.  Sections de l'accueil
 * 6.  Cartes d'articles
 * 7.  Pages intérieures
 * 8.  Barre latérale & widgets
 * 9.  Commentaires
 * 10. Pied de page
 * 11. WordPress core
 * 12. Animations
 * 13. Responsive
 */

/* 1. VARIABLES & BASE
 * ================================================ */
:root {
    --c-red: #d1121c;
    --c-red-dark: #a80d15;
    --c-red-soft: #fdecec;
    --c-ink: #1f2328;
    --c-text: #474d55;
    --c-muted: #7a828c;
    --c-line: #e6e8eb;
    --c-soft: #f4f4f5;
    --c-white: #fff;
    --c-footer: #1c1f23;
    --radius: 6px;
    --shadow: 0 2px 10px rgba(20, 24, 30, .08);
    --shadow-hover: 0 12px 28px rgba(20, 24, 30, .14);
    --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --header-h: 76px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--c-ink);
    font-weight: 700;
    line-height: 1.25;
}

a { color: var(--c-red); transition: color .2s ease; }
a:hover, a:focus { color: var(--c-red-dark); }

img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid rgba(209, 18, 28, .45); outline-offset: 2px; }

.skip-link:focus {
    position: fixed !important;
    top: 8px; left: 8px;
    z-index: 2000;
    background: var(--c-white);
    padding: 8px 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bg-soft { background: var(--c-soft); }

/* 2. BOUTONS
 * ================================================ */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 4px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn .fas { font-size: .7em; margin-left: .45em; vertical-align: .1em; transition: transform .2s ease; }
.btn:hover .fas { transform: translateX(3px); }

.btn-caritas {
    background: var(--c-red);
    border: 1px solid var(--c-red);
    color: var(--c-white);
    padding: .55rem 1.15rem;
    font-size: .92rem;
}
.btn-caritas:hover, .btn-caritas:focus {
    background: var(--c-red-dark);
    border-color: var(--c-red-dark);
    color: var(--c-white);
}
.btn-caritas.btn-sm { padding: .4rem .9rem; font-size: .85rem; }

.btn-light-solid {
    background: var(--c-white);
    border: 1px solid var(--c-white);
    color: var(--c-ink);
}
.btn-light-solid:hover, .btn-light-solid:focus {
    background: transparent;
    color: var(--c-white);
}

.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }

/* 3. EN-TÊTE & NAVIGATION
 * ================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    transition: box-shadow .25s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); }

.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }

.site-logo { display: inline-flex; align-items: center; text-decoration: none !important; }
.site-logo img { max-height: 56px; width: auto; }

/* Logotype texte (si aucun logo image) */
.site-logo--text { gap: 10px; }
.logo-mark {
    position: relative;
    width: 40px; height: 40px;
    flex: 0 0 40px;
}
.logo-mark::before, .logo-mark::after {
    content: "";
    position: absolute;
    background: var(--c-red);
    border-radius: 2px;
}
.logo-mark::before { left: 14px; top: 0; width: 12px; height: 40px; }
.logo-mark::after  { top: 14px; left: 0; height: 12px; width: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.75rem;
    color: var(--c-ink);
    letter-spacing: -.01em;
}
.logo-text small { font-size: .72rem; color: var(--c-muted); letter-spacing: .02em; }
.site-logo--light .logo-text strong { color: var(--c-white); }
.site-logo--light .logo-text small { color: rgba(255, 255, 255, .7); }

.site-header .navbar-nav .nav-link {
    position: relative;
    font-size: .92rem;
    font-weight: 600;
    color: var(--c-ink);
    padding: .5rem .85rem;
}
.site-header .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: .2rem;
    height: 2px;
    background: var(--c-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .active > .nav-link,
.site-header .navbar-nav .current-menu-item > .nav-link,
.site-header .navbar-nav .current_page_item > .nav-link,
.site-header .navbar-nav .current-menu-ancestor > .nav-link { color: var(--c-red); }
.site-header .navbar-nav .nav-link:hover::after,
.site-header .navbar-nav .active > .nav-link::after,
.site-header .navbar-nav .current-menu-item > .nav-link::after,
.site-header .navbar-nav .current_page_item > .nav-link::after,
.site-header .navbar-nav .current-menu-ancestor > .nav-link::after { transform: scaleX(1); }

.site-header .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--c-red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-hover);
    padding: .4rem 0;
    margin-top: 0;
}
.site-header .dropdown-item { font-size: .9rem; padding: .5rem 1.2rem; }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus,
.site-header .dropdown-item.active { background: var(--c-red-soft); color: var(--c-red); }

@media (min-width: 992px) {
    .site-header .dropdown:hover > .dropdown-menu { display: block; }
}

/* Bouton burger */
.navbar-toggler {
    border: 0;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.toggler-bar {
    display: block;
    width: 26px; height: 2px;
    background: var(--c-ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 4. SLIDER (HERO)
 * ================================================ */
.hero {
    position: relative;
    background: #2a1416;
    overflow: hidden;
}
.hero .carousel-item {
    height: clamp(480px, 78vh, 700px);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease-out;
}
.hero .carousel-item.active .hero-bg { transform: scale(1); }
.hero-bg--plain {
    background: radial-gradient(circle at 75% 30%, #e2343c 0%, var(--c-red) 35%, #6e0a10 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 12, .72) 0%, rgba(10, 10, 12, .45) 42%, rgba(10, 10, 12, .05) 75%),
        linear-gradient(0deg, rgba(10, 10, 12, .35) 0%, rgba(10, 10, 12, 0) 40%);
}
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px;
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--c-white);
    max-width: 680px;
    margin: 0 0 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-text {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, .92);
    max-width: 560px;
    margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Animation du texte à chaque diapositive */
.hero .carousel-item .hero-title,
.hero .carousel-item .hero-text,
.hero .carousel-item .hero-actions { opacity: 0; transform: translateY(24px); }
.hero .carousel-item.active .hero-title   { animation: heroUp .8s .15s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .carousel-item.active .hero-text    { animation: heroUp .8s .35s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero .carousel-item.active .hero-actions { animation: heroUp .8s .55s cubic-bezier(.2, .7, .2, 1) forwards; }

/* Fondu plus doux que le défaut Bootstrap */
.hero.carousel-fade .carousel-item { transition: opacity 1s ease; }
.hero.carousel-fade .active.carousel-item-left,
.hero.carousel-fade .active.carousel-item-right { transition: opacity 1s ease; }

/* Flèches */
.hero .carousel-control-prev,
.hero .carousel-control-next { width: 8%; min-width: 64px; opacity: 1; z-index: 4; }
.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    color: var(--c-white);
    font-size: 1rem;
    backdrop-filter: blur(4px);
    transition: background .2s ease, border-color .2s ease, opacity .2s ease;
    opacity: .75;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero .carousel-control-prev:hover .hero-arrow,
.hero .carousel-control-next:hover .hero-arrow { background: var(--c-red); border-color: var(--c-red); }

/* Points */
.hero .carousel-indicators {
    z-index: 4;
    bottom: 78px;
    justify-content: flex-start;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1140px;
}
.hero .carousel-indicators li {
    width: 28px; height: 4px;
    border: 0;
    border-radius: 2px;
    margin: 0 6px 0 0;
    background: rgba(255, 255, 255, .45);
    opacity: 1;
    transition: width .3s ease, background .3s ease;
}
.hero .carousel-indicators li.active { width: 48px; background: var(--c-red); }

/* Barre de progression */
.hero-progress {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    z-index: 5;
    background: transparent;
}
.hero-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--c-red);
    transform-origin: left;
    animation-name: heroProgress;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.hero.is-paused .hero-progress span { animation-play-state: paused; }

/* Bas en biais, comme sur la maquette */
.hero-slant {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 64px;
    background: var(--c-white);
    clip-path: polygon(0 100%, 100% 25%, 100% 100%);
    z-index: 3;
    pointer-events: none;
}

/* 5. SECTIONS DE L'ACCUEIL
 * ================================================ */
.home-section { padding: 56px 0; }
.home-about { padding-top: 32px; }

.section-title {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 1.6rem;
    position: relative;
    padding-bottom: .7rem;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 44px; height: 3px;
    background: var(--c-red);
    border-radius: 2px;
}

.about-text { max-width: 820px; font-size: 1.06rem; color: var(--c-text); margin-bottom: 1.2rem; }
.about-text p:last-child { margin-bottom: 0; }

/* Domaines */
.domain-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .9rem;
    height: 100%;
    min-height: 150px;
    padding: 1.6rem 1rem;
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-bottom: 3px solid transparent;
    color: var(--c-ink);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.domain-card:hover, a.domain-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--c-red);
    color: var(--c-ink);
}
.domain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--c-red-soft);
    color: var(--c-red);
    font-size: 1.7rem;
    transition: background .25s ease, color .25s ease;
}
a.domain-card:hover .domain-icon { background: var(--c-red); color: var(--c-white); }
.domain-label { font-weight: 600; font-size: .98rem; line-height: 1.3; }

/* Impact */
.impact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.6rem 1rem;
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}
.impact-number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    line-height: 1.1;
    color: var(--c-red);
    font-variant-numeric: tabular-nums;
}
.impact-label { margin-top: .35rem; font-weight: 600; color: var(--c-ink); }

/* Contenu facultatif de la page d'accueil */
.home-page-content { padding-top: 0; }

/* 6. CARTES D'ARTICLES
 * ================================================ */
.card-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--c-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-post-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--c-soft);
}
.card-post--news .card-post-media { aspect-ratio: 12 / 5; }
.card-post-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.card-post:hover .card-post-media img { transform: scale(1.05); }
.card-post-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9cdd2;
    font-size: 2rem;
}

.card-post-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 1.1rem 1.2rem 1.25rem;
}
.card-post-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; }
.card-post--news .card-post-title { font-size: .98rem; }
.card-post-title a { color: var(--c-ink); text-decoration: none; }
.card-post-title a:hover { color: var(--c-red); }
.card-post-date { font-size: .82rem; color: var(--c-muted); margin: 0 0 .9rem; }
.card-post-date .far { margin-right: .3rem; }
.card-post--news .card-post-date { margin-bottom: 0; }
.card-post-excerpt { font-size: .93rem; margin-bottom: 1rem; }
.card-post-body .btn { margin-top: auto; }

/* 7. PAGES INTÉRIEURES
 * ================================================ */
.page-banner {
    position: relative;
    padding: 46px 0 40px;
    background:
        linear-gradient(100deg, rgba(209, 18, 28, .96) 0%, rgba(150, 12, 20, .96) 100%);
    color: var(--c-white);
    overflow: hidden;
}
.page-banner::after {
    content: "";
    position: absolute;
    right: -60px; top: -60px;
    width: 260px; height: 260px;
    border: 40px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}
.page-banner-title {
    color: var(--c-white);
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    margin: 0 0 .5rem;
}
.page-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: .88rem;
}
.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, .85); }
.page-breadcrumb .breadcrumb-item a:hover { color: var(--c-white); }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); content: "›"; }

.page-body { padding-top: 48px; padding-bottom: 56px; }

.single-entry { margin-bottom: 2rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    font-size: .88rem;
    color: var(--c-muted);
    margin-bottom: 1.2rem;
}
.entry-meta i { color: var(--c-red); margin-right: .25rem; }
.entry-meta a { color: var(--c-muted); }
.entry-meta a:hover { color: var(--c-red); }
.entry-thumb { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }

.entry-content { font-size: 1.03rem; }
.entry-content h2 { font-size: 1.55rem; margin: 2rem 0 .8rem; }
.entry-content h3 { font-size: 1.3rem; margin: 1.6rem 0 .7rem; }
.entry-content blockquote {
    border-left: 4px solid var(--c-red);
    background: var(--c-soft);
    padding: 1rem 1.3rem;
    margin: 1.5rem 0;
    font-style: italic;
}
.entry-content table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: .5rem .75rem; }
.entry-content::after { content: ""; display: table; clear: both; }

.entry-tags { margin-top: 1.6rem; font-size: .9rem; }
.entry-tags i { color: var(--c-red); margin-right: .3rem; }
.entry-tags a {
    display: inline-block;
    background: var(--c-soft);
    color: var(--c-text);
    padding: .15rem .65rem;
    border-radius: 20px;
    margin: 0 .25rem .35rem 0;
    text-decoration: none;
}
.entry-tags a:hover { background: var(--c-red); color: var(--c-white); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--c-line);
    font-weight: 600;
    font-size: .92rem;
}
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav i { font-size: .75em; }

.archive-description {
    background: var(--c-soft);
    border-left: 4px solid var(--c-red);
    padding: 1rem 1.3rem;
    margin-bottom: 1.6rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.archive-description p:last-child { margin: 0; }

.pagination-wrap { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 .7rem;
    border-radius: 4px;
    background: var(--c-soft);
    color: var(--c-ink);
    font-weight: 600;
    text-decoration: none;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap a.page-numbers:hover { background: var(--c-red); color: var(--c-white); }

.empty-state { text-align: center; max-width: 560px; margin: 0 auto; padding: 1rem 0; }
.empty-state .search-form { margin: 1.4rem auto 0; max-width: 420px; }
.big-404 {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(5rem, 14vw, 8rem);
    line-height: 1;
    color: var(--c-red);
    opacity: .9;
}

/* Formulaire de recherche */
.search-form { display: flex; gap: .4rem; }
.search-form .form-control { height: 44px; border-color: var(--c-line); }
.search-form .form-control:focus { border-color: var(--c-red); box-shadow: 0 0 0 .2rem rgba(209, 18, 28, .15); }
.search-form .btn { height: 44px; padding: 0 1rem; }

/* 8. BARRE LATÉRALE & WIDGETS
 * ================================================ */
.sidebar { margin-top: 2rem; }
@media (min-width: 992px) { .sidebar { margin-top: 0; } }

.sidebar .widget {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.6rem;
}
.sidebar .widget .title,
.sidebar .widget .widget-title,
.sidebar .widget h2.wp-block-heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--c-soft);
    position: relative;
}
.sidebar .widget .title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 36px; height: 2px;
    background: var(--c-red);
}
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: .45rem 0; border-bottom: 1px dashed var(--c-line); font-size: .93rem; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget li a { color: var(--c-ink); }
.sidebar .widget li a:hover { color: var(--c-red); }

/* 9. COMMENTAIRES
 * ================================================ */
#comments { margin-top: 2.5rem; }
#comments h2, #comments h3, .comment-reply-title { font-size: 1.25rem; }
.commentlist { list-style: none; padding: 0; }
.commentlist .children { list-style: none; padding-left: 2rem; }
.commentlist .comment {
    background: var(--c-soft);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-author img { border-radius: 50%; margin-right: .6rem; vertical-align: middle; }
.comment-author .fn { font-weight: 700; color: var(--c-ink); }
.comment-author .date-and-time { font-size: .8rem; color: var(--c-muted); margin-left: .4rem; }
.comment-content { margin-top: .6rem; }
.comment .reply a { font-size: .85rem; font-weight: 600; }
.assistive-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); }
#respond .form-control:focus { border-color: var(--c-red); box-shadow: 0 0 0 .2rem rgba(209, 18, 28, .15); }
#respond input[type="submit"], #respond .submit {
    background: var(--c-red);
    border: 0;
    color: var(--c-white);
    padding: .6rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
#respond input[type="submit"]:hover { background: var(--c-red-dark); }

/* 10. PIED DE PAGE
 * ================================================ */
.site-footer {
    background: var(--c-footer);
    color: rgba(255, 255, 255, .72);
    font-size: .93rem;
    border-top: 4px solid var(--c-red);
}
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: var(--c-white); }

.footer-widgets { padding: 48px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-widgets .widget { flex: 1 1 220px; padding: 0 15px; margin-bottom: 2rem; }
.footer-widgets .widget .title { color: var(--c-white); font-size: 1rem; margin-bottom: 1rem; }
.footer-widgets ul { list-style: none; padding: 0; }

.footer-main { padding: 52px 0 16px; }
.footer-about { margin: 1.1rem 0 1.2rem; max-width: 420px; }
.footer-title {
    color: var(--c-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.1rem;
}
.footer-links, .footer-contact, .footer-social { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .footer-links .nav-link { padding: 0; color: rgba(255, 255, 255, .75); }
.footer-links a::before { content: "›"; color: var(--c-red); margin-right: .5rem; font-weight: 700; }
.footer-links a:hover { color: var(--c-white); padding-left: 3px; }

.footer-contact li { display: flex; gap: .75rem; margin-bottom: .75rem; }
.footer-contact i { color: var(--c-red); margin-top: .3rem; width: 16px; text-align: center; }

.footer-social { display: flex; gap: .5rem; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--c-white);
    transition: background .2s ease;
}
.footer-social a:hover { background: var(--c-red); }

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
}
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
.footer-bottom p { margin: 0; }
.footer-bottom strong { color: var(--c-white); }
.footer-bottom .credit { color: rgba(255, 255, 255, .45); }

.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 1000;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-red);
    color: var(--c-white) !important;
    box-shadow: 0 6px 16px rgba(209, 18, 28, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-red-dark); }

/* 11. WORDPRESS CORE
 * ================================================ */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignnone { margin: .3rem 0 1rem; }
.wp-caption { max-width: 100%; margin-bottom: 1rem; }
.wp-caption img { display: block; }
.wp-caption-text, .wp-element-caption, figcaption {
    font-size: .85rem;
    color: var(--c-muted);
    text-align: center;
    padding-top: .4rem;
}
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.gallery-item { margin: 0; }
.sticky .card-post-title a::before { content: "★ "; color: var(--c-red); }
.bypostauthor { }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.page-links { margin: 1.5rem 0; font-weight: 600; }

/* 12. ANIMATIONS
 * ================================================ */
@keyframes heroUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes heroProgress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.row > [class*="col-"]:nth-child(2) > .reveal { transition-delay: .08s; }
.row > [class*="col-"]:nth-child(3) > .reveal { transition-delay: .16s; }
.row > [class*="col-"]:nth-child(4) > .reveal { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .hero .carousel-item .hero-title,
    .hero .carousel-item .hero-text,
    .hero .carousel-item .hero-actions { opacity: 1; transform: none; }
    .hero-bg { transform: none; }
}

/* 13. RESPONSIVE
 * ================================================ */
@media (max-width: 991.98px) {
    :root { --header-h: 66px; }
    .site-logo img { max-height: 46px; }
    .logo-mark { width: 34px; height: 34px; flex-basis: 34px; }
    .logo-mark::before { left: 12px; width: 10px; height: 34px; }
    .logo-mark::after { top: 12px; height: 10px; width: 34px; }
    .logo-text strong { font-size: 1.5rem; }

    .site-header .navbar-collapse {
        border-top: 1px solid var(--c-line);
        margin-top: .5rem;
        padding: .5rem 0 1rem;
    }
    .site-header .navbar-nav .nav-link { padding: .7rem 0; border-bottom: 1px solid var(--c-soft); }
    .site-header .navbar-nav .nav-link::after { display: none; }
    .site-header .dropdown-menu { box-shadow: none; border-top: 0; padding-left: 1rem; }

    .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
    .home-section { padding: 44px 0; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
    .admin-bar .site-header { top: 0; }
}

@media (max-width: 575.98px) {
    body { font-size: 15px; }
    .hero .carousel-item { height: 520px; }
    .hero-content { padding-bottom: 80px; }
    .hero-overlay { background: linear-gradient(0deg, rgba(10, 10, 12, .8) 0%, rgba(10, 10, 12, .35) 100%); }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-slant { height: 36px; }
    .hero .carousel-indicators { bottom: 46px; }
    .domain-card { min-height: 130px; padding: 1.2rem .6rem; }
    .domain-icon { width: 54px; height: 54px; font-size: 1.4rem; }
    .domain-label { font-size: .88rem; }
    .impact-card { padding: 1.2rem .5rem; }
    .impact-label { font-size: .88rem; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

/* Correctifs : marges du menu en mobile, widgets en blocs */
@media (max-width: 991.98px) {
    .site-header .navbar > .container { padding-left: 15px; padding-right: 15px; }
}
.wp-block-search__button {
    background: var(--c-red);
    border: 0;
    color: var(--c-white);
    border-radius: 4px;
    font-weight: 600;
}
.wp-block-search__button:hover { background: var(--c-red-dark); }
.wp-block-search__input { border-color: var(--c-line); border-radius: 4px; }
.form-allowed-tags { display: none; }

/* Recherche dans l'en-tête
 * ================================================ */
.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
@media (min-width: 992px) { .header-actions { margin-left: .75rem; } }

.header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--c-soft);
    color: var(--c-ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.header-search-toggle:hover, .header-search-toggle[aria-expanded="true"] { background: var(--c-red); color: var(--c-white); }
.header-search-toggle .fa-times { display: none; }
.header-search-toggle[aria-expanded="true"] .fa-search { display: none; }
.header-search-toggle[aria-expanded="true"] .fa-times { display: inline-block; }

.header-search { background: var(--c-soft); border-top: 1px solid var(--c-line); }
.header-search .container { padding-top: 14px; padding-bottom: 14px; }
.header-search .search-form { max-width: 640px; margin-left: auto; }
.header-search .form-control { background: var(--c-white); }
@media (max-width: 991.98px) { .header-search .search-form { max-width: none; } }

/* Menu sur une seule ligne, plus serré sur les écrans moyens */
.site-header .navbar-nav .nav-link,
.logo-text strong, .logo-text small { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navbar-nav .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .85rem; }
    .site-header .navbar-nav .nav-link::after { left: .5rem; right: .5rem; }
}
