﻿/* ===============================
   Thèmes (variables)
=================================*/
:root[data-theme="light"] {
    --bg: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    --text: #0f172a;
    --muted: #64748b;
    --card: #f8fafc;
    --border: #e2e8f0;
    --primary: #4f46e5;
    --primary-contrast: #ffffff;
    --primary-hover: #4338ca;
    --ring: #a5b4fc;
    --console-top: #f8fafc;
    --console-bottom: #e2e8f0;
    --console-text: #334155; /* slate-700 */
    --console-caret: #6366f1;
    --grad-from: #6366f1; /* indigo-500 */
    --grad-to: #9333ea; /* violet-600 */
}

:root[data-theme="dark"] {
    --bg: #0b1220;
    --text: #e5e7eb;
    --muted: #a3a7b3;
    --card: #121a2b;
    --border: #23324d;
    --primary: #7c3aed;
    --primary-contrast: #ffffff;
    --primary-hover: #6366f1;
    --ring: #8b5cf6;
    --console-top: #111827; /* near-slate-900 */
    --console-bottom: #0b1220; /* ton bg */
    --console-text: #c7d2fe; /* indigo-200 */
    --console-caret: #a5b4fc;
    --grad-from: #7c3aed; /* violet-600+ */
    --grad-to: #a78bfa; /* violet-300/400 */
}

/* ===============================
   Base
=================================*/
html, body {
    height: 100%
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, Segoe UI, Roboto, Inter, Arial, sans-serif;
    line-height: 1.55;
    transition: background .2s ease, color .2s ease;
}


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

    a:hover {
        text-decoration: underline
    }

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 .5rem
}

p {
    margin: .5rem 0 0;
    color: var(--muted)
}

/* ===============================
   Layout / spacing
=================================*/
:root {
    --section-gap: clamp(1.8rem, 4vw, 3rem);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section {
    margin-block: 3rem;
}
/* espace par défaut pour sections "libres" */

/* Le contenu principal : rythme vertical régulier */
.site-main {
    background: radial-gradient(1200px 500px at 50% -180px, rgba(99,102,241,.12), transparent 60%);
}
/* Plus d'espace avant le titre "What I do" */
.container.appear-delay:first-of-type {
    margin-top: 13rem; /* ou plus selon ton goût */
}
article.content {
    display: grid;
    gap: var(--section-gap);
    padding-block: var(--section-gap);
}

.content > section {
    margin-block: 3rem;
}


/* ne touche pas au centrage horizontal (.container) */
.hero {
    margin-top: var(--section-gap);
}
/* souffle sous la top bar */

/* ===============================
   Top bar (navbar horizontale)
=================================*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030 !important;
    /*background: linear-gradient(180deg, rgba(2,6,23,.85), rgba(2,6,23,.65));*/
    backdrop-filter: blur(10px);
    /*border-bottom: 1px solid var(--border);*/
}
/* Navbar en mode clair */
:root[data-theme="light"] .site-header {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-bottom: 1px solid var(--border);
}

/* Navbar en mode sombre */
:root[data-theme="dark"] .site-header {
    background: linear-gradient(180deg, rgba(2,6,23,0.85), rgba(2,6,23,0.65));
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
}

.brand {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--text);
    text-decoration: none;
}

    .brand:hover {
        opacity: .85;
    }

.main-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    opacity: .8;
    text-decoration: none;
    font-weight: 600;
}

    .nav-link:hover {
        opacity: 1;
        text-decoration: none;
    }

.header-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

    .header-actions .lang {
        width: auto;
    }

/* ===============================
   Hero
=================================*/
.hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
}

.hero__text .headline {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    margin-bottom: .75rem;
    color: var(--text);
}

.subhead {
    font-size: 1.05rem;
    color: var(--muted);
}

.cta-row {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badges {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--card);
    border: 1px solid var(--border);
    padding: .35rem .6rem;
    border-radius: .5rem;
    font-size: .85rem;
    color: var(--muted);
}

.hero__visual {
    display: flex;
    justify-content: center;
}

.device-card {
    width: 320px;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--card);
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.device-bar {
    height: 10px;
    width: 40%;
    border-radius: 999px;
    background: var(--border);
    margin: 0 auto 10px;
}

.device-body {
    height: 200px;
    border-radius: .75rem;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.02), rgba(255,255,255,.06));
}

/* ===============================
   Grilles / cartes / boutons
=================================*/
/* Grid de 3 colonnes */
/* ===============================
   Grid des cards
=================================*/
.grid3 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

/* ===============================
   Card de service
=================================*/
.card {
    background: color-mix(in oklab, var(--card) 95%, transparent);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    transition: transform .35s ease, box-shadow .35s ease, opacity .6s ease, translate .6s ease;
    /* visibles par défaut (fallback si JS off) */
    opacity: 1;
    transform: translateY(0);
}

    /* Animation quand JS ajoute la classe */
    .card.hidden {
        opacity: 0;
        transform: translateY(30px);
    }

    .card.animate {
        opacity: 1;
        transform: translateY(0);
    }

    /* Effet hover */
    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0,0,0,.25);
    }

/* ===============================
   Icônes
=================================*/
.ic-lg {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform .35s ease;
}

.card:hover .ic-lg {
    transform: scale(1.1) rotate(-3deg);
}
/* ===== grid existante OK ===== */

/* ===== Card 2 – look moderne, visible par défaut ===== */
.card2 {
    position: relative;
    border-radius: 16px;
    padding: 24px 20px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--card) 95%, transparent), color-mix(in oklab, var(--card) 85%, transparent)) border-box;
    border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
    overflow: hidden;
    /* animation d’entrée sans JS */
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn .6s cubic-bezier(.2,.8,.2,1) forwards;
}

    /* décalage d’entrée pour les 3 premières */
    .card2:nth-child(1) {
        animation-delay: .05s;
    }

    .card2:nth-child(2) {
        animation-delay: .15s;
    }

    .card2:nth-child(3) {
        animation-delay: .25s;
    }

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

/* anneau dégradé subtil au survol via pseudo-élément */
.card2::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    pointer-events: none;
    background: linear-gradient(135deg, #00e5ff33, #9333ea33);
    opacity: 0;
    transition: opacity .35s ease;
}

.card2:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,.28);
    filter: saturate(1.05);
}

    .card2:hover::after {
        opacity: 1;
    }

/* ===== Icône dans une pastille dégradée ===== */
.card2-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: grid;
    place-items: center;
    font-size: 28px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #9333ea);
    box-shadow: 0 6px 16px rgba(99,102,241,.35);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

.card2:hover .card2-icon {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 10px 24px rgba(147,51,234,.35);
    filter: brightness(1.06);
}

/* ===== Titres & textes ===== */
.card2 h3 {
    margin: 6px 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--text);
}

.card2 p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: .97rem;
}

/* ===== Variations light/dark (optionnel : renforce le contraste) ===== */
:root[data-theme="light"] .card2 {
    background: linear-gradient(180deg, color-mix(in oklab, var(--card) 98%, transparent), color-mix(in oklab, var(--card) 92%, transparent)) border-box;
    box-shadow: 0 6px 14px rgba(10,10,30,.06);
}

    :root[data-theme="light"] .card2:hover {
        box-shadow: 0 18px 36px rgba(10,10,30,.12);
    }
/*Modal*/
.modal {
    --bs-modal-margin: 5rem; 
}
/* accessibilité: si l’utilisateur préfère moins d’animations */
@media (prefers-reduced-motion: reduce) {
    .card2, .card2::after, .card2-icon {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

.card2-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .card2-link:hover {
        color: var(--primary-contrast);
        transform: translateX(4px);
    }

/* ----- Variante media ----- */
.card2--media {
    padding: 0; /* l'image prend le haut, on remet un body */
    overflow: hidden;
}

.card2-media {
    position: relative;
    aspect-ratio: 16/9; /* ratio propre, change en 4/3 si tu préfères */
    overflow: hidden;
}

    .card2-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        transition: transform .6s ease, filter .6s ease;
    }

    /* reflet léger au hover */
    .card2-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 100%);
        transform: translateX(-120%) skewX(-15deg);
        transition: transform .7s ease;
        pointer-events: none;
    }

.card2:hover .card2-media img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.02);
}

.card2:hover .card2-media::after {
    transform: translateX(120%) skewX(-15deg);
}

/* corps de carte */
.card2-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

    .card2-body h3 {
        margin: .2rem 0 .45rem;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--text);
    }

    .card2-body p {
        margin: 0;
        color: var(--muted);
        line-height: 1.5;
        font-size: .95rem;
    }

/* lien */
.card2-link {
    display: inline-block;
    margin-top: .8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: transform .25s ease, color .25s ease;
}

    .card2-link:hover {
        transform: translateX(4px);
        color: var(--primary-contrast);
    }

/* accessibilité – réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
    .card2-media img,
    .card2-media::after,
    .card2,
    .card2-link {
        transition: none !important;
        transform: none !important;
    }
}
.card2-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: .5rem;
    backdrop-filter: blur(4px);
}
/* ===============================
   Titres & textes
=================================*/
.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .6rem;
    color: var(--text);
}

.card p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.45;
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1.1rem;
    border-radius: .7rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-contrast,#fff);
}

    .btn-primary:hover {
        filter: brightness(1.07);
    }

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

/* ===============================
   Animations
=================================*/
.hover-lift {
    transition: transform .18s ease, box-shadow .18s ease;
}

    .hover-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(0,0,0,.25);
    }

.floaty {
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.shimmer {
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 200% 0
    }
}

.appear {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn .5s ease-out .05s forwards;
}

.appear-delay {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn .6s ease-out .18s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: none
    }
}

/* ===============================
   Titres de section
=================================*/
.section-title {
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

/* === Titres en dégradé façon Bolt === */
/*.gradient-title {
    background: linear-gradient(90deg, #6366f1, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}*/
.big-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.gradient-title {
    background: linear-gradient(90deg, #6366f1, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* === Bouton gradient animé === */
/*.btn-gradient {
    background: linear-gradient(90deg, #6366f1, #9333ea);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-gradient:hover {
        filter: brightness(1.05);
    }

    .btn-gradient::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
        transform: skewX(-20deg);
        z-index: -1;
        transition: left 0.5s ease;
    }

    .btn-gradient:hover::before {
        left: 100%;
    }*/
/* Bouton gradient avec léger reflet au hover */
.btn-gradient {
    background: linear-gradient(90deg, #6366f1, #9333ea);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

    .btn-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        left: -100%;
        background: linear-gradient(90deg, rgba(255,255,255,.18), transparent);
        transform: skewX(-20deg);
        transition: left .5s ease;
        z-index: -1;
    }

    .btn-gradient:hover::before {
        left: 100%;
    }

/* Image dans la device card */
.device-screen {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: .75rem;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 92%, transparent);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
 /*Device Slider*/
.device-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: .75rem;
}

.device-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

    .device-slide.active {
        opacity: 1;
    }

/* --- Brand (logo + titre) --- */
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.logo {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--ring);
    stroke-width: 1.6;
}

.brand span {
    font-weight: 800;
    letter-spacing: .2px;
}

/* --- Chips langue --- */
.chip {
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 88%, transparent);
    color: var(--text);
    padding: .4rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter .15s ease, border-color .15s ease, background .15s ease;
}

    .chip:hover {
        filter: brightness(1.05);
        border-color: color-mix(in oklab, var(--border) 70%, var(--text) 30%);
    }

.chip-active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: transparent;
}

/* --- Bouton thème rond --- */
.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 88%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .1s ease, filter .15s ease, border-color .15s ease;
}

    .icon-btn:hover {
        filter: brightness(1.05);
    }

    .icon-btn:active {
        transform: scale(.96);
    }

.icon {
    width: 18px;
    height: 18px;
    fill: var(--text);
    stroke: var(--text);
    stroke-width: 1.2;
}

/* ---- Code demo (faux écran) ---- */
.code-demo {
    margin: 1.2rem 0 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 90%, transparent);
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    overflow: hidden;
}

.code-demo__top {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 92%, transparent);
}

.code-demo__screen {
    position: relative;
    /* hauteur FIXE + scroll interne */
    min-height: 220px;
    max-height: 220px;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--console-text);
    background: linear-gradient(180deg, var(--console-top), var(--console-bottom));
    /* pour un scroll doux et propre */
    scrollbar-width: thin;
}

    .code-demo__screen code {
        white-space: pre; /* évite le wrap -> la hauteur ne bouge plus */
        display: block;
    }

.caret {
    position: absolute;
    width: 8px;
    height: 1.15em;
    background: var(--console-caret);
    animation: blink 1s steps(1,end) infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

/* ---- Icones plus grandes ---- */
.ic-lg {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: .5rem;
    display: inline-block;
}

/* --- Dots (pastilles) --- */
.dot {
    width: .7rem;
    height: .7rem;
    border-radius: 999px;
    display: inline-block;
    opacity: .9
}

    .dot.red {
        background: #ff6b6b
    }

    .dot.yellow {
        background: #f3c969
    }

    .dot.green {
        background: #26c281
    }

/* --- Titre + console côte à côte --- */
.services-head {
    display: grid;
    grid-template-columns: 1fr 2.2fr; /* titre / console */
    align-items: start;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width:900px) {
    .services-head {
        grid-template-columns: 1fr;
    }
}

/* --- Console (les variables --console-* ont déjà été ajoutées précédemment) --- */
.code-demo__screen {
    min-height: 220px;
    max-height: 220px;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--console-text);
    background: linear-gradient(180deg, var(--console-top), var(--console-bottom));
    scrollbar-width: thin;
}

    .code-demo__screen code {
        white-space: pre;
        display: block;
    }

/* --- Mise en couleurs type IDE (ultra-légère) --- */
code .tok-k {
    color: #93c5fd;
}
/* keywords (bleu clair)    */
code .tok-dir {
    color: #a78bfa;
}
/* directives Razor @...     */
code .tok-type {
    color: #fca5a5;
}
/* types / components        */
code .tok-fn {
    color: #fdba74;
}
/* fonctions                 */
code .tok-attr {
    color: #fcd34d;
}
/* attributs HTML/Razor      */
code .tok-str {
    color: #86efac;
}
/* strings                   */
code .tok-num {
    color: #f9a8d4;
}
/* numbers                   */
code .tok-cmt {
    color: #9ca3af;
    font-style: italic;
}
/* comments */
code .tok-tag {
    color: #60a5fa;
}
/* <Tag>                     */
code .tok-pnc {
    color: #94a3b8;
}
/* ponctuation               */


.section-title-big {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
}

.section-sub {
    display: block;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 500;
    color: var(--muted);
    margin-top: 0.3rem;
}

.fancy-title {
    position: relative;
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, #00e5ff, #ff00d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animation What i do */
.fade-in-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease-out forwards;
    background: linear-gradient(90deg, #00e5ff, #ff00d4, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: fadeSlideUp 1s ease-out forwards, gradientFlow 6s linear infinite;
}

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

/* Monkey anime*/
.title-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(90deg, #00e5ff, #ff00d4, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.monkey {
    position: absolute;
    top: 50%;
    left: 100%; /* commence hors écran à droite */
    font-size: 3rem;
    transform: translateY(-50%);
    animation: monkeyRun 6s linear;
    mix-blend-mode: exclusion; /* donne l’impression qu’il traverse */
    opacity: 0.9;
}

@keyframes monkeyRun {
    0% {
        left: 110%;
    }

    100% {
        left: -20%;
    }
}



/*HR*/

/* Spacing helper for separators */
.sep {
    margin-block: clamp(2rem, 6vw, 4rem);
}

/* Gradient line + glow */
.sep-gradient {
    position: relative;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1, #9333ea);
    box-shadow: 0 0 16px rgba(147, 51, 234, .35), 0 0 8px rgba(99, 102, 241, .25);
}

.sep-dots {
    --dot: color-mix(in oklab, var(--border) 60%, transparent);
    --size: 6px;
    height: var(--size);
    background: radial-gradient(circle at center, var(--dot) 35%, transparent 36%) 0 0 / 22px var(--size) repeat-x;
    position: relative;
    overflow: hidden;
}

    .sep-dots::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
        transform: translateX(-100%);
        animation: sepShimmer 2.6s linear infinite;
    }

@keyframes sepShimmer {
    to {
        transform: translateX(100%);
    }
}

.sep-wave {
    margin-block: clamp(2.5rem, 7vw, 5rem);
    line-height: 0;
}

.sep-wave-svg {
    display: block;
    width: 100%;
    height: 90px; /* tweak height if needed */
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.18));
}

/* Footer */
/* ===== Footer CTA modern ===== */
.footer-cta {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 92%, transparent);
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.footer-cta__glow {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 70%;
    background: radial-gradient(600px 260px at 20% 0, rgba(99,102,241,.25), rgba(147,51,234,.18), transparent 70%);
    pointer-events: none;
}

.footer-cta__content {
    position: relative;
    z-index: 1;
}

.footer-cta__title {
    font-size: clamp(1.6rem, 3.2vw, 2rem);
    font-weight: 800;
    margin: 0 0 .4rem;
    background: linear-gradient(90deg, #6366f1, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-cta__lead {
    margin: 0 0 1rem;
    color: var(--muted);
}

.footer-cta__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: .75rem;
}

/* Email chip */
.chip-link {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 88%, transparent);
    color: var(--text);
    padding: .55rem .8rem;
    border-radius: .75rem;
    text-decoration: none;
    transition: filter .15s ease, border-color .15s ease, transform .12s ease;
}

    .chip-link:hover {
        filter: brightness(1.05);
        border-color: color-mix(in oklab, var(--border) 60%, var(--text) 40%);
        transform: translateY(-1px);
    }

.chip-icon {
    width: 18px;
    height: 18px;
}

/* Socials */
.footer-cta__socials {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.icon-btn-lg {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card) 88%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .18s ease, border-color .15s ease;
}

    .icon-btn-lg:hover {
        transform: translateY(-2px);
        border-color: transparent;
        box-shadow: 0 0 0 3px rgba(99,102,241,.25);
    }

.icon {
    width: 20px;
    height: 20px;
    fill: var(--text);
}

/* Petit ajustement sous mobile */
@media (max-width: 640px) {
    .footer-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chip-link {
        justify-content: center;
    }
}


/* Largeur par défaut */
canvas[data-side="left"],
canvas[data-side="right"] {
    width: 120px;
}

/* Sur mobile, réduire ou masquer */
@media (max-width: 768px) {
    canvas[data-side="left"],
    canvas[data-side="right"] {
        display: none;
    }
}

.has-side-bg > *:not(canvas) {
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.8rem 0.5rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 0.2rem;
        align-items: stretch;
        width: 100%;
    }

    .header-actions {
        justify-content: flex-end;
        width: 100%;
        gap: 0.3rem;
    }

    .brand {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .chip, .icon-btn, .btn {
        font-size: 0.92rem;
        padding: 0.38rem 0.7rem;
    }
}
@media (max-width: 640px) {
    .hero {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
        /* Optionnel : pour occuper toute la largeur de l'écran */
        width: 100%;
        margin-top: 1.2rem;
    }

    .hero__text {
        width: 100%;
        /* Optionnel : centre le texte sur mobile */
        text-align: center;
    }

    .hero__visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.8rem;
    }

    .device-card {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
    }

    .cta-row,
    .badges {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
        justify-content: center;
    }
}

/*Téléphone*/

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.8rem 0.5rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 0.2rem;
        align-items: stretch;
        width: 100%;
    }

    .header-actions {
        justify-content: flex-end;
        width: 100%;
        gap: 0.3rem;
    }

    .brand {
        justify-content: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .chip, .icon-btn, .btn {
        font-size: 0.92rem;
        padding: 0.38rem 0.7rem;
    }

    section, .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-block: 1.2rem;
    }

    .content > section {
        margin-block: 1rem;
    }
}

/*@media (max-width: 640px) {
    .chip, .icon-btn, .btn {
        font-size: 0.92rem;
        padding: 0.38rem 0.7rem;
    }
    section, .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-block: 1.2rem;
    }

    .content > section {
        margin-block: 1rem;
    }
}*/
/*@media (max-width: 640px) {
    section, .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-block: 1.2rem;
    }

    .content > section {
        margin-block: 1rem;
    }
}*/
