/*
Theme Name: Insuffle v2 - Radical
Author: Antigravity
Description: Theme based on Insuffle HTML template.
Version: 1.1
*/

/* === GLOBAL & UTILS (Rotation fix: ensure no global transform on main containers) === */
body {
    color: #F8FAFC;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-family: 'Poppins', sans-serif;
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #02040a;
}

::-webkit-scrollbar-thumb {
    background: #1f3a8b;
    border-radius: 10px;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-glass {
    background: rgba(2, 4, 10, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 9999;
}

/* === POST-IT WALL === */
.fog-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.postit-wrapper {
    position: absolute;
}

.postit {
    position: absolute;
    background-color: #ffde59;
    color: #02040a;
    padding: 1.2rem;
    width: 210px;
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: pop-in 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    /* float-subtle removed */
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%);
    z-index: 10;
    animation-delay: inherit;
}

@keyframes pop-in {
    from {
        transform: scale(0.5) rotate(var(--rot));
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rot));
    }
}

.p-1 {
    top: 15%;
    left: 8%;
    --rot: -2deg;
    animation-delay: 0.1s;
}

.p-2 {
    top: 35%;
    left: 4%;
    --rot: 1deg;
    animation-delay: 0.3s;
}

.p-3 {
    top: 60%;
    left: 10%;
    --rot: -3deg;
    animation-delay: 0.5s;
}

.p-4 {
    bottom: 10%;
    left: 5%;
    --rot: 2deg;
    animation-delay: 0.7s;
}

.p-5 {
    top: 18%;
    right: 7%;
    --rot: 1deg;
    animation-delay: 0.2s;
}

.p-6 {
    top: 40%;
    right: 3%;
    --rot: -1deg;
    animation-delay: 0.4s;
}

.p-7 {
    top: 65%;
    right: 9%;
    --rot: 3deg;
    animation-delay: 0.6s;
}

.p-8 {
    bottom: 12%;
    right: 4%;
    --rot: -2deg;
    animation-delay: 0.8s;
}

@media (max-width: 1024px) {
    .postit {
        display: none;
    }
}

/* === RADAR SYSTEM (FIXED ANIMATION) === */
.radar-system {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: #080f1f;
    border: 1px solid rgba(31, 58, 139, 0.5);
    box-shadow: 0 0 100px -20px rgba(31, 58, 139, 0.4);
    overflow: visible;
    transform-origin: center center;
}

.radar-scan-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}

.radar-scan {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg, transparent 270deg,
            rgba(31, 58, 139, 0.1) 320deg,
            rgba(255, 222, 89, 0.6) 350deg,
            rgba(255, 255, 255, 0.8) 355deg,
            transparent 360deg);
    animation: radar-spin 3s linear infinite;
    z-index: 10;
}

.radar-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(31, 58, 139, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(31, 58, 139, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.radar-axis {
    position: absolute;
    background: rgba(31, 58, 139, 0.3);
    z-index: 0;
}

/* POINTS CARDINAUX (FIXED VISIBILITY) */
.c-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    z-index: 50;
    padding: 0.5rem;
    background: #080f1f;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: translate(var(--translateX, 0), var(--translateY, 0));
}

.c-point:hover {
    transform: translate(var(--translateX, 0), var(--translateY, 0)) scale(1.15);
    z-index: 60;
}

.c-badge {
    width: 54px;
    height: 54px;
    background: #1f3a8b;
    border: 2px solid #ffde59;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(31, 58, 139, 0.3);
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s;
}

/* POSITIONNEMENT FINAL DES POINTS CARDINAUX (Hors du cercle) */
.pos-n {
    top: -40px;
    left: 50%;
    --translateX: -50%;
    --translateY: 0;
}

.pos-s {
    bottom: -40px;
    left: 50%;
    --translateX: -50%;
    --translateY: 0;
}

.pos-e {
    right: -80px;
    top: 50%;
    --translateX: 0;
    --translateY: -50%;
}

.pos-w {
    left: -80px;
    top: 50%;
    --translateX: 0;
    --translateY: -50%;
}

@media (max-width: 640px) {
    .pos-n {
        top: -20px;
    }

    .pos-s {
        bottom: -20px;
    }

    .pos-e {
        right: -50px;
    }

    .pos-w {
        left: -50px;
    }
}

/* === ODCT STICKY STACK FIX === */
.odct-stack-container {
    min-height: 250vh;
}

.odct-card {
    position: sticky;
    padding: 2rem 3rem;
    margin-top: 5rem;
    border-radius: 0.25rem;
    transform: translateZ(0);
    width: 100%;
}

#phase-1 {
    top: 120px;
    z-index: 10;
}

#phase-2 {
    top: 160px;
    z-index: 20;
}

#phase-3 {
    top: 200px;
    z-index: 30;
}

#phase-4 {
    top: 240px;
    z-index: 40;
}

/* === PORTES FIXES & VERBATIMS === */
.door-card {
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background: #0c1629;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.door-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 20;
}

.door-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.door-card:hover::before {
    transform: scaleX(1);
}

.door-overlay {
    background: linear-gradient(to top, #02040a 10%, rgba(2, 4, 10, 0.95) 50%, rgba(2, 4, 10, 0.3) 100%);
}

.door-content-wrapper {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    padding-top: 0;
    overflow: hidden;
}

.door-card:hover .door-content-wrapper {
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1.5rem;
}

.door-content-visible {
    flex-grow: 1;
    padding-bottom: 2rem;
}

.verbatim-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}

/* === FINAL CTA MONOLITHE (Coherent with brand colors) === */
.cta-final {
    background-color: #0c1629;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid #1f3a8b;
    border-bottom: 4px solid #1f3a8b;
    margin-bottom: 0;
}

.cta-box {
    background: #02040a;
    color: #fff;
    padding: 4rem 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 4px solid #1f3a8b;
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.cta-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, transparent 50%, rgba(31, 58, 139, 0.05) 50%, transparent 100%), linear-gradient(90deg, transparent 50%, rgba(31, 58, 139, 0.05) 50%, transparent 100%);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: pattern-move 60s linear infinite;
}

.cta-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: #ffde59;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    /* animation: float 10s ease-in-out infinite; */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin 20s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    /* animation: float 6s ease-in-out infinite; */
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.animate-pulse-slow {
    /* animation: pulse-slow 4s ease-in-out infinite; */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

.animate-marquee-slow {
    animation: marquee 40s linear infinite;
}

/* === GUTENBERG BLOCK STYLES (Adapted for White Background in Blog) === */
.wp-block-button__link {
    background-color: #1f3a8b;
    color: #ffffff;
    border-radius: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button__link:hover {
    background-color: #ffde59;
    color: #02040a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 222, 89, 0.3);
}

.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #1f3a8b;
    /* Darker for white bg */
    color: #1f3a8b;
}

.is-style-outline .wp-block-button__link:hover {
    background-color: #1f3a8b;
    color: #ffffff;
}

.wp-block-quote {
    border-left: 4px solid #ffde59;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    /* Light gray background */
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #0f172a;
    /* Slate 900 for text */
    position: relative;
}

.wp-block-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    color: #ffde59;
    opacity: 0.5;
    font-family: serif;
    line-height: 1;
}

.wp-block-quote p {
    color: #0f172a;
    /* Slate 900 */
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 500;
}

.wp-block-quote cite {
    color: #64748b;
    font-style: normal;
    font-size: 0.875rem;
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-block-cover {
    border-radius: 0.5rem;
    overflow: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
    color: #ffffff;
}

.wp-block-separator {
    border-color: #e2e8f0;
}

/* Entry Content Typography (Dark on White - High Contrast) - ONLY for Single Posts */
/* =================================
   BLOG ARTICLE HEADINGS HIERARCHY
   H1 (40px) > H2 (32px) > H3 (24px) > H4 (20px)
   NO UPPERCASE - Normal sentence case
   ================================= */
.single-post .entry-content h1 {
    font-size: 2.5rem !important;
    /* 40px */
    font-weight: 800;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #02040a !important;
    line-height: 1.15;
    text-transform: none !important;
    letter-spacing: -0.02em;
}

.single-post .entry-content h2,
.single-post .entry-content h2.wp-block-heading {
    font-size: 1.875rem !important;
    /* 30px */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #02040a !important;
    line-height: 1.25;
    text-transform: none !important;
    letter-spacing: -0.01em;
}

.single-post .entry-content h3,
.single-post .entry-content h3.wp-block-heading {
    font-size: 1.5rem !important;
    /* 24px */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b !important;
    /* Slate 800 - slightly lighter than h1/h2 */
    line-height: 1.3;
    text-transform: none !important;
}

.single-post .entry-content h4,
.single-post .entry-content h4.wp-block-heading {
    font-size: 1.25rem !important;
    /* 20px */
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #334155 !important;
    /* Slate 700 */
    text-transform: none !important;
}

.single-post .entry-content h5,
.single-post .entry-content h6 {
    font-size: 1.125rem !important;
    /* 18px */
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #475569 !important;
    /* Slate 600 */
    text-transform: none !important;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #334155;
    /* Slate 700 - Dark Grey */
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #334155;
}

.entry-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.entry-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.entry-content strong {
    color: #02040a;
    font-weight: 700;
}

/* =================================
   BLOG ARTICLE LINKS
   Blue color for readability (not yellow!)
   ================================= */
.entry-content a {
    color: #1f3a8b;
    /* Brand Primary Blue */
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    /* Light blue underline */
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.entry-content a:hover {
    color: #1e40af;
    /* Darker blue on hover */
    text-decoration-color: #1f3a8b;
    background-color: #eff6ff;
    /* Very light blue bg */
    border-radius: 2px;
    padding: 0 2px;
    margin: 0 -2px;
}

/* Ensure links are never yellow in article content */
.single-post .entry-content a,
.single-post .entry-content p a,
.single-post .entry-content li a {
    color: #1f3a8b !important;
}

.single-post .entry-content a:hover {
    color: #1e40af !important;
    background-color: #eff6ff !important;
}

/* === UTILITIES === */
.text-brand-dark {
    color: #02040a !important;
}

.text-brand-primary {
    color: #1f3a8b !important;
}

.text-brand-primaryLight {
    color: #3b82f6 !important;
}

/* === EDITOR STYLES OVERRIDES === */
.editor-styles-wrapper {
    background-color: #ffffff !important;
    /* Force white background */
    padding: 2rem !important;
    /* Add some breathing room */
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6,
.editor-styles-wrapper p,
.editor-styles-wrapper li,
.editor-styles-wrapper blockquote {
    color: #02040a !important;
    /* Force dark text in editor */
}

.editor-styles-wrapper .wp-block-heading {
    color: #02040a !important;
}

.editor-styles-wrapper a {
    color: #1f3a8b !important;
}

/* 
Theme Name: Insuffle v2 - Radical (Legacy Support)
Description: Styles extracted from the previous theme to support existing content blocks and custom animations.
*/

/* --- BUTTONS --- */
.wp-block-button__link,
button,
.button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000;
    background-color: #ffeb00;
    /* Fond jaune */
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

.wp-block-button__link:hover,
button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #fff;
    color: #ffeb00;
    border: 2px solid #ffeb00;
    box-shadow: 5px 5px 0px #ffeb00;
}

.wp-block-button__link:active,
button:active,
.button:active,
input[type="button"]:active,
input[type="submit"]:active {
    background-color: #ffde00;
    box-shadow: none;
    transform: translateY(4px);
}

/* Ajustements pour WordPress */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(:hover) {
    color: #000;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #ffeb00;
    color: #ffeb00;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #ffeb00;
    color: #000;
}

/* --- TEXT ALIGNMENT --- */
p.has-text-align-center.has-large-font-size strong {
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Pour s'assurer que le paragraphe lui-même est bien centré */
p.has-text-align-center.has-large-font-size {
    text-align: center;
    width: 100%;
}

/* --- HEADER TITLES & MARK --- */
.header-titles .site-description,
.header-titles .screen-reader-text {
    font-weight: bold;
}

.header-titles mark {
    background-color: yellow;
    color: black;
}

mark {
    display: inline-block;
    transform: rotate(-2deg);
    /* Inclinaison de 3 degrés */
    padding: 0 2px;
    background-color: transparent;
}

mark::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.5em;
    z-index: -1;
    transform: skew(-10deg);
}

/* --- GALLERY --- */
.wp-block-gallery.has-nested-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    margin: 0;
    width: auto !important;
}

.wp-block-gallery.has-nested-images img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* --- BLOC CHIFFRES (Stats) --- */
.wp-block-group .bloc-chiffres {
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 10px;
}

.wp-block-group .bloc-chiffres:nth-child(even) {
    transform: rotate(2deg);
}

.wp-block-group .bloc-chiffres:hover {
    transform: rotate(0deg) scale(1.12);
    box-shadow: 0 0 25px rgba(100, 132, 174, 0.6);
    z-index: 1;
}

.wp-block-group .bloc-chiffres h3 {
    margin-top: 0;
}

.wp-block-group .bloc-chiffres p[style*="font-size:85px"] {
    margin: 20px 0;
    transition: color 0.3s ease;
}

.wp-block-group .bloc-chiffres:hover p[style*="font-size:85px"] {
    color: #6484ae;
}

/* --- ANIMATIONS (From JS injections) --- */
.animated-line {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.animated-line.visible {
    opacity: 1;
}

mark {
    background-color: yellow;
    transition: background-color 0.5s ease-in-out;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-down-text {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.rotating-text-container {
    display: block;
    height: 1.2em;
    overflow: hidden;
}

/* --- TWENTIG / GUTENBERG COMPATIBILITY HELPERS --- */
/* Basic resets for some specific classes found in the HTML */
.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.has-accent-background-color {
    background-color: #ffffff;
    /* Fallback based on provided CSS */
    color: #1f3a8b;
}

.has-subtle-background-color {
    background-color: #254abb;
    color: #ffffff;
}

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

.has-large-font-size {
    font-size: 1.5em;
}

/* Fix for columns stacking */
@media (max-width: 782px) {
    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 1em;
    }
}

/* 
Theme Name: Insuffle v2 - Radical (Plugin Overrides)
Description: Dedicated stylesheet for overriding and harmonizing third-party plugin styles with the theme's design system.
*/

/* =========================================
   1. CONTACT FORM 7 (CF7)
   ========================================= */

/* Layout & Spacing */
.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.5rem;
}

/* Inputs & Textareas - Harmonized with Theme */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.25rem;
    /* Tailwind rounded-sm */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #3b82f6;
    /* brand-primaryLight */
    background-color: rgba(255, 255, 255, 0.1);
}

/* Submit Button - Matches Theme Buttons */
.wpcf7 input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #1f3a8b;
    /* brand-primary */
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid #1f3a8b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.wpcf7 input[type="submit"]:hover {
    background-color: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Validation Messages */
.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    color: #ef4444;
    /* Tailwind red-500 */
    margin-top: 0.5rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 2rem 0 0;
    padding: 1rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: rgba(16, 185, 129, 0.1);
    /* Green tint */
    border-color: #10b981;
    color: #10b981;
}

.wpcf7 form.invalid .wpcf7-response-output {
    background-color: rgba(239, 68, 68, 0.1);
    /* Red tint */
    border-color: #ef4444;
    color: #ef4444;
}

/* =========================================
   2. HUBSPOT FORMS
   ========================================= */

/* Container */
.hbspt-form {
    margin: 2rem 0;
}

/* Inputs */
.hs-input {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 1rem !important;
    border-radius: 0.25rem !important;
    font-family: 'Poppins', sans-serif !important;
    box-sizing: border-box !important;
}

.hs-input:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
}

/* Labels */
.hs-form-field>label {
    color: #94a3b8 !important;
    /* brand-muted */
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Submit Button */
.hs-button {
    background-color: #1f3a8b !important;
    border: 1px solid #1f3a8b !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.25rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.hs-button:hover {
    background-color: transparent !important;
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Error Messages */
.hs-error-msgs label {
    color: #ef4444 !important;
    font-size: 0.875rem !important;
}

/* =========================================
   3. COMPLIANZ / COOKIE BANNER
   ========================================= */

/* Force dark theme compatibility */
.cmplz-cookiebanner {
    background-color: #0c1629 !important;
    /* brand-card */
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
    /* brand-muted */
}

.cmplz-cookiebanner .cmplz-title {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
}

.cmplz-cookiebanner .cmplz-btn {
    background-color: #1f3a8b !important;
    color: #ffffff !important;
    border-radius: 0.25rem !important;
    font-weight: 600 !important;
}

/* =========================================
   4. RANK MATH / BREADCRUMBS
   ========================================= */

.rank-math-breadcrumb {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.rank-math-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.rank-math-breadcrumb a:hover {
    color: #3b82f6;
}

.rank-math-breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* =========================================
   5. GENERAL UTILITIES
   ========================================= */

/* ReCAPTCHA Badge - often overlaps content */
.grecaptcha-badge {
    z-index: 9999;
}

/* Hide default WP search block button if it clashes */
.wp-block-search__button {
    background-color: #1f3a8b;
    color: white;
}

/* 
 * Insuffle v2 - Radical 1.1 - Custom Styles 
 * Extracted from "Perfect Page" Reference
 */

/* Grain Overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* Navbar & Menu Styles */
#navbar {
    background-color: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(12px);
}

.menu-item a {
    color: #F8FAFC;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 700;
}

.menu-item a:hover {
    color: #3b82f6;
}

#mobile-menu {
    background-color: #02040a;
}

/* Mobile Submenu Fallback */
#mobile-menu .sub-menu {
    padding-left: 20px;
    margin-top: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu .sub-menu a {
    font-size: 1rem;
    color: #94a3b8;
}

/* Desktop Submenu Hover Fix */
.group:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header Titles & Marks */
.header-titles .site-description,
.header-titles .screen-reader-text {
    font-weight: bold;
}

.header-titles mark,
mark {
    background-color: #f3f10f;
    color: black;
    transition: background-color 0.5s ease-in-out;
}

/* Animated Lines */
.animated-line {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.animated-line.visible {
    opacity: 1;
}

/* Custom Buttons (Yellow) */
.wp-block-button__link,
button.custom-btn,
.button.custom-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000;
    background-color: #ffeb00;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

.wp-block-button__link:hover,
button.custom-btn:hover,
.button.custom-btn:hover {
    background-color: #fff;
    color: #ffeb00;
    border: 2px solid #ffeb00;
    box-shadow: 5px 5px 0px #ffeb00;
}

.wp-block-button__link:active,
button.custom-btn:active,
.button.custom-btn:active {
    background-color: #ffde00;
    box-shadow: none;
    transform: translateY(4px);
}

/* WordPress Button Overrides */
.wp-block-button:not(.is-style-outline) .wp-block-button__link:not(:hover) {
    color: #000;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #ffeb00;
    color: #ffeb00;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #ffeb00;
    color: #000;
}

/* Expanding Cards (Columns) */
.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link {
    display: flex;
    justify-content: space-between;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column {
    transition: all 0.5s ease;
    width: 24%;
    transform-origin: center;
    overflow: hidden;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column:hover {
    width: 31.2%;
    transform: scale(1.1);
    z-index: 2;
    background-color: #5677A3;
    color: #FFFFFF;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column:hover * {
    color: #FFFFFF;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column.reduced-opacity {
    opacity: 0.5;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column .wp-block-media-text {
    display: none;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column:hover .wp-block-media-text {
    display: grid;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column:hover mark {
    background-color: #FFFFFF;
    color: #5677A3;
}

.wp-block-columns.alignfull.tw-cols-stack-md.tw-cols-card.tw-cols-card-shadow.tw-stretched-media.tw-stretched-link>.wp-block-column:hover .wp-block-media-text__media {
    display: none;
}

/* Emoji Background Animation - REMOVED */

/* Post-it Grid Styles */
#exemples .ateliers-container {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
    padding: 2rem !important;
    background: transparent !important;
}

#exemples .atelier-post-it {
    position: relative !important;
    width: 180px !important;
    height: 180px !important;
    padding: 15px !important;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    transform: rotate(var(--rotation)) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    z-index: 1 !important;
    text-decoration: none !important;
}

#exemples .atelier-post-it:nth-child(6n+1) {
    background-color: #FFFF99 !important;
    --rotation: 3deg;
}

#exemples .atelier-post-it:nth-child(6n+2) {
    background-color: #FF9999 !important;
    --rotation: -2deg;
}

#exemples .atelier-post-it:nth-child(6n+3) {
    background-color: #99FF99 !important;
    --rotation: 1deg;
}

#exemples .atelier-post-it:nth-child(6n+4) {
    background-color: #9999FF !important;
    --rotation: -1deg;
}

#exemples .atelier-post-it:nth-child(6n+5) {
    background-color: #FFCC99 !important;
    --rotation: 2deg;
}

#exemples .atelier-post-it:nth-child(6n+6) {
    background-color: #99FFFF !important;
    --rotation: -3deg;
}

#exemples .ateliers-container:hover .atelier-post-it:not(:hover) {
    filter: grayscale(50%) !important;
    opacity: 0.9 !important;
    transform: scale(0.95) rotate(var(--rotation)) !important;
}

#exemples .atelier-post-it:hover {
    transform: scale(2) rotate(0deg) !important;
    z-index: 100 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

#exemples .atelier-title {
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: black !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

#exemples .atelier-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    justify-content: center !important;
    margin-top: 8px !important;
}

#exemples .atelier-tag {
    font-size: 10px !important;
    color: #666 !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

/* Canvas Background */
.wp-block-group.alignfull.tw-bottom-shape-organic {
    position: relative;
    overflow: hidden;
}

#system-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.wp-block-group.alignfull.tw-bottom-shape-organic>* {
    position: relative;
    z-index: 1;
}

/* Media Text Hover Effects */
.wp-block-media-text.alignfull.has-media-on-the-right.is-stacked-on-mobile.is-image-fill.is-style-tw-shadow {
    transition: all 0.5s ease;
    transform-origin: center;
    overflow: hidden;
}

.wp-block-media-text.alignfull.has-media-on-the-right.is-stacked-on-mobile.is-image-fill.is-style-tw-shadow:hover {
    transform: scale(1.05);
    z-index: 2;
}

.wp-block-media-text__content {
    transition: background-color 0.5s ease;
}

.wp-block-media-text.alignfull.has-media-on-the-right.is-stacked-on-mobile.is-image-fill.is-style-tw-shadow:hover .wp-block-media-text__content {
    background-color: rgba(86, 119, 163, 0.1);
}

.wp-block-media-text__content mark {
    transition: background-color 0.5s ease;
}

.wp-block-media-text.alignfull.has-media-on-the-right.is-stacked-on-mobile.is-image-fill.is-style-tw-shadow:hover .wp-block-media-text__content mark {
    background-color: #FFD700;
}

.wp-block-media-text__content a {
    display: inline-block;
    background-color: #FFD700;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 5px 0;
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.wp-block-media-text__content a:hover {
    background-color: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 
Theme Name: Insuffle v2 - Radical Adapter
Description: Aggressive overrides to force legacy Gutenberg content into the Radical design system.
Strategy: CLEAN DARK RESET. Remove legacy backgrounds, enforce dark mode, use borders for structure.
*/

/* === COLORS & VARIABLES === */
:root {
    --radical-dark: #02040a;
    --radical-primary: #1f3a8b;
    --radical-accent: #ffde59;
    --radical-glass: rgba(255, 255, 255, 0.03);
    --radical-border: rgba(255, 255, 255, 0.1);
    --radical-text-main: #F8FAFC;
    --radical-text-muted: #94a3b8;
}

/* === GLOBAL RESET (Targeting .prose context) === */

/* 1. REMOVE BACKGROUNDS from legacy containers to avoid "Box in a Box" clutter */
.prose .has-white-background-color,
.prose .has-background[style*="ffffff"],
.prose .has-background[style*="white"],
.prose .has-accent-background-color,
.prose .has-primary-background-color,
.prose .has-subtle-background-color,
.prose .tw-cols-card .wp-block-column,
.prose .tw-cols-card-shadow .wp-block-column {
    background-color: transparent !important;
    /* Let the dark theme breathe */
    box-shadow: none !important;
    /* Remove old shadows */
    border: none !important;
    /* Remove old borders */
    padding: 0 !important;
    /* Reset padding if it causes layout issues */
}

/* 2. ADD STRUCTURE via Borders (Radical Style) */
/* Only add borders to specific "Card" columns to separate them subtly */
.prose .tw-cols-card .wp-block-column,
.prose .tw-cols-card-shadow .wp-block-column {
    border: 1px solid var(--radical-border) !important;
    border-radius: 0.5rem !important;
    padding: 2rem !important;
    /* Restore padding for cards */
    background-color: rgba(255, 255, 255, 0.02) !important;
    /* Extremely subtle tint */
    transition: all 0.3s ease !important;
}

.prose .tw-cols-card .wp-block-column:hover,
.prose .tw-cols-card-shadow .wp-block-column:hover {
    border-color: var(--radical-primary) !important;
    background-color: rgba(31, 58, 139, 0.1) !important;
    transform: translateY(-5px) !important;
}

/* 3. ENFORCE TEXT COLORS (White/Grey) */
/* Force ALL text inside these containers to be readable on dark background */
.prose .has-white-background-color *,
.prose .has-background *,
.prose .tw-cols-card .wp-block-column * {
    color: var(--radical-text-main) !important;
}

/* Headings -> White or Accent */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.prose .wp-block-heading {
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Specific Highlight Colors for Headings inside "Cards" */
.prose .tw-cols-card .wp-block-column h3,
.prose .has-accent-background-color h2,
.prose .has-primary-background-color h2 {
    color: var(--radical-accent) !important;
}

/* 4. BUTTONS (Clean & Consistent) */
.prose .wp-block-button__link,
.wp-block-button__link {
    background-color: var(--radical-primary) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.25rem !important;
    padding: 1rem 2rem !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    /* No hard shadows */
}

.prose .wp-block-button__link:hover,
.wp-block-button__link:hover {
    background-color: var(--radical-accent) !important;
    color: var(--radical-dark) !important;
    border-color: var(--radical-accent) !important;
    box-shadow: 0 0 20px rgba(255, 222, 89, 0.4) !important;
    /* Neon Glow */
}

/* 5. SEPARATORS & LINES */
.prose hr,
.wp-block-separator {
    background-color: var(--radical-border) !important;
    height: 1px !important;
    border: none !important;
    margin: 3rem 0 !important;
}

/* 6. LISTS (Custom Icons) */
.prose ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.prose ul li {
    position: relative !important;
    padding-left: 2rem !important;
    margin-bottom: 1rem !important;
    color: var(--radical-text-muted) !important;
}

/* Default bullet is a small dot or arrow */
.prose ul li::before {
    content: '•' !important;
    position: absolute !important;
    left: 0.5rem !important;
    color: var(--radical-primary) !important;
    font-weight: bold !important;
}

/* Specific list styles */
.prose ul.is-style-tw-arrow li::before {
    content: '→' !important;
    color: var(--radical-accent) !important;
}

.prose ul.is-style-tw-checkmark li::before {
    content: '✓' !important;
    color: var(--radical-primary) !important;
}

/* 7. MEDIA & IMAGES */
.prose figure img,
.prose .wp-block-image img {
    border-radius: 0.5rem !important;
    border: 1px solid var(--radical-border) !important;
}

/* Media Text Overlap -> Clean Dark Card */
.prose .wp-block-media-text.is-style-tw-overlap .wp-block-media-text__content {
    background-color: rgba(2, 4, 10, 0.9) !important;
    border: 1px solid var(--radical-border) !important;
    padding: 3rem !important;
    border-radius: 0.5rem !important;
}

/* 8. TABLES (Clean) */
.prose table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    border: 1px solid var(--radical-border) !important;
}

.prose th {
    background-color: rgba(31, 58, 139, 0.1) !important;
    color: var(--radical-accent) !important;
    padding: 1rem !important;
    text-align: left !important;
    border-bottom: 1px solid var(--radical-border) !important;
}

.prose td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--radical-border) !important;
    color: var(--radical-text-main) !important;
}

/* 9. LINKS */
.prose a:not(.wp-block-button__link) {
    color: var(--radical-accent) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 222, 89, 0.3) !important;
    transition: all 0.2s !important;
}

.prose a:not(.wp-block-button__link):hover {
    border-bottom-color: var(--radical-accent) !important;
    text-shadow: 0 0 10px rgba(255, 222, 89, 0.3) !important;
}

/* === EXCEPTION: Single Blog Posts (White Background) === */
/* Force dark text for standard blog posts which have a white content area */
.single-post .prose h1 {
    color: #02040a !important;
    font-size: 2.5rem !important;
    /* 40px */
    line-height: 1.1 !important;
}

.single-post .prose h2 {
    color: #02040a !important;
    font-size: 2.5rem !important;
    /* 40px */
    line-height: 1.2 !important;
    font-weight: 800 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    border-bottom: 2px solid #ffde59 !important;
    padding-bottom: 0.5rem !important;
    display: inline-block !important;
}

.single-post .prose h3 {
    color: #1f3a8b !important;
    /* Brand Primary */
    font-size: 1.75rem !important;
    /* 28px */
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
}

.single-post .prose h4 {
    color: #02040a !important;
    font-size: 1.25rem !important;
    /* 20px */
    font-weight: 600 !important;
    font-style: italic !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.single-post .prose .wp-block-heading {
    color: #02040a !important;
    /* Fallback if specific tag isn't targeted, though usually it is */
}

.single-post .prose p,
.single-post .prose li,
.single-post .prose strong {
    color: #334155 !important;
    /* Slate 700 */
}

/* === EXCEPTION: White Containers (Contact Form, etc.) === */
/* Ensure text is visible on explicitly white backgrounds */
.bg-white *,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4,
.bg-white h5,
.bg-white h6,
.bg-white p,
.bg-white li,
.bg-white label,
.bg-white input,
.bg-white textarea {
    color: #02040a !important;
    /* Brand Dark */
}