/*
 * ============================================================================
 * cloneV2 — Personnalisations CSS
 * ============================================================================
 * Chargé EN DERNIER après main.css — tous les overrides et améliorations ici.
 * ============================================================================
 */

/* ── Couleurs CSS Variables ─────────────────────────────────────────────────
   Décommenter pour personnaliser :
:root {
    --cv2-primary:   #1a73e8;
    --cv2-secondary: #34a853;
    --cv2-accent:    #fbbc04;
    --cv2-dark:      #1a1a2e;
}
*/

/* =============================================================================
   NAVIGATION : un seul effet hover cohérent
   Correction du doublon : avant, la couleur restait sombre (#1a1a2e)
   pendant que l'underline s'animait en bleu → 2 effets déconnectés.
   Fix : couleur + underline changent ensemble = 1 seul effet unifié.
   ============================================================================= */

.navbar-nav .nav-link:hover {
    color: #1a73e8;
    text-decoration: none;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    color: #1a73e8;
    font-weight: 600;
}

/* =============================================================================
   HERO : dégradé quand aucune image de fond n'est définie
   ============================================================================= */

.cv2-hero--gradient {
    background-image: linear-gradient(
        135deg,
        #0d1b35 0%,
        #1a2a50 40%,
        #1e4080 100%
    ) !important;
}

/* L'overlay est inutile sur un dégradé */
.cv2-hero--gradient .cv2-hero__overlay {
    opacity: 0 !important;
}

/* =============================================================================
   SECTION HERO : amélioration visuelle générale
   ============================================================================= */

.cv2-hero__title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.cv2-hero__subtitle {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   CARDS : placeholder d'image plus soigné (quand pas d'image)
   ============================================================================= */

.cv2-card__thumbnail {
    background: linear-gradient(
        135deg,
        rgba(26, 115, 232, 0.07) 0%,
        rgba(26, 115, 232, 0.13) 100%
    );
}

/* =============================================================================
   SERVICE CARDS : icône circulaire (compatibilité balise <p> Gutenberg)
   ============================================================================= */

.cv2-card--service .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #1a73e8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Reset des styles <p> de Gutenberg */
    padding: 0;
    line-height: 1;
}

.cv2-card--service:hover .card-icon {
    background: #1a73e8;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.35);
}

.cv2-card--service .card-icon .bi {
    line-height: 1;
}

/* =============================================================================
   SECTION TAG (étiquette pill au-dessus des titres de section)
   ============================================================================= */

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 50rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* =============================================================================
   SECTION CTA (fond dégradé bleu) : bouton ghost visible
   ============================================================================= */

.cv2-cta-section .wp-block-button__link {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50rem;
    padding: 0.875rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.cv2-cta-section .wp-block-button__link:hover {
    background: #fff;
    color: #1a73e8;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* =============================================================================
   STATS COUNTERS : nombres en dégradé
   ============================================================================= */

.cv2-counter .counter-number {
    background: linear-gradient(135deg, #1a73e8, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv2-stats-section,
.wp-block-group.cv2-stats-section {
    padding: 3.5rem 0;
}

/* =============================================================================
   FOOTER BOTTOM : texte copyright et crédits lisibles sur fond sombre
   ============================================================================= */

.footer-bottom {
    background: rgba(0, 0, 0, 0.22) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-block: 1.25rem;
}

.footer-bottom .footer-bottom__copy,
.footer-bottom .footer-bottom__credit,
.footer-bottom .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-bottom .footer-bottom__credit a {
    color: #1a73e8 !important;
    text-decoration: none;
}

.footer-bottom .footer-bottom__credit a:hover {
    color: #4d9ef7 !important;
}

.footer-bottom__legal a,
.footer-bottom .list-unstyled a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom__legal a:hover,
.footer-bottom .list-unstyled a:hover {
    color: #fff;
    text-decoration: none;
}

/* =============================================================================
   HEADER : correction du nom de classe sticky
   Le JS ajoute `.is-sticky` mais le template PHP ajoute `.site-header--sticky`
   → on s'assure que les deux fonctionnent
   ============================================================================= */

.site-header--sticky {
    /* Marqueur pour le JS — styles appliqués via .is-sticky */
}

/* =============================================================================
   BOUTONS : amélioration générale
   ============================================================================= */

.btn-cv2-primary,
.btn.btn-primary {
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.btn-cv2-primary:hover,
.btn.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.4);
}

/* =============================================================================
   SECTION HEADER : espacement et alignement
   ============================================================================= */

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

/* =============================================================================
   GLOBAL : petites améliorations visuelles
   ============================================================================= */

/* Suppression des underlines sur les liens des boutons Gutenberg */
.wp-block-button__link {
    text-decoration: none !important;
}

/* Amélioration du rendu des cartes service sans border */
.cv2-card--service {
    border: 1px solid rgba(26, 115, 232, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cv2-card--service:hover {
    border-color: rgba(26, 115, 232, 0.2);
    box-shadow: 0 1rem 3rem rgba(26, 115, 232, 0.12);
}

/* =============================================================================
   DESIGN ENHANCEMENTS v2 — Classic Theme
   ============================================================================= */

/* ── Scrollbar personnalisée ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f3f5; }
::-webkit-scrollbar-thumb { background: #1a73e8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1557b0; }

/* ── Sélection de texte ────────────────────────────────────────────────── */
::selection { background: rgba(26, 115, 232, 0.2); color: #1a1a2e; }

/* ── Hamburger animé (cv2-toggler) ─────────────────────────────────────── */
.cv2-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    width: 40px;
    height: 40px;
}
.cv2-toggler .toggler-icon {
    display: block;
    height: 2px;
    background: var(--cv2-text, #212529);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.cv2-toggler .toggler-icon:nth-child(1) { width: 24px; }
.cv2-toggler .toggler-icon:nth-child(2) { width: 20px; }
.cv2-toggler .toggler-icon:nth-child(3) { width: 14px; }
.cv2-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 24px; }
.cv2-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) { opacity: 0; width: 24px; }
.cv2-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 24px; }

/* ── Hero : formes flottantes ──────────────────────────────────────────── */
.cv2-hero__shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.cv2-hero__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}
.cv2-hero__shape--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #1a73e8, transparent);
    top: -150px; right: -100px;
    animation: cv2ShapeFloat 8s ease-in-out infinite;
}
.cv2-hero__shape--2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #34a853, transparent);
    bottom: 50px; left: -80px;
    animation: cv2ShapeFloat 10s ease-in-out infinite reverse;
}
.cv2-hero__shape--3 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, #fbbc04, transparent);
    top: 30%; left: 20%;
    opacity: 0.06;
    animation: cv2ShapeFloat 12s ease-in-out infinite 2s;
}
.cv2-hero__shape--4 {
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%; right: 15%;
    opacity: 0.05;
    animation: cv2ShapeFloat 7s ease-in-out infinite 1s;
}
@keyframes cv2ShapeFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Hero : tag avec point animé ───────────────────────────────────────── */
.cv2-hero__tag { display: inline-flex !important; align-items: center; gap: 0.5rem; }
.cv2-hero__tag-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34a853;
    flex-shrink: 0;
    animation: cv2Pulse 2s ease-in-out infinite;
}

/* ── Hero : barre de confiance ─────────────────────────────────────────── */
.cv2-hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: cv2FadeInUp 0.6s ease both;
    animation-delay: 0.5s;
}
.cv2-hero__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    line-height: 1.4;
}
.cv2-hero__trust-item strong { font-size: 1.125rem; font-weight: 700; color: #fff; }
.cv2-hero__trust-stars { color: #fbbc04; font-size: 0.875rem; letter-spacing: 1px; }
.cv2-hero__trust-sep { width: 1px; height: 32px; background: rgba(255, 255, 255, 0.2); }
@media (max-width: 575.98px) {
    .cv2-hero__trust { gap: 1.25rem; padding: 1rem 1.25rem; }
    .cv2-hero__trust-sep { display: none; }
}

/* ── Hero : wave bas ───────────────────────────────────────────────────── */
.cv2-hero__wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
    z-index: 3;
}
.cv2-hero__wave svg { display: block; width: 100%; }

/* ── Footer : wave haut ────────────────────────────────────────────────── */
.site-footer__wave { line-height: 0; }
.site-footer__wave svg { display: block; width: 100%; }

/* ── Footer : brand, about, contact ────────────────────────────────────── */
.footer-brand__name {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.footer-about {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 0;
}
.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    padding-block: 0.35rem;
}
.footer-contact li + li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-contact .bi { color: #1a73e8; font-size: 0.9rem; flex-shrink: 0; }
.footer-contact a { color: rgba(255, 255, 255, 0.65); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }

/* ── Footer : titres de colonnes ───────────────────────────────────────── */
.footer-col-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* ── Footer : listes de navigation ────────────────────────────────────── */
.footer-nav-list { margin: 0; padding: 0; list-style: none; }
.footer-nav-list li { padding-block: 0.325rem; }
.footer-nav-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-nav-list a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s, padding-left 0.2s;
}
.footer-nav-list a::before { content: "›"; color: #1a73e8; }
.footer-nav-list a:hover { color: #fff; padding-left: 0.2rem; }

/* ── Footer : newsletter ───────────────────────────────────────────────── */
.footer-newsletter__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.footer-newsletter__input-group {
    display: flex;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-newsletter__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #fff;
    outline: none;
    min-width: 0;
}
.footer-newsletter__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.footer-newsletter__input:focus { background: rgba(255, 255, 255, 0.12); }
.footer-newsletter__btn {
    background: #1a73e8;
    border: none;
    padding: 0 1rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.footer-newsletter__btn:hover { background: #1557b0; }

/* ── Cartes : overlay image au survol ──────────────────────────────────── */
.cv2-card__thumbnail a {
    position: relative;
    display: block;
    overflow: hidden;
}
.cv2-card__thumbnail a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0);
    transition: background 0.3s ease;
}
.cv2-card:hover .cv2-card__thumbnail a::after { background: rgba(26, 26, 46, 0.15); }

/* ── Cartes : badge catégorie sur image ────────────────────────────────── */
.cv2-card__thumbnail { position: relative; }
.cv2-card__thumbnail .cv2-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.625rem;
    border-radius: 50rem;
    background: #1a73e8;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.cv2-card__thumbnail .cv2-card__badge:hover { background: #1557b0; color: #fff; text-decoration: none; }

/* ── Cartes : footer bouton ─────────────────────────────────────────────── */
.cv2-card__footer {
    padding: 0.875rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafbfc;
    margin-top: auto;
}
.cv2-card__footer .btn { font-size: 0.875rem; justify-content: center; }
