/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Thème enfant pour Hello Elementor
Author: [Ton nom ou Abigael Services]
Author URI: [Ton site ou rien]
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

/* RECAPTCHA V3 */
.grecaptcha-badge{
    display: none !important;
}

/* SEO */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}


/* ===============================================================
   ABIGAEL SERVICES – feuille maître (clair / nuit + alternance)
================================================================ */

/* ---------- 1. Design tokens --------------------------------- */
:root {
    /* Mode clair */
    /* surfaces & fonds */
    --c-bg: #f9fbfd;
    /* section 1,3,5… */
    --c-bg-alt: #eef2f7;
    /* section 2,4,6… */
    --c-surface: #ffffff;
    /* cartes, tableaux */

    /* texte & identités */
    --c-text: #18233a;
    --c-text-soft: #53607a;
    --c-primary: #005fa4;
    --c-accent: #00b5d6;

    /* divers */
    --radius: 14px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 22px rgba(0, 0, 0, .08);
    --fast: .18s cubic-bezier(.215, .61, .355, 1);

    --menu-bg: #EEF2F7;
    /* fond du panneau */
    --menu-text: #1a2f4d;
    /* textes + burger + soleil / lune */

    --wrap: clamp(960px, 84vw, 1180px);
}

/* Palette nuit */
html.dark {
    --c-bg: #0f1a2b;
    --c-bg-alt: #16243a;
    --c-surface: #1b2941;

    --c-text: #e5ecf8;
    --c-text-soft: #9fb1cc;
    --c-primary: #3a9bff;
    --c-accent: #2bc7e8;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 22px rgba(0, 0, 0, .35);
    --menu-bg: #0e1b2d;
    /* même teinte que --c-bg */
    --menu-text: #e4eaf4;
    /* textes + burger + icônes */
}


/* ---------- 2. Bases globales -------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
}

a {
    color: var(--c-accent);
    text-decoration: none;
}

a:hover {
    color: var(--c-accent);
}

/* ---------- 3. Section & alternance -------------------------- */
.section {
    padding: 40px 0;
    background: var(--c-bg);
}

.section:nth-of-type(even) {
    background: var(--c-bg-alt);
}

/* fine séparation (optionnelle) */
.section+.section {
    border-top: 1px solid rgba(0, 0, 0, .04);
}

html.dark .section+.section {
    border-top: 1px solid rgba(255, 255, 255, .07);
}

/* ---------- 4. Composants réutilisables ---------------------- */
.wrapper {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.text-center {
    text-align: center;
}

.title-lg {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 22px;
}

@media(max-width:600px) {
    .title-lg {
        font-size: 2rem;
        font-weight: 700;
        margin: 0 0 22px;
    }

}

.card {
    /* background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm); */
    padding: 28px 24px;
}

/* Bouton principal */
.btn-main {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    background: var(--c-primary);
    color: #fff;
    font-weight: 600;
    transition: background var(--fast);
}

.btn-main:hover {
    background: var(--c-accent);
}

/* ---------- 5. Grilles utilitaires --------------------------- */
.grid-4 {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* ---------- 6. Variables héritées (pour anciennes classes) --- */
:root {
    --lightGray: var(--c-bg-alt);
    /* remplace #f5f7fa   */
    --darkBlue: var(--c-text);
    /* remplace #1a2f4d   */
    --primary: var(--c-primary);
    /* remplace #0066b6   */
}

/* -----------------------------------------------------------------
   À partir d’ici, tes styles existants NE CHANGENT PAS
   sauf que toutes les couleurs #fff, #f5f7fa, #1a2f4d, #0066b6
   ont été converties en variables ci-dessus.
   ---------------------------------------------------------------- */

/* ===== HERO ==================================================== */
.hero-header {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100dvh;
    background: url('https://abigael.omarbelaid.fr/wp-content/uploads/2025/08/page-home-class.jpg') center/cover no-repeat;
    background-color: #0a1937;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 55, .42);
    z-index: 1;
}

html.dark .hero-header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 55, .62);
    z-index: 1;
}

.hero-header .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    max-width: 850px;
}

.hero-header h1 {
    font-size: 3.3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero-header h1 {
    font-size: clamp(1.6rem, 5vh, 2.4rem);
    margin-bottom: 16px;
  }
}

.hero-header p {
    font-size: 1.35rem;
    margin-bottom: 42px;
}

.hero-header .cta-btn {
    background: var(--c-accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 32px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background .18s;
}

.hero-header .cta-btn:hover {
    background: #0091b0;
}

@media(max-width:600px) {
    .hero-header {
        min-height: 80vh;
    }

    .hero-header h1 {
        font-size: 2rem;
    }

    .hero-header p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .hero-header .cta-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* ===== INTRO ==================================================== */
.intro-home {
    background: var(--c-bg);
}

.intro-home .lead {
    font-size: 1.15rem;
    color: var(--c-text-soft);
    max-width: 780px;
    margin: 0 auto;
}

.intro-home a {
    color: var(--c-text-soft);
}

/* CTA par défaut = style pages (pas hero) */
.cta-inner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    background: #0b1220;
    color: #ffffff;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.cta-inner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(10, 20, 40, .22);
}

.cta-inner-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(10, 20, 40, .18);
}

.cta-inner-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 181, 214, .35), 0 0 0 6px rgba(0, 0, 0, .25);
}

/* Mode nuit = fond blanc, texte sombre */
html.dark .cta-inner-btn {
    background: #ffffff;
    color: #0b1220;
}

html.dark .cta-inner-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
}

html.dark .cta-inner-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 181, 214, .45), 0 0 0 6px rgba(255, 255, 255, .35);
}

/* Le CTA du hero garde le bleu de la charte */
.hero-header .cta-inner-btn {
    background: var(--color-accent, #00b5d6);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 181, 214, .35);
}

.hero-header .cta-inner-btn:hover {
    box-shadow: 0 14px 34px rgba(0, 181, 214, .45);
}


/* ---------------------------------------------------------------
   GRILLE des 4 services
   --------------------------------------------------------------*/

.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}


.service-banners {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(2, 1fr);
}

/* mobile : une seule colonne */
@media(max-width:899px) {
    .service-banners {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------
CARD
--------------------------------------------------------------*/
.service-banner {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media(max-width:499px) {
    .service-banner {
        aspect-ratio: 4/3;
    }
}


.service-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .50);
    z-index: 1;
}

.service-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: #fff;
}

.service-banner-title {
    margin: 0 0 6px;
    font-size: 1.8rem;
    font-weight: 700;
}


@media(max-width:499px) {
    .service-banner-title {
        font-size: 1.5rem;
    }
}

.service-banner-desc {
    margin: 0 0 20px;
    line-height: 1.45;
}

/* “bouton” → simple lien + signe */
.service-banner-btn {
    align-self: flex-start;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    position: relative;
    padding-right: 22px;
    transition: opacity .3s var(--fast);
}

.service-banner-btn::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 1px;
    font-size: 1.4rem;
    line-height: 1;
    transition: transform .3s var(--fast);
}

.service-banner-btn:hover {
    opacity: .8;
}

.service-banner-btn:hover::after {
    transform: translateX(4px);
}

/* ===== AVANTAGES =============================================== */
.why-choose {
    background: var(--c-bg);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 42px;
}

.benefit-card, .price-card {
    background: var(--c-surface);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin: 14px 0 8px;
    color: var(--c-text);
}

.benefit-card p {
    font-size: 1.02rem;
    color: var(--c-text-soft);
}

/* (les autres blocs – process, tarifs, faq, etc. – conservent tes règles,
    leurs arrière-plans utilisent désormais var(--c-bg) ou var(--c-bg-alt)
    grâce à .section et aux variables d’alias)                  */

/* ======================= TABLE TARIFS ======================= */
.pricing-table .price-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-table .price-list li {
    margin: 0 0 4px;
}

.pricing-table .price-list.highlight li {
    color: var(--c-accent);
    font-weight: 700;
}

/* Mise en valeur des éléments .highlight */
.pricing-table .highlight {
    color: var(--c-accent);
    font-weight: 700;
}

.pricing-table .highlight strong {
    color: var(--c-accent);
    font-weight: 700;
}

/* Si c'est une liste mise en avant */
.pricing-table .price-list.highlight li {
    color: var(--c-accent);
    font-weight: 700;
}

/* Mode sombre */
html.dark .pricing-table .highlight,
html.dark .pricing-table .price-list.highlight li {
    color: var(--c-accent);
    font-size: 14px;
}


/* Mobile: tableau -> cartes empilées */
@media (max-width: 640px) {
    .pricing-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table tbody,
    .pricing-table tr,
    .pricing-table td {
        display: block;
        width: 100%;
    }

    .pricing-table tr {
        margin: 0 0 12px;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 12px;
        overflow: hidden;
        background: var(--c-bg-alt);
    }

    html.dark .pricing-table tr {
        border-color: rgba(255, 255, 255, .10);
    }

    .pricing-table td {
        border: none;
        border-top: 1px solid rgba(0, 0, 0, .06);
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 58% 1fr;
        /* étiquette + valeur */
        gap: 10px;
    }

    html.dark .pricing-table td {
        border-top-color: rgba(255, 255, 255, .08);
    }

    .pricing-table td:first-child {
        border-top: none;
        grid-template-columns: 1fr;
        /* plein largeur */
        background: transparent;
        font-weight: 700;
        font-size: 1.05rem;
    }

    /* Étiquette issue de data-label */
    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        opacity: .75;
    }

    /* Si la cellule contient une liste (gardiennage), elle prend toute la largeur de la colonne "valeur" */
    .pricing-table td>.price-list {
        grid-column: 2 / -1;
    }

    /* Uniformise la couleur de toutes les lignes de données (hors titre) */
    .pricing-table td[data-label] {
        background: rgba(0, 0, 0, 0.02);
        /* clair en mode light */
    }

    html.dark .pricing-table td[data-label] {
        background: rgba(255, 255, 255, 0.05);
        /* clair en mode dark */
    }

}

/* ---------------- SWITCH jour / nuit ------------------------ */
.theme-toggle {
    position: relative;
    z-index: 120;
    margin-left: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(165, 165, 165, .35) !important;
    backdrop-filter: blur(8px) saturate(1.4);
    cursor: pointer;
    transition: background .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.dark .theme-toggle {
    background: rgba(255, 255, 255, .15);
}

.theme-toggle svg {
    position: absolute;
    width: 22px;
    height: 22px;
    fill: var(--c-text) !important;
    transition: transform .5s, opacity .4s, fill .25s;
    color: var(--c-text);
}

.theme-toggle svg.moon {
    opacity: 0;
    transform: translateY(-12px);
}

html.dark .theme-toggle svg.moon {
    opacity: 1;
    transform: translateY(0);
}

html.dark .theme-toggle svg.sun {
    opacity: 0;
    transform: translateY(12px);
}

/* hover (même couleur dans les deux thèmes) */
.theme-toggle:hover {
    background: rgba(255, 255, 255, .55);
}

/* ===== Utilitaires hérités (plus sûrs) ======================== */
.no-scroll {
    overflow: hidden;
    height: 100%;
}

/* ---------------- FIN ---------------------------------------- */


/* --- Stepper ---------------------------------------------------- */
.stepper {
    counter-reset: s;
    margin: 56px auto 0;
    max-width: 680px;
    padding: 0;
}

.stepper .step {
    position: relative;
    padding-left: 72px;
    margin-bottom: 40px;
    list-style-type: none;
}

.stepper .step::before {
    /* cercle numéroté */
    counter-increment: s;
    content: counter(s);
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-weight: 700;
    border-radius: 50%;
    color: #fff;
    background: var(--c-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}

.stepper .step:not(:last-child)::after {
    /* trait vertical */
    content: "";
    position: absolute;
    left: 24px;
    top: 52px;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(to bottom,
            var(--c-accent) 0%,
            var(--c-accent) 60%,
            transparent 60%);
    opacity: .35;
}

.stepper h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700;
}

.stepper p {
    margin: 0;
    color: var(--c-text-soft);
}

.fact-grid {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
    /* nombre de colonnes = nombre de cartes qui tiennent,
     chaque carte min 280px, sinon elles prennent 1fr */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


@media (max-width: 1024px) {
    .fact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .fact-grid {
        grid-template-columns: 1fr;
    }
}

.fact {
    position: relative;
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: 16px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .6);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(20, 59, 97, .06);
    transition: transform .18s var(--te, cubic-bezier(.215, .61, .355, 1)), box-shadow .18s var(--te, cubic-bezier(.215, .61, .355, 1));
}

.fact:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(20, 59, 97, .10);
}

.icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--color-accent, #00b5d6);
    background: color-mix(in oklab, var(--color-accent, #00b5d6) 12%, transparent);
    margin-bottom: 10px;
}

.fact-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 6px 0 8px;
    color: var(--color-primary, #1a2f4d);
}

.fact p {
    margin: 0;
    color: var(--c-text, #27364a);
}

/* Dark mode (si tu utilises .dark sur <html>) */
html.dark .fact {
    background: rgba(18, 24, 38, .45);
    border-color: rgba(255, 255, 255, .12);
}

html.dark .fact-title {
    color: #e6edf7;
}

html.dark .fact p {
    color: #d4deef;
}

/* CTA aligné */
.cta-row {
    margin-top: clamp(40px, 2.5vw, 40px);
    text-align: center;
}


/* --- Aides grid ------------------------------------------------- */
.aides-list {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 50px;
}

.aide-item {
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px 24px 22px;
    transition: background .35s var(--fast), box-shadow .35s var(--fast);
}

html.dark .aide-item {
    background: var(--c-bg-alt);
}

.aide-item h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-accent);
}

.aide-item p {
    margin: 0;
    color: var(--c-text-soft);
}

/* ================================================================
   CARTE « Engagements éthiques »
   ===============================================================*/
.ethics-card {
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 720px;
    margin: 56px auto 0;
    padding: 46px 52px 36px;
    text-align: left;
    transition: background .35s var(--fast), box-shadow .35s var(--fast);
}

html.dark .ethics-card {
    background: var(--c-bg-alt);
}

/* ---------------------------------------------------------------
   Liste + coche circulaire adaptative
   --------------------------------------------------------------*/

.ethics-list {
    padding: 0;
}

.ethics-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    line-height: 1.6;
}

.ethics-list li::before {
    content: "";
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-accent);

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l3 3 5-5'/%3E%3C/svg%3E") center/70% 70% no-repeat;
    margin-top: 4px;
}

/* ---------------------------------------------------------------
   Lien “charte complète” aligné & transition couleur
   --------------------------------------------------------------*/
.ethics-card .lead {
    margin: 0;
    text-align: center;
}

.ethics-card a {
    color: var(--c-accent);
    transition: color .3s var(--fast);
}

.ethics-card a:hover,
.ethics-card a:focus-visible {
    color: var(--c-primary);
}

/* Petite touche responsive : réduit les paddings sur mobile */
@media(max-width:480px) {
    .ethics-card {
        padding: 36px 28px 30px;
    }
}


/* ------------------------------------------------------------------
   ACCORDÉON FAQ – clair & sombre
   -----------------------------------------------------------------*/
.accordion {
    max-width: 800px;
    margin: 48px auto 0;
}

.accordion-item {
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    overflow: hidden;
    /* masque le contenu pendant l’anim */
    transition: background .35s var(--fast), box-shadow .35s var(--fast);
}

.accordion-item {
    max-height: 120px;
    transition:
        /* on complète la transition */
        max-height .45s var(--fast),
        background .35s var(--fast),
        box-shadow .35s var(--fast);
}

/* question (summary) ------------------------------------------------*/
.accordion-item summary {
    list-style: none;
    /* on vire le triangle natif */
    cursor: pointer;
    padding: 22px 64px 22px 26px;
    /* place l’icône + le texte */
    position: relative;
    font-weight: 600;
    color: var(--c-text);
    transition: color .35s var(--fast);
}

.accordion-item summary::marker,
.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    /* icône + / - */
    content: '+';
    position: absolute;
    right: 28px;
    top: 50%;
    translate: 0 -50%;
    font-size: 26px;
    line-height: 1;
    color: var(--c-accent);
    transition: transform .35s var(--fast), rotate .35s var(--fast);
}

/* réponse -----------------------------------------------------------*/
.accordion-item p {
    padding: 0 26px 26px;
    color: var(--c-text-soft);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s var(--fast), transform .3s var(--fast);
}

/* état OUVERT -------------------------------------------------------*/
.accordion-item[open] {
    max-height: 555px;
    box-shadow: var(--shadow-md);
}

.accordion-item[open] summary::after {
    content: '–';
}

.accordion-item[open] p {
    opacity: 1;
    transform: none;
}

/* hover / focus pour accessibilité ---------------------------------*/
.accordion-item summary:hover,
.accordion-item summary:focus-visible {
    color: var(--c-accent);
    outline: none;
}

html.dark .accordion-item {
    background: var(--c-bg-alt);
}

/* ------------------------------------------------------------------
   Animation “slide” sans JS : on triche sur max-height 👇 
   -----------------------------------------------------------------*/
details.accordion-item>* {
    /* permet à summary de rester cliquable pendant la transi */
    position: relative;
}

@supports selector(:has(details)) {

    /* navigateurs récents : anim + fermeture automatique sans JS
     (si tu préfères du 100% JS, ignore cette partie) */
    .accordion-item {
        /* hauteur du summary */
        transition: max-height .45s var(--fast);
    }

    .accordion-item[open] {
        max-height: 400px;
        /* suffit pour le contenu */
        transition-timing-function: cubic-bezier(.33, .82, .46, 1.02);
    }
}

.contact-cta-home {
    background: var(--c-accent) !important;
    color: #fff;
    text-align: center;
}


/* 
 ██████╗ ██████╗ ███╗   ██╗████████╗ █████╗  ██████╗████████╗
██╔════╝██╔═══██╗████╗  ██║╚══██╔══╝██╔══██╗██╔════╝╚══██╔══╝
██║     ██║   ██║██╔██╗ ██║   ██║   ███████║██║        ██║   
██║     ██║   ██║██║╚██╗██║   ██║   ██╔══██║██║        ██║   
╚██████╗╚██████╔╝██║ ╚████║   ██║   ██║  ██║╚██████╗   ██║   
 ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝   ╚═╝   ╚═╝  ╚═╝ ╚═════╝   ╚═╝  
*/
/* ================================================================
   SECTION CONTACT – version haute lisibilité + labels flottants
   Collez ce bloc APRÈS vos variables (& avant les media-queries).
   ===============================================================*/

/* ----------------------------------------------------------------
   CONTENEUR & GRILLE
   ----------------------------------------------------------------*/
.contact-section {
    padding: 150px 6vw 84px 6vw;
    background: var(--c-bg);
    /* clair */
    color: var(--c-text);
}

html.dark .contact-section {
    background: #0c1424;
}

/* sombre + contraste */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 56px;
    max-width: 1280px;
    margin: auto;
}

/* ----------------------------------------------------------------
   COLONNE GAUCHE (INFO)
   ----------------------------------------------------------------*/
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    margin: 0 0 14px;
    font-size: 2.7rem;
    font-weight: 700;
    color: var(--c-accent);
}

html.dark .contact-title {
    color: var(--c-accent);
}

/* punchy de nuit */

.contact-lead {
    margin: 0 0 36px;
    color: var(--c-text-soft);
    line-height: 1.55;
}

/* liste coordonnées */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    font-size: 1.1rem;
    line-height: 1.45;
}

.ci {
    width: 32px;
    height: 32px;
    fill: var(--c-accent);
    flex: none;
}

.contact-list a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.contact-list a:hover {
    color: var(--c-accent);
    text-decoration: underline;
}

/* ----------------------------------------------------------------
   COLONNE DROITE (FORM)
   ----------------------------------------------------------------*/
.contact-form-card {
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
    padding: 50px 44px 15px;
    transition: background .35s var(--fast), box-shadow .35s var(--fast);
}

@media(max-width:499px) {
    .contact-form-card {
        padding: 50px 15px 46px;
    }
}

html.dark .contact-form-card {
    background: var(--c-bg-alt);
    box-shadow: 0 6px 28px rgba(0, 0, 0, .35);
}

.contact-form-card h2 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--c-accent);
}

html.dark .contact-form-card h2 {
    color: var(--c-accent);
}

.contact-form-card .contact-lead {
    margin: 0 0 32px;
    color: var(--c-text-soft);
}

/* ================================================================
   FIELD + LABEL (style simple, sans animation)
   ==============================================================*/
.fld {
    margin: 0 0 26px;
}

/* libellé au-dessus du champ */
.fld label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-text);
}

html.dark .fld label {
    color: var(--c-text);
}



/* input & textarea */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: none !important;
    border-radius: 6px;
    background: transparent;
    color: var(--c-text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .25s var(--fast);
}

.input-field:focus {
    border-color: var(--c-accent);
    outline: none;
}

html.dark .input-field {
    border-color: #526480;
}

textarea.input-field {
    min-height: 130px;
    resize: vertical;
}

/* ----------------------------------------------------------------
   FOND DES CHAMPS – CONTRASTE DOUX
   ----------------------------------------------------------------*/
/* mode clair : voile gris 4 % */
html:not(.dark) .input-field {
    background: rgba(0, 0, 0, .04);
}

/* mode sombre : voile blanc 5 % */
html.dark .input-field {
    background: rgba(255, 255, 255, .05);
}

/* effet au focus : bord déjà turquoise, on renforce légèrement le fond */
.input-field:focus {
    background: rgba(0, 0, 0, .06);
    /* clair */
}

html.dark .input-field:focus {
    background: rgba(255, 255, 255, .08);
    /* sombre */
}


/* ================================================================
   BOUTON
   ==============================================================*/
.contact-form-card input[type="submit"] {
    background: var(--c-accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 32px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background .18s;
    border: none;
    width: 50%;
    margin: 30px auto 0 auto;
    display: block;
}

.wpcf7-submit {
    border: 1px solid var(--c-accent);
    border-radius: 3px;
    color: var(--c-accent);
}

.wpcf7-submit:active,
.wpcf7-submit:focus,
.wpcf7-submit:hover {
    background-color:  var(--c-accent);
}

/* 
███████╗ ██████╗  ██████╗ ████████╗███████╗██████╗ 
██╔════╝██╔═══██╗██╔═══██╗╚══██╔══╝██╔════╝██╔══██╗
█████╗  ██║   ██║██║   ██║   ██║   █████╗  ██████╔╝
██╔══╝  ██║   ██║██║   ██║   ██║   ██╔══╝  ██╔══██╗
██║     ╚██████╔╝╚██████╔╝   ██║   ███████╗██║  ██║
╚═╝      ╚═════╝  ╚═════╝    ╚═╝   ╚══════╝╚═╝  ╚═╝
*/
.footer-as {
    background: var(--c-bg);
    color: var(--c-text);
    padding: clamp(48px, 6vw, 88px) 0 clamp(20px, 3vw, 40px);
    border-top: 1px solid color-mix(in oklab, var(--c-text) 8%, transparent);
}

/* Grille plus respirante : marque + liste */
.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(220px, .8fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Marque */
.footer-logo img {
    height: 52px;
    width: auto;
    display: block;
}

html.dark .footer-logo img {
    filter: invert(1) hue-rotate(180deg) brightness(1.4);
}

.footer-tagline {
    margin: 14px 0 18px;
    max-width: 48ch;
    color: var(--c-text-soft);
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: var(--c-text);
    text-decoration: none;
    opacity: .9;
}

.footer-link:hover {
    color: var(--c-accent);
    opacity: 1;
}

/* Colonne liste */
.footer-col h4 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--c-text);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: var(--c-text);
    text-decoration: none;
    opacity: .82;
}

.footer-list a:hover {
    color: var(--c-accent);
    opacity: 1;
}

/* Badges SAP (ligne dédiée, alignés à droite desktop / centrés mobile) */
.faq-sap {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
    margin: clamp(8px, 2vw, 10px) 0 0;
}

@media (max-width: 860px) {
    .faq-sap {
        justify-content: center;
        margin-top: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        display: inline-block;
        /* rétrécit à la taille de l'image */
        margin-inline: auto;
        /* centre l'élément */
    }

    .footer-logo img {
        display: block;
        margin: 0 auto;
        /* sécurité si le lien garde une largeur */
    }

    .footer-tagline {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 48ch;
        /* optionnel : meilleure lisibilité */
    }
}

.faq-sap img {
    height: 52px;
    width: auto;
    filter: saturate(.9) contrast(1.05);
    opacity: .9;
}

html.dark .faq-sap img {
    filter: brightness(1.08) saturate(.9) contrast(1.1);
    opacity: .95;
}

/* Barre basse : centrée, sobre */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: clamp(28px, 5vw, 54px);
    padding-top: clamp(14px, 2.5vw, 24px);
    border-top: 1px solid color-mix(in oklab, var(--c-text) 8%, transparent);
    color: var(--c-text-soft);
    font-size: .95rem;
}

.footer-bottom .footer-copy {
    opacity: .88;
}

/* Accessibilité focus */
.footer-as a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 45%, transparent);
    border-radius: 8px;
}


/* 
██╗  ██╗ ██████╗ ██╗  ██╗
██║  ██║██╔═████╗██║  ██║
███████║██║██╔██║███████║
╚════██║████╔╝██║╚════██║
     ██║╚██████╔╝     ██║
     ╚═╝ ╚═════╝      ╚═╝
*/

/* ===== 404 illustrée (full-height) ===== */
.page-404-illustrated .nf-hero {
    min-height: 100vh;
    /* occupe au moins la hauteur du viewport */
    display: flex;
    align-items: center;
    /* centrage vertical */
    background: var(--c-bg);
    padding: clamp(40px, 8vh, 80px) 0;
}

.nf-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 46px;
}

@media(max-width: 900px) {
    .nf-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

}

.nf-code {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin: 0;
    color: var(--c-accent);
}

.nf-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    margin: 10px 0;
    color: var(--c-text);
}

.nf-desc {
    color: var(--c-text-soft);
    margin: 0 0 26px;
    max-width: 560px;
}

.nf-btn {
    padding: 13px 28px;
    font-size: 1.05rem;
    background: var(--c-accent);
}

.nf-btn:hover {
    color: #FFFFFF;
    background: var(--c-accent);
}

/* léger fond à motifs façon “hero” comme ta charte */
.page-404-illustrated .nf-hero {
    background:
        radial-gradient(1100px 520px at 10% -10%, rgba(0, 0, 0, .04), transparent 55%),
        radial-gradient(1100px 520px at 110% 110%, rgba(0, 0, 0, .04), transparent 55%),
        var(--c-bg);
}

html.dark .page-404-illustrated .nf-hero {
    background:
        radial-gradient(1100px 520px at 10% -10%, rgba(255, 255, 255, .05), transparent 55%),
        radial-gradient(1100px 520px at 110% 110%, rgba(255, 255, 255, .05), transparent 55%),
        var(--c-bg);
}


/* ################## CF7 ################## */
.wpcf7-response-output {
    background: linear-gradient(135deg, rgba(0, 181, 214, 0.12), rgba(26, 47, 77, 0.08));
    border: none !important;
    color: #1a2f4d;
    padding: 14px 18px !important;
    border-radius: 10px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(26, 47, 77, 0.08);
    animation: fadeInUp 0.5s ease-out;
}

/* Animation douce */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}