/* =========================================================
   CONSEIL EN DIRECT
   Direction éditoriale / institutionnelle
========================================================= */

:root{
    --paper:#f1eee6;
    --paper-2:#e6e2d8;
    --principle-bg:#e3ddd0;
    --ink:#111b2b;
    --ink-soft:#536070;
    --navy:#0c1728;
    --navy-2:#14233a;
    --white:#ffffff;
    --signal:#e5482f;
    --signal-dark:#bd3521;
    --line:rgba(17,27,43,.17);
    --line-light:rgba(255,255,255,.18);
    --container:1380px;
    --header-height:82px;
    --ease:cubic-bezier(.22,.61,.36,1);
    --font-sans: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"]{
    --paper:#111923;
    --paper-2:#17212d;
    --principle-bg:#182330;
    --ink:#f3f0e8;
    --ink-soft:#adb6c2;
    --navy:#080f19;
    --navy-2:#101c2b;
    --line:rgba(255,255,255,.14);
}

*{
    box-sizing:border-box;
}


/* =========================================================
   TAILLE TYPOGRAPHIQUE GLOBALE
========================================================= */

:root{
    --font-size-base:16px;
    --font-size-large:18px;
    --font-size-xlarge:20px;
}

html{
    scroll-behavior:smooth;
    font-size:var(--font-size-base);
}

html[data-font-size="large"]{
    font-size:var(--font-size-large);
}

html[data-font-size="xlarge"]{
    font-size:var(--font-size-xlarge);
}



body{
    margin:0;
    padding-top:var(--header-height);
    background:var(--paper);
    color:var(--ink);
    font-size:1rem;
    font-family: var(--font-sans);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
}

body,
button,
input,
textarea,
select{
    font:inherit;
}

img{
    display:block;
    max-width:100%;
}

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

.hero-grid,
.principle-heading,
.device-heading,
.services-layout,
.replay-layout,
.process-heading,
.footer-main{
    min-width:0;
}

.hero-grid > *,
.principle-heading > *,
.device-heading > *,
.services-layout > *,
.replay-layout > *,
.process-heading > *,
.footer-main > *{
    min-width:0;
}

a{
    color:inherit;
}

button,
a{
    -webkit-tap-highlight-color:transparent;
}

::selection{
    background:var(--signal);
    color:#fff;
}

.container{
    width:min(calc(100% - 80px),var(--container));
    margin-inline:auto;
}

/* =========================================================
   ACCESSIBILITÉ
========================================================= */

.skip-link{
    position:fixed;
    top:12px;
    left:12px;
    z-index:9999;
    padding:12px 18px;
    background:#fff;
    color:#111;
    text-decoration:none;
    font-weight:800;
    transform:translateY(-150%);
    transition:transform .2s ease;
}

.skip-link:focus{
    transform:translateY(0);
}

:focus-visible{
    outline:3px solid var(--signal);
    outline-offset:4px;
}

/* =========================================================
   HEADER
========================================================= */

.site-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:9999;
    width:100%;
    height:var(--header-height);
    background:rgba(12,23,40,.98);
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.12);
    box-shadow:0 8px 28px rgba(0,0,0,.16);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}



.header-inner{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.brand{
    display:flex;
    flex-direction:column;
    text-decoration:none;
    line-height:1;
    flex:none;
}



.site-header .brand-logo{
    display:block;
    width:auto;
    height:42px;
    max-width:220px;
    object-fit:contain;
}

.brand-logo-mobile{
    display:none !important;
}



.nav-wrap{
    display:flex;
    align-items:center;
    gap:8px;
}

.main-nav{
    position:relative;
    display:flex;
    align-items:center;
    gap:3px;
}

.main-nav a{
    position:relative;
    padding:12px 13px;
    color:rgba(255,255,255,.72);
    font-size:1rem;
    font-weight:750;
    text-decoration:none;
    transition:
        color .2s ease,
        background .2s ease;
}

.main-nav a:hover,
.main-nav a.active{
    color:#fff;
}

.main-nav a.active::after{
    content:"";
    position:absolute;
    left:13px;
    right:13px;
    bottom:5px;
    height:2px;
    background:var(--signal);
}

.nav-active-indicator{
    display:none;
}

.font-controls{
    display:flex;
    align-items:center;
    height:42px;
    border:1px solid rgba(255,255,255,.22);
}

.font-button{
    width:42px;
    height:40px;
    padding:0;
    border:0;
    border-right:1px solid rgba(255,255,255,.22);
    background:transparent;
    color:#fff;
    font-size:.82rem;
    font-weight:850;
    cursor:pointer;
    transition:
        background .2s ease,
        color .2s ease,
        opacity .2s ease;
}

.font-button:last-child{
    border-right:0;
}

.font-button:hover:not(:disabled){
    background:#fff;
    color:var(--navy);
}

.font-button:disabled{
    opacity:.35;
    cursor:not-allowed;
}

.icon-button{
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.22);
    background:transparent;
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    transition:
        background .2s ease,
        color .2s ease;
}

.icon-button:hover{
    background:#fff;
    color:var(--navy);
}

.menu-toggle{
    display:none;
}

/* =========================================================
   BOUTONS
========================================================= */

.btn{
    display:inline-flex;
    min-height:54px;
    align-items:center;
    justify-content:center;
    padding:0 25px;
    border:1px solid transparent;
    text-decoration:none;
    font-size:1rem;
    font-weight:850;
    letter-spacing:.015em;
    transition:
        transform .2s ease,
        background .2s ease;
}

.btn:hover{
    transform:translateY(-2px);
}

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

.btn-primary:hover{
    background:var(--signal-dark);
}

.text-link{
    display:inline-flex;
    align-items:center;
    gap:14px;
    padding:14px 0;
    font-size:1rem;
    font-weight:800;
    text-decoration:none;
    border-bottom:1px solid var(--ink);
}

.text-link span{
    transition:transform .2s ease;
}

.text-link:hover span{
    transform:translateY(4px);
}

/* =========================================================
   HERO
========================================================= */

.hero{
    position:relative;
    overflow:hidden;
    padding:70px 0 0;
}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(0,.95fr) minmax(420px,.75fr);
    gap:8vw;
    align-items:center;
}

.hero-copy{
    position:relative;
    z-index:2;
    padding:45px 0 70px;
}

.hero-kicker{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:35px;
    color:var(--signal);
    font-size:1rem;
    font-weight:900;
    letter-spacing:.17em;
    text-transform:uppercase;
}

.hero-kicker::before{
    content:"";
    width:42px;
    height:3px;
    background:var(--signal);
}

.hero h1{
    margin:0;
    max-width:850px;
    font-size:clamp(3.647rem,7.3vw,6.941rem);
    line-height:.83;
    letter-spacing:-.075em;
    font-weight:900;
}

.hero h1 em{
    display:block;
    margin-top:.15em;
    color:var(--signal);
    font-family:Georgia,"Times New Roman",serif;
    font-size:.62em;
    line-height:1;
    letter-spacing:-.055em;
    font-weight:400;
}

.hero-lead{
    max-width:600px;
    margin:45px 0 0;
    padding-left:22px;
    border-left:1px solid var(--ink);
    color:var(--ink-soft);
    font-size:1.12rem;
    line-height:1.7;
}

.hero-actions{
    display:flex;
    align-items:center;
    gap:30px;
    margin-top:40px;
}

.hero-visual{
    max-width:100%;
    position:relative;
    align-self:stretch;
    min-height:690px;
    filter:drop-shadow(0 28px 28px rgba(17,27,43,.22));
}

.hero-image{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.hero-image::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(12,23,40,.28)
        );
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.75);
}



.live-card{
    position:absolute;
    left:-70px;
    bottom:60px;
    z-index:2;
    width:270px;
    padding:24px;
    background:var(--navy);
    color:#fff;
    box-shadow:20px 25px 60px rgba(0,0,0,.2);
}

.live-state{
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:27px;
    color:#ff735e;
    font-size:1rem;
    font-weight:900;
    letter-spacing:.18em;
}

.live-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#ff4b33;
    box-shadow:0 0 0 5px rgba(255,75,51,.14);
    animation:pulse 1.8s infinite;
}

@keyframes pulse{
    50%{
        box-shadow:0 0 0 10px rgba(255,75,51,0);
    }
}

.live-card strong{
    display:block;
    font-size:1.059rem;
}

.live-time{
    display:block;
    margin-top:7px;
    font-family:"Courier New",monospace;
    font-size:1rem;
    opacity:.65;
}

.live-lines{
    display:flex;
    align-items:flex-end;
    gap:4px;
    height:30px;
    margin-top:22px;
}

.live-lines i{
    width:4px;
    background:var(--signal);
    animation:level 1s ease-in-out infinite alternate;
}

.live-lines i:nth-child(1){
    height:35%;
}

.live-lines i:nth-child(2){
    height:80%;
    animation-delay:.15s;
}

.live-lines i:nth-child(3){
    height:50%;
    animation-delay:.3s;
}

.live-lines i:nth-child(4){
    height:100%;
    animation-delay:.1s;
}

.live-lines i:nth-child(5){
    height:65%;
    animation-delay:.4s;
}

@keyframes level{
    to{
        height:25%;
    }
}


.hero-bottom{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0;
    margin-top:0;
    padding:38px 0 42px;
    border:0;
    background:transparent;
}

.hero-bottom span{
    position:relative;
    display:flex;
    align-items:center;
    min-height:auto;
    padding:0 35px 0 28px;
    border:0;
    background:transparent;
    color:var(--ink);
    font-size:1.08rem;
    font-weight:850;
    letter-spacing:.08em;
    line-height:1.3;
    text-transform:uppercase;
}

.hero-bottom span:first-child{
    padding-left:0;
}

.hero-bottom span + span{
    border-left:1px solid var(--line);
}

.hero-bottom span::before{
    content:"";
    position:relative;
    left:auto;
    width:28px;
    height:3px;
    margin-right:18px;
    flex:0 0 28px;
    background:var(--signal);
    transform:none;
}



/* =========================================================
   STRUCTURE DES SECTIONS
========================================================= */

.section{
    padding:90px 0;
}

.section-marker{
    display:flex;
    align-items:center;
    gap:16px;
    padding-bottom:18px;
    border-bottom:1px solid var(--line);
    font-size:1rem;
    font-weight:900;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.section-marker-icon{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    flex:0 0 38px;
    background:var(--ink);
    color:var(--paper);
    overflow:hidden;
}

.section-marker-icon svg{
    display:block;
    width:20px;
    height:20px;
    max-width:20px;
    max-height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.section-marker-light{
    border-color:var(--line-light);
    color:rgba(255,255,255,.7);
}

.section-marker-light .section-marker-icon{
    background:var(--signal);
    color:#fff;
}

/* =========================================================
   PRINCIPE
========================================================= */

.principle{
    position:relative;
    background:var(--principle-bg);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}


.principle-heading{
    display:grid;
    grid-template-columns:.65fr 1.35fr;
    gap:70px;
    align-items:end;
    padding:70px 0;
}

.principle-heading > p{
    margin:0;
    color:var(--ink-soft);
    font-size:1.25rem;
    line-height:1.45;
}

.principle-heading h2,
.services-intro h2,
.replay-copy h2,
.process-heading h2{
    margin:0;
    font-size:clamp(2.824rem,6vw,5.176rem);
    line-height:.94;
    letter-spacing:-.065em;
}

.principle-heading h2 em,
.services-intro h2 em,
.replay-copy h2 em,
.process-heading h2 em{
    color:var(--signal);
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
}

.principle-image{
    max-width:100%;
    position:relative;
    height:min(58vw,700px);
    overflow:hidden;
    box-shadow:0 30px 65px rgba(17,27,43,.28);
}

.principle-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.75);
}


.image-label{
    position:absolute;
    right:0;
    bottom:0;
    width:min(420px,80%);
    padding:24px 28px;
    background:var(--signal);
    color:#fff;
}

.image-label span{
    display:block;
    margin-bottom:5px;
    font-size:1rem;
    font-weight:900;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.image-label strong{
    font-size:1.059rem;
}

.signal-flow{
    display:grid;
    grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
    align-items:center;
    border-bottom:1px solid var(--line);
}

.signal-item{
    padding:28px 10px 28px 0;
}

.signal-item span{
    display:block;
    margin-bottom:5px;
    color:var(--signal);
    font-size:1rem;
    font-weight:900;
}

.signal-item strong{
    font-size:1rem;
}

.signal-arrow{
    padding:0 20px;
    color:var(--signal);
    font-size:1.412rem;
}

/* =========================================================
   DISPOSITIF
========================================================= */

.device-section{
    background:var(--navy);
    color:#fff;
}

.device-heading{
    display:grid;
    grid-template-columns:1.5fr .5fr;
    gap:70px;
    align-items:end;
    padding:70px 0;
}

.device-heading h2{
    margin:0;
    font-size:clamp(2.824rem,5.6vw,5.059rem);
    line-height:.95;
    letter-spacing:-.06em;
}

.device-heading h2 em{
    color:#ff715c;
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
}

.device-heading p{
    margin:0;
    color:rgba(255,255,255,.64);
    font-size:1.05rem;
    line-height:1.7;
}

.camera-wall{
    max-width:100%;
    display:grid;
    grid-template-columns:1.45fr .75fr;
    grid-template-rows:1fr 1fr;
    gap:12px;
}

.camera-shot{
    max-width:100%;
    margin:0;
}

.camera-shot-main{
    grid-row:1 / span 2;
}

.camera-screen{
    max-width:100%;
    position:relative;
    height:100%;
    min-height:250px;
    overflow:hidden;
    background:#000;
    box-shadow:0 24px 48px rgba(0,0,0,.38);
    transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}

.camera-shot-main .camera-screen{
    min-height:620px;
}

.camera-screen img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.7) contrast(1.05);
}



.camera-shot:hover .camera-screen{
    transform:translateY(-5px);
    box-shadow:0 34px 65px rgba(0,0,0,.48);
}

.camera-rec{
    position:absolute;
    top:18px;
    left:18px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:7px 10px;
    background:rgba(5,10,18,.78);
    font-family:"Courier New",monospace;
    font-size:1rem;
}

.camera-rec i{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#ff4b33;
}

.camera-shot figcaption{
    padding:12px 0 0;
    color: rgba(255,255,255,.82);
    font-size:1rem;
    text-transform:uppercase;
    letter-spacing:.12em;
}

.device-statement{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin-top:80px;
    padding:34px 0;
    border-top:1px solid var(--line-light);
    border-bottom:1px solid var(--line-light);
    font-size:1rem;
    font-weight:850;
    letter-spacing:.1em;
}

.device-statement > span:nth-child(even){
    color:var(--signal);
    font-size:1.471rem;
}

.device-statement strong{
    color:#ff715c;
}

/* =========================================================
   SERVICES
========================================================= */

.services-layout{
    display:grid;
    grid-template-columns:.72fr 1.28fr;
    gap:10vw;
    padding-top:80px;
}

.services-intro{
    position:sticky;
    top:130px;
    align-self:start;
}

.services-intro p{
    max-width:400px;
    margin:35px 0 0;
    color:var(--ink-soft);
    font-size:1.05rem;
    line-height:1.7;
}

.services-list{
    border-top:1px solid var(--line);
}

.services-list article{
    display:grid;
    grid-template-columns:55px .75fr 1.25fr;
    gap:25px;
    align-items:start;
    padding:35px 0;
    border-bottom:1px solid var(--line);
}

.services-list article > span{
    width:50px;
    height:50px;
    display:grid;
    place-items:center;
    color:transparent;
    font-size:0;
    background:rgba(229,72,47,.10);
    border:1px solid rgba(229,72,47,.32);
}

.services-list article > span::before{
    content:"";
    display:block;
    width:25px;
    height:25px;
    background:var(--signal);
    -webkit-mask-repeat:no-repeat;
    -webkit-mask-position:center;
    -webkit-mask-size:contain;
    mask-repeat:no-repeat;
    mask-position:center;
    mask-size:contain;
}

.services-list article:nth-child(1) > span::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='17' r='2' fill='black'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='17' r='2' fill='black'/%3E%3C/svg%3E");
}

.services-list article:nth-child(2) > span::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='13' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z' fill='black'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='6' width='13' height='12' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16 10 5-3v10l-5-3z' fill='black'/%3E%3C/svg%3E");
}

.services-list article:nth-child(3) > span::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='9' cy='7' r='2' fill='black'/%3E%3Ccircle cx='15' cy='12' r='2' fill='black'/%3E%3Ccircle cx='7' cy='17' r='2' fill='black'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='9' cy='7' r='2' fill='black'/%3E%3Ccircle cx='15' cy='12' r='2' fill='black'/%3E%3Ccircle cx='7' cy='17' r='2' fill='black'/%3E%3C/svg%3E");
}

.services-list article:nth-child(4) > span::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='3' width='6' height='12' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='3' width='6' height='12' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.services-list article:nth-child(5) > span::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3Cpath d='M8.5 8.5a5 5 0 0 0 0 7M15.5 8.5a5 5 0 0 1 0 7M5.5 5.5a9 9 0 0 0 0 13M18.5 5.5a9 9 0 0 1 0 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='2' fill='black'/%3E%3Cpath d='M8.5 8.5a5 5 0 0 0 0 7M15.5 8.5a5 5 0 0 1 0 7M5.5 5.5a9 9 0 0 0 0 13M18.5 5.5a9 9 0 0 1 0 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.services-list article:nth-child(6) > span::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='16' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m10 9 5 3-5 3z' fill='black'/%3E%3C/svg%3E");
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='18' height='16' rx='1' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m10 9 5 3-5 3z' fill='black'/%3E%3C/svg%3E");
}


.services-list h3{
    margin:0;
    font-size:1.18rem;
    letter-spacing:-.025em;
}

.services-list p{
    margin:0;
    color:var(--ink-soft);
    font-size:1.05rem;
    line-height:1.7;
}

/* =========================================================
   REPLAY
========================================================= */

.replay-section{
    background:var(--paper-2);
}

.replay-layout{
    display:grid;
    grid-template-columns:.7fr 1.3fr;
    gap:9vw;
    align-items:start;
    padding-top:80px;
}

.replay-copy p{
    max-width:520px;
    margin:30px 0 0;
    color:var(--ink-soft);
    font-size:1.05rem;
    line-height:1.7;
}

.video-interface{
    max-width:100%;
    background:var(--navy);
    color:#fff;
    box-shadow:0 30px 65px rgba(17,27,43,.28);
}

.video-preview{
    max-width:100%;
    position:relative;
    aspect-ratio:16/9;
    overflow:hidden;
    background:#000;
}

.video-preview::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(5,12,22,.16);
}

.video-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.6);
}

.fake-play{
    position:absolute;
    z-index:2;
    left:50%;
    top:50%;
    width:78px;
    height:78px;
    border:0;
    border-radius:50%;
    background:var(--signal);
    color:#fff;
    transform:translate(-50%,-50%);
    cursor:pointer;
}

.fake-play span{
    display:block;
    margin-left:4px;
}

.video-duration{
    position:absolute;
    right:15px;
    bottom:15px;
    z-index:2;
    padding:5px 8px;
    background:rgba(0,0,0,.75);
    font-family:"Courier New",monospace;
    font-size:1rem;
}

.video-meta{
    padding:25px 28px;
    border-bottom:1px solid var(--line-light);
}

.video-meta > span{
    color:#ff715c;
    font-size:1rem;
    font-weight:900;
    letter-spacing:.18em;
}

.video-meta h3{
    margin:8px 0 0;
    font-size:1.176rem;
}

.chapters{
    padding:5px 28px 22px;
}

.chapters div{
    display:grid;
    grid-template-columns:90px 1fr;
    gap:20px;
    padding:14px 0;
    border-bottom:1px solid var(--line-light);
}

.chapters div:last-child{
    border-bottom:0;
}

.chapters time{
    color:#ff715c;
    font-family:"Courier New",monospace;
    font-size:1rem;
}

.chapters span{
    font-size:1rem;
}

/* =========================================================
   PROCESS
========================================================= */

.process-heading{
    display:grid;
    grid-template-columns:1.4fr .6fr;
    gap:80px;
    align-items:end;
    padding:70px 0;
}

.process-heading p{
    margin:0;
    color:var(--ink-soft);
    font-size:1.05rem;
    line-height:1.7;
}

.process{
    border-top:1px solid var(--line);
}

.process article{
    display:grid;
    grid-template-columns:130px 1fr;
    gap:40px;
    padding:45px 0;
    border-bottom:1px solid var(--line);
}

.process-number{
    color:var(--signal);
    font-size:2.824rem;
    line-height:1;
    font-weight:900;
    letter-spacing:-.06em;
}

.process h3{
    margin:0 0 4px;
    color:var(--ink-soft);
    font-size:1rem;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.process strong{
    display:block;
    font-size:1.765rem;
    letter-spacing:-.04em;
}

.process p{
    max-width:600px;
    margin:10px 0 0;
    color:var(--ink-soft);
    font-size:1.05rem;
    line-height:1.7;
}

/* =========================================================
   PUBLIC
========================================================= */

.public-section{
    overflow:hidden;
    background:var(--signal);
    color:#fff;
}

.public-layout{
    position:relative;
    min-height:650px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    padding-top:100px;
    padding-bottom:100px;
}

.public-big{
    position:absolute;
    left:-40px;
    top:50%;
    color:rgba(255,255,255,.09);
    font-size:clamp(10rem,27vw,26.471rem);
    line-height:.7;
    font-weight:950;
    letter-spacing:-.1em;
    transform:translateY(-50%) rotate(-90deg);
    transform-origin:center;
}

.public-copy{
    position:relative;
    z-index:2;
    width:min(650px,55%);
}

.public-label{
    display:block;
    margin-bottom:30px;
    font-size:1rem;
    font-weight:900;
    letter-spacing:.18em;
    text-transform:uppercase;
}

.public-copy h2{
    margin:0;
    font-size:clamp(3.235rem,6.5vw,5.588rem);
    line-height:.9;
    letter-spacing:-.065em;
}

.public-copy h2 em{
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
}

.public-types{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:45px;
}

.public-types span{
    padding:10px 14px;
    border:1px solid rgba(255,255,255,.45);
    font-size:1rem;
    font-weight:750;
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section{
    position:relative;
    background:#e8dfd2;
    color:var(--ink);
    border-top:1px solid rgba(17,27,43,.12);
}

html[data-theme="dark"] .contact-section{
    background:#203840;
    color:#fff;
    border-top:1px solid rgba(255,255,255,.12);
}

.contact-marker{
    margin-bottom:55px;
}

html[data-theme="dark"] .contact-marker{
    color:#fff;
    border-bottom-color:rgba(255,255,255,.18);
}

html[data-theme="dark"] .contact-marker .section-marker-icon{
    background:var(--signal);
    color:#fff;
}

.contact-form-layout{
    display:grid;
    grid-template-columns:minmax(0,.78fr) minmax(520px,1.22fr);
    gap:7vw;
    align-items:start;
}

.contact-copy{
    position:sticky;
    top:125px;
}

.contact-label{
    display:block;
    margin-bottom:22px;
    color:var(--signal);
    font-size:1rem;
    font-weight:900;
    letter-spacing:.17em;
    text-transform:uppercase;
}

.contact-copy h2{
    margin:0;
    color:var(--ink);
    font-size:clamp(3rem,5.7vw,5.35rem);
    line-height:.9;
    letter-spacing:-.065em;
}

.contact-copy h2 em{
    color:var(--signal);
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
}

.contact-copy > p{
    max-width:560px;
    margin:35px 0 0;
    color:var(--ink-soft);
    font-size:1.08rem;
    line-height:1.7;
}

.contact-email{
    display:flex;
    align-items:center;
    gap:18px;
    margin-top:45px;
    padding-top:25px;
    border-top:1px solid var(--line);
}

.contact-email-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    flex:0 0 48px;
    background:var(--signal);
    color:#fff;
    font-size:1.25rem;
}

.contact-email-label{
    display:block;
    margin-bottom:3px;
    color:var(--ink-soft);
    font-size:1rem;
}

.contact-email a{
    color:var(--ink);
    font-size:1.08rem;
    font-weight:850;
    text-decoration:none;
    border-bottom:1px solid currentColor;
}

.contact-form{
    position:relative;
    padding:42px;
    background:var(--paper);
    color:var(--ink);
    border-top:5px solid var(--signal);
    box-shadow:0 30px 65px rgba(17,27,43,.18);
}

html[data-theme="dark"] .contact-form{
    background:#f1eee6;
    color:#111b2b;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px 22px;
}

.field{
    min-width:0;
}

.field-full{
    grid-column:1 / -1;
}

.field label{
    display:block;
    margin-bottom:9px;
    color:inherit;
    font-size:1rem;
    font-weight:850;
}

.field-optional{
    color:#6d7680;
    font-weight:600;
}

.field input,
.field select,
.field textarea{
    width:100%;
    border:1px solid rgba(17,27,43,.24);
    border-radius:0;
    background:#fff;
    color:#111b2b;
    font-size:1rem;
    outline:none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.field input,
.field select{
    min-height:56px;
    padding:0 16px;
}

.field textarea{
    min-height:180px;
    padding:16px;
    resize:vertical;
    line-height:1.55;
}

.field input::placeholder,
.field textarea::placeholder{
    color:#7d858e;
    opacity:1;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
    border-color:var(--signal);
    box-shadow:0 0 0 3px rgba(229,72,47,.13);
}

.field-error{
    display:block;
    margin-top:7px;
    color:#a92f1f;
    font-size:1rem;
    font-weight:750;
}

.form-message{
    display:grid;
    gap:4px;
    margin-bottom:28px;
    padding:18px 20px;
    border-left:5px solid;
    font-size:1rem;
    line-height:1.5;
}

.form-message strong,
.form-message span{
    display:block;
}

.form-success{
    background:#e7f3e9;
    border-color:#367c47;
    color:#214f2d;
}

.form-error{
    background:#f8e6e2;
    border-color:#b83c29;
    color:#79291d;
}

.form-honeypot{
    position:absolute!important;
    left:-10000px!important;
    top:auto!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
}

.contact-submit{
    gap:16px;
    margin-top:28px;
    min-height:60px;
    border:0;
    cursor:pointer;
}

.contact-submit span{
    font-size:1.3rem;
    transition:transform .2s ease;
}

.contact-submit:hover span{
    transform:translateX(5px);
}

.form-note{
    margin:18px 0 0;
    color:#6d7680;
    font-size:1rem;
    line-height:1.5;
}

html[data-theme="dark"] .contact-copy h2{
    color:#fff;
}

html[data-theme="dark"] .contact-copy > p,
html[data-theme="dark"] .contact-email-label{
    color:rgba(255,255,255,.72);
}

html[data-theme="dark"] .contact-email{
    border-top-color:rgba(255,255,255,.22);
}

html[data-theme="dark"] .contact-email a{
    color:#fff;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
    padding:80px 0 28px;
    background:#080f19;
    color:#fff;
}

.footer-main{
    display:grid;
    grid-template-columns:1.4fr .7fr .8fr 1fr;
    gap:60px;
    padding-bottom:70px;
}

.footer-brand .brand{
    display:inline-flex;
    align-items:flex-start;
}

.footer-brand .brand-logo{
    display:block;
    width:auto;
    height:58px;
    max-width:240px;
    object-fit:contain;
}

.footer-signature{
    max-width:300px;
    margin:30px 0 0;
    font-size:1.353rem;
    line-height:1.1;
    font-weight:800;
    letter-spacing:-.04em;
}

.footer-signature em{
    display:block;
    color:#ff715c;
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
}

.footer-description{
    max-width:320px;
    color:rgba(255,255,255,.48);
    font-size:1rem;
}

.footer-column h2{
    margin:0 0 20px;
    color:rgba(255,255,255,.45);
    font-size:1rem;
    letter-spacing:.18em;
    text-transform:uppercase;
}

.footer-column nav{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.footer-column a{
    color:#fff;
    font-size:1rem;
    text-decoration:none;
}

.footer-column a:hover{
    color:#ff715c;
}

.footer-contact p{
    color:rgba(255,255,255,.5);
    font-size:1rem;
}

.footer-contact-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-top:8px;
    padding-bottom:4px;
    border-bottom:1px solid rgba(255,255,255,.4);
    font-weight:800;
}

.footer-email{
    display:block;
    margin-top:16px;
    color:rgba(255,255,255,.65)!important;
}

.footer-bottom{
    display:grid;
    grid-template-columns:auto auto 1fr;
    gap:30px;
    align-items:center;
    padding:25px 0;
    border-top:1px solid rgba(255,255,255,.12);
    border-bottom:1px solid rgba(255,255,255,.12);
    color:rgba(255,255,255,.45);
    font-size:1rem;
}

.footer-bottom p{
    margin:0;
}

.footer-bottom-links{
    display:flex;
    gap:18px;
}

.footer-bottom-links a,
.footer-credit a{
    color:rgba(255,255,255,.7);
    text-decoration:none;
}

.footer-credit{
    text-align:right;
}

.footer-legal-info{
    display:flex;
    justify-content:center;
    gap:10px;
    padding-top:25px;
    color: rgba(255,255,255,.65);
    font-size:1rem;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top{
    position:fixed;
    right:25px;
    bottom:89px;
    z-index:900;
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    border:2px solid var(--signal);
    background:var(--navy);
    color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.28);
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(15px);
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .2s ease,
        color .2s ease;
}

.back-to-top:hover{
    background:var(--signal);
    color:#fff;
    transform:translateY(-3px);
}

.back-to-top.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

/* =========================================================
   ANIMATIONS
========================================================= */

.reveal{
    opacity:0;
    transform:translateY(30px);
    transition:
        opacity .75s var(--ease),
        transform .75s var(--ease);
}

.reveal.revealed{
    opacity:1;
    transform:none;
}

@media(prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        scroll-behavior:auto!important;
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:.01ms!important;
    }

    .reveal{
        opacity:1;
        transform:none;
    }
}

/* =========================================================
   TABLETTE
========================================================= */

@media(max-width:1050px){

    .contact-form-layout{
        grid-template-columns:1fr;
        gap:55px;
    }

    .contact-copy{
        position:static;
    }



    :root{
        --header-height:72px;
    }

    .container{
        width:min(calc(100% - 48px),var(--container));
    }

    .menu-toggle{
        display:grid;
    }

    .nav-wrap{
        position:relative;
    }

    .main-nav{
        position:fixed;
        top:var(--header-height);
        left:0;
        right:0;
        width:100%;
        max-width:none;
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:4px;
        max-height:calc(100dvh - var(--header-height));
        overflow-y:auto;
        padding:16px 24px 22px;
        background:#14233a;
        border-top:1px solid rgba(255,255,255,.10);
        border-bottom:1px solid rgba(255,255,255,.12);
        box-shadow:0 24px 45px rgba(0,0,0,.38);
    }

    .main-nav.open{
        display:flex;
    }

    .main-nav a{
        padding:13px 15px;
        color:rgba(255,255,255,.75);
    }

    .main-nav a:hover,
    .main-nav a.active{
        background:rgba(255,255,255,.07);
        color:#fff;
    }

    .main-nav a.active::after{
        display:none;
    }

    .hero-grid{
        grid-template-columns:1fr .8fr;
        gap:5vw;
    }

    .hero-visual{
        min-height:600px;
    }

    .live-card{
        left:-35px;
    }

    .services-layout{
        gap:6vw;
    }

    .principle-heading,
    .device-heading,
    .services-layout,
    .replay-layout,
    .process-heading{
        grid-template-columns:1fr;
    }

    .principle-heading,
    .device-heading,
    .process-heading{
        gap:40px;
    }

    .services-layout,
    .replay-layout{
        gap:60px;
    }

    .services-intro{
        position:static;
    }

    .principle-image,
    .video-interface{
        width:100%;
        margin-left:0;
    }

    .camera-wall{
        width:100%;
    }

    .footer-main{
        grid-template-columns:1.4fr 1fr 1fr;
    }

    .footer-contact{
        grid-column:2 / span 2;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:770px){

    .hero h1{
        font-size:clamp(2rem,8vw,2.6rem);
    }

    .principle-heading h2,
    .services-intro h2,
    .replay-copy h2,
    .process-heading h2{
        font-size:clamp(2rem,7.5vw,2.5rem);
    }

    .device-heading h2{
        font-size:clamp(2rem,7.5vw,2.5rem);
    }

    .contact-copy h2{
        font-size:clamp(2.1rem,8vw,2.6rem);
    }

    .contact-marker{
        margin-bottom:38px;
    }

    .contact-form-layout{
        gap:40px;
    }


    .contact-copy > p{
        margin-top:28px;
    }

    .contact-email{
        margin-top:32px;
    }

    .contact-form{
        padding:28px 20px;
    }

    .form-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .field-full{
        grid-column:auto;
    }

    .contact-submit{
        width:100%;
    }



    .container{
        width:calc(100% - 36px);
    }

    .site-header{
        height:68px;
    }

    .header-inner{
        gap:10px;
    }

    .nav-wrap{
        gap:5px;
        flex:none;
    }


    .site-header .brand-logo{
        height:34px;
        max-width:170px;
    }

    .footer-brand .brand-logo{
        height:50px;
        max-width:220px;
    }

    .brand-logo-desktop{
    display:none !important;
    }

    .site-header .brand-logo-mobile{
        display:block !important;
        width:auto;
        height:40px;
        max-width:100px;
    }


    .icon-button{
        width:40px;
        height:40px;
    }

    .hero{
        padding-top:35px;
    }

    .hero-grid{
        display:flex;
        flex-direction:column;
        gap:35px;
    }

    .hero-copy{
        padding:20px 0 0;
    }

    .hero-kicker{
        margin-bottom:25px;
    }

    .hero h1{
        font-size:clamp(3.235rem,17vw,4.588rem);
    }

    .hero h1 em{
        margin-top:.2em;
        font-size:.58em;
    }

    .hero-lead{
        margin-top:30px;
        font-size:1rem;
    }

    .hero-actions{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
        margin-top:30px;
    }

    .hero-visual{
        width:100%;
        min-height:0;
        margin-left:0;
        padding-bottom:0;
    }

    .hero-image{
        position:relative;
        width:100%;
        aspect-ratio:4/5;
    }


    .live-card{
        position:relative;
        left:auto;
        bottom:auto;
        width:calc(100% - 36px);
        margin:-65px 18px 0;
    }

    .hero-bottom{
        grid-template-columns:1fr;
        padding:25px 0 30px;
    }

    .hero-bottom span,
    .hero-bottom span:first-child{
        justify-content:flex-start;
        padding:18px 0;
    }

    .hero-bottom span + span{
        border-left:0;
        border-top:1px solid var(--line);
    }

    .hero-bottom span::before{
        width:22px;
        flex-basis:22px;
        margin-right:15px;
    }

    .section{
        padding:65px 0;
    }

    .principle-heading,
    .device-heading,
    .services-layout,
    .replay-layout,
    .process-heading{
        grid-template-columns:1fr;
    }

    .principle-heading{
        gap:30px;
        padding:50px 0;
    }

    .principle-heading h2,
    .services-intro h2,
    .replay-copy h2,
    .process-heading h2{
        font-size:clamp(2.647rem,13vw,3.824rem);
    }

    .principle-image{
        width:100%;
        height:auto;
        margin-left:0;
    }

    .principle-image img{
        height:auto;
        aspect-ratio:4/3;
    }

    .image-label{
        position:relative;
        width:100%;
    }

    .signal-flow{
        grid-template-columns:1fr;
        padding-top:20px;
    }

    .signal-item{
        display:grid;
        grid-template-columns:35px 1fr;
        padding:18px 0;
        border-bottom:1px solid var(--line);
    }

    .signal-item span{
        margin:0;
    }

    .signal-arrow{
        display:none;
    }

    .device-heading{
        gap:30px;
        padding:50px 0;
    }

    .device-heading h2{
        font-size:clamp(2.588rem,12.5vw,3.824rem);
    }

    .camera-wall{
        grid-template-columns:1fr;
        grid-template-rows:auto;
    }

    .camera-shot-main{
        grid-row:auto;
    }

    .camera-shot-main .camera-screen,
    .camera-screen{
        min-height:0;
        aspect-ratio:4/3;
    }

    .device-statement{
        align-items:flex-start;
        flex-direction:column;
        gap:8px;
        margin-top:50px;
    }

    .device-statement > span:nth-child(even){
        display:none;
    }

    .device-statement strong{
        margin-top:12px;
    }

    .services-layout{
        gap:55px;
        padding-top:55px;
    }

    .services-intro{
        position:static;
    }

    .services-list article{
        grid-template-columns:45px 1fr;
        gap:10px 15px;
        padding:27px 0;
    }

    .services-list article > span{
        grid-row:1 / span 2;
        width:44px;
        height:44px;
    }

    .services-list article > span::before{
        width:22px;
        height:22px;
    }

    .services-list p{
        grid-column:2;
    }

    .replay-layout{
        gap:50px;
        padding-top:55px;
    }

    .video-interface{
        width:100%;
        margin-left:0;
    }

    .chapters{
        padding-left:20px;
        padding-right:20px;
    }

    .chapters div{
        grid-template-columns:75px 1fr;
    }

    .process-heading{
        gap:30px;
        padding:50px 0;
    }

    .process article{
        grid-template-columns:70px 1fr;
        gap:20px;
        padding:35px 0;
    }

    .process-number{
        font-size:2.235rem;
    }

    .process strong{
        font-size:1.412rem;
    }

    .public-layout{
        min-height:620px;
        align-items:flex-end;
        padding-top:80px;
        padding-bottom:80px;
    }

    .public-big{
        top:50px;
        left:-10px;
        font-size:8.824rem;
        transform:none;
    }

    .public-copy{
        width:100%;
    }

    .public-copy h2{
        font-size:clamp(3.059rem,15vw,4.412rem);
    }

 
 
    .contact-copy h2{
        font-size:clamp(3.529rem,17vw,5rem);
    }

    .footer-main{
        grid-template-columns:1fr;
        gap:45px;
    }

    .footer-contact{
        grid-column:auto;
    }

    .footer-bottom{
        grid-template-columns:1fr;
        gap:14px;
    }

    .footer-credit{
        text-align:left;
    }

    .footer-legal-info{
        align-items:flex-start;
        flex-direction:column;
    }

    .footer-legal-separator{
        display:none;
    }

}

/* =========================================================
   PETITS MOBILES
========================================================= */

@media(max-width:390px){

    .container{
        width:calc(100% - 28px);
    }


    .hero h1{
        font-size:2.3rem;
    }

    .principle-heading h2,
    .services-intro h2,
    .replay-copy h2,
    .process-heading h2,
    .device-heading h2{
        font-size:2.2rem;
    }

    .contact-copy h2{
        font-size:2.3rem;
    }

    .hero-visual{
        width:100%;
        margin-left:0;
    }

    .live-card{
        width:calc(100% - 28px);
        margin-left:14px;
        margin-right:14px;
    }

    .principle-image,
    .video-interface{
        width:100%;
        margin-left:0;
    }

}

/* ==========================================================
   NAVIGATION ENTRE LES ÉCOSYSTÈMES
========================================================== */

.ecosystem-switcher {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 10000;
}


/* ==========================================================
   BOUTON
========================================================== */

.ecosystem-toggle {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 2px solid rgba(255, 255, 255, .70);
    border-radius: 50%;

    color: #fff;
    background: var(--signal);

    box-shadow:
        0 0 0 1px rgba(17, 27, 43, .16),
        0 10px 30px rgba(0, 0, 0, .18);

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.ecosystem-toggle:hover {
    background: var(--signal-dark);
    transform: translateY(-2px);
}

.ecosystem-toggle:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
}

.ecosystem-toggle svg {
    width: 26px;
    height: 26px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   MENU
========================================================== */

.ecosystem-menu {
    position: absolute;
    right: 0;
    bottom: 64px;

    width: min(340px, calc(100vw - 32px));

    padding: 12px;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--paper);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .18);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px) scale(.98);
    transform-origin: bottom right;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}

.ecosystem-switcher.open .ecosystem-menu {
    opacity: 1;
    visibility: visible;

    transform: none;

    pointer-events: auto;
}


/* ==========================================================
   PHOTO GABRIEL
========================================================== */

.ecosystem-menu::before {
    content: "";

    position: absolute;
    right: 18px;
    bottom: 150px;

    width: 90px;
    height: 110px;

    background-image:
        url("https://www.monwebsurmesure.com/images/super-gabriel-hero.webp");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    border-radius: 12px;

    pointer-events: none;

    z-index: 2;
}


/*
   Les liens restent sous la photo afin que
   le fond du hover passe derrière le portrait.
*/

.ecosystem-menu > a,
.ecosystem-contact {
    position: relative;
    z-index: 1;
}



/* ==========================================================
   LIENS DES UNIVERS
========================================================== */

.ecosystem-menu > a {
    display: block;

    padding: 12px;

    border-radius: 11px;

    color: var(--ink);

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ecosystem-menu > a:hover,
.ecosystem-menu > a:focus-visible {
    background: rgba(229, 72, 47, .10);

    transform: translateX(-3px);
}

.ecosystem-menu > a strong {
    display: block;

    color: var(--ink);

    transition: color .2s ease;
}

.ecosystem-menu > a:hover strong,
.ecosystem-menu > a:focus-visible strong {
    color: var(--signal);
}

.ecosystem-menu > a > span:not(.ecosystem-current-label) {
    display: block;

    color: var(--ink-soft);

    font-size: .75rem;
    line-height: 1.35;
}


/* ==========================================================
   SITE ACTUEL
========================================================== */





.ecosystem-current-label {
    display: block;

    margin-bottom: 2px;

    color: var(--signal);

    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .10em;
    line-height: 1.35;

    text-transform: uppercase;
    text-decoration: underline;
}


/* ==========================================================
   CONTACT — BAS DU MENU ÉCOSYSTÈME
========================================================== */

.ecosystem-contact {
    margin: 10px -12px -12px;

    padding: 12px 14px 14px;

    border-radius: 0 0 18px 18px;

}

.ecosystem-contact > span {
    display: block;

    margin-bottom: 8px;

    color: var(--ink-soft);

    text-align: center;

    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;

    text-transform: uppercase;
}


/* ==========================================================
   LIENS CONTACT
========================================================== */

.ecosystem-contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 7px;
}

.ecosystem-menu .ecosystem-contact-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-width: 0;

    padding: 9px 8px;

    border: 1px solid rgba(229, 72, 47, .22);
    border-radius: 9px;

    background: rgba(229, 72, 47, .06);

    color: var(--ink);

    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.ecosystem-menu .ecosystem-contact-links a:hover,
.ecosystem-menu .ecosystem-contact-links a:focus-visible {
    background: rgba(229, 72, 47, .13);

    border-color: var(--signal);

    color: var(--signal);

    transform: translateY(-1px);
}

.ecosystem-contact-links svg {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   TÉLÉPHONE
========================================================== */

.ecosystem-menu .ecosystem-phone {
    grid-column: 1 / -1;
}

.ecosystem-phone-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 1px;
}

.ecosystem-phone-content strong {
    color: var(--ink);

    font-size: .82rem;
    font-weight: 800;
}

.ecosystem-phone-content small {
    color: var(--ink-soft);

    font-size: .60rem;
    font-weight: 650;
}

.ecosystem-menu .ecosystem-phone:hover strong,
.ecosystem-menu .ecosystem-phone:focus-visible strong {
    color: var(--signal);
}


/* ==========================================================
   MODE SOMBRE
========================================================== */

html[data-theme="dark"] .ecosystem-menu {
    background: var(--paper);
    border-color: var(--line);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .40);
}

html[data-theme="dark"] .ecosystem-menu > a {
    color: var(--ink);
}

html[data-theme="dark"] .ecosystem-menu > a > span:not(.ecosystem-current-label) {
    color: var(--ink-soft);
}

html[data-theme="dark"] .ecosystem-menu > a:hover,
html[data-theme="dark"] .ecosystem-menu > a:focus-visible {
    background: rgba(229, 72, 47, .14);
}



html[data-theme="dark"] .ecosystem-contact {
    background: var(--navy);
}

html[data-theme="dark"] .ecosystem-contact > span {
    color: var(--ink-soft);
}

html[data-theme="dark"] .ecosystem-menu .ecosystem-contact-links a {
    background: var(--navy-2);

    border-color: rgba(255, 113, 92, .25);

    color: var(--ink);
}

html[data-theme="dark"] .ecosystem-menu .ecosystem-contact-links a:hover,
html[data-theme="dark"] .ecosystem-menu .ecosystem-contact-links a:focus-visible {
    background: rgba(229, 72, 47, .16);

    border-color: #ff715c;

    color: #ff715c;
}

html[data-theme="dark"] .ecosystem-phone-content strong {
    color: var(--ink);
}

html[data-theme="dark"] .ecosystem-menu .ecosystem-phone:hover strong,
html[data-theme="dark"] .ecosystem-menu .ecosystem-phone:focus-visible strong {
    color: #ff715c;
}

html[data-theme="dark"] .ecosystem-phone-content small {
    color: var(--ink-soft);
}



/* ==========================================================
   MOUVEMENTS RÉDUITS
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ecosystem-toggle,
    .ecosystem-menu,
    .ecosystem-menu > a,
    .ecosystem-contact-links a {
        transition: none;
    }

    .ecosystem-toggle:hover,
    .ecosystem-menu > a:hover,
    .ecosystem-menu > a:focus-visible,
    .ecosystem-contact-links a:hover {
        transform: none;
    }
}


/* ==========================================================
   ÉCOSYSTÈME — MOBILE PLEIN ÉCRAN
========================================================== */

.ecosystem-mobile-header {
    display: none;
}

@media (max-width: 600px) {



    body.ecosystem-open {
        overflow: hidden;
    }


    /* BOUTONS FLOTTANTS */

    .ecosystem-switcher {
        position: fixed !important;
        right: 14px !important;
        bottom: 14px !important;
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10000 !important;
    }

    .ecosystem-toggle {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .ecosystem-switcher.open .ecosystem-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }


    /* PANNEAU PLEIN ÉCRAN */

    .ecosystem-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100vw !important;
        max-width: none !important;

        height: auto !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: var(--paper) !important;
        box-shadow: none !important;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        opacity: 1 !important;
        visibility: hidden;

        transform: translateX(100%) !important;
        transform-origin: center !important;

        pointer-events: none;

        transition:
            transform .32s ease,
            visibility 0s linear .32s !important;

        z-index: 2100;
    }

    .ecosystem-switcher.open .ecosystem-menu {
        visibility: visible;
        transform: translateX(0) !important;
        pointer-events: auto;

        transition:
            transform .32s ease,
            visibility 0s !important;
    }

    .ecosystem-menu::before {
        display: none !important;
    }


    /* EN-TÊTE MOBILE */

    .ecosystem-mobile-header {
        position: sticky;
        top: 0;
        z-index: 10;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;

        min-height: 72px;

        padding:
            max(14px, env(safe-area-inset-top))
            20px
            14px;

        background: var(--navy);
        color: #fff;

        border-bottom: 1px solid var(--line-light);
    }

    .ecosystem-mobile-header > strong {
        margin: 0;
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .ecosystem-close {
        display: inline-flex;
        align-items: center;
        gap: 8px;

        padding: 9px 12px;

        border: 1px solid rgba(255,255,255,.25);
        border-radius: 999px;

        background: var(--signal);
        color: #fff;

        font: inherit;
        font-size: .82rem;
        font-weight: 700;

        cursor: pointer;
    }

    .ecosystem-close span:last-child {
        font-size: 1.4rem;
        line-height: .8;
        font-weight: 400;
    }


    /* LIENS */

    .ecosystem-menu > a {
        position: relative;
        display: block;

        margin: 0 !important;
        padding: 17px 56px 17px 22px !important;

        border-radius: 0 !important;
        border-bottom: 1px solid var(--line);

        background: var(--paper);

        transform: none !important;
    }

    .ecosystem-menu > a::after {
        content: "→";

        position: absolute;
        right: 22px;
        top: 50%;

        transform: translateY(-50%);

        color: var(--signal);
        font-size: 1.25rem;
        font-weight: 700;
    }

    .ecosystem-menu > a:hover,
    .ecosystem-menu > a:focus-visible {
        background: var(--paper-2);
        transform: none !important;
    }

    .ecosystem-menu > a strong {
        margin: 0 0 4px;

        color: var(--ink);

        font-size: 1rem;
        line-height: 1.25;
    }

    .ecosystem-menu > a span {
        color: var(--ink-soft);
        font-size: .8rem;
        line-height: 1.4;
    }

    .ecosystem-current-label {
        margin-bottom: 5px;

        color: var(--signal) !important;

        font-size: .62rem !important;
    }


    /* CONTACT */

    .ecosystem-contact {
        margin: 0 !important;

        padding:
            22px
            20px
            calc(22px + env(safe-area-inset-bottom)) !important;

        border-radius: 0 !important;

        background: var(--navy);
        color: #fff;
    }

    .ecosystem-contact > span {
        margin: 0 0 12px;
        padding: 0;

        text-align: left;

        color: rgba(255,255,255,.65);

        font-size: .68rem;
    }

    .ecosystem-contact-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .ecosystem-menu .ecosystem-contact-links a {
        min-height: 52px;

        padding: 11px 12px;

        border-radius: 0;

        background: var(--navy-2);
        color: #fff;

        transform: none;
    }

    .ecosystem-menu .ecosystem-phone {
        grid-column: 1 / -1;
        justify-content: flex-start;
        min-height: 62px;
    }

    .ecosystem-phone-content strong {
        color: #fff;
        font-size: .95rem;
    }

    .ecosystem-phone-content small {
        color: rgba(255,255,255,.82);
        font-size: .8rem;
    }
}


@media (max-width: 380px) {

    .ecosystem-menu > a {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .ecosystem-contact {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* =========================================================
   BACK TO TOP — MASQUÉ SOUS 1200 PX
========================================================= */

@media(max-width:1199px){
    .back-to-top,
    #backToTop{
        display:none !important;
    }
}


/* CORRECTION CAMERAS SUR MOBILE */
@media (max-width: 770px) {

    .camera-wall {
        display: block;
    }

    .camera-shot,
    .camera-shot-main {
        display: block;
        width: 100%;
        margin: 0 0 2rem 0;
        grid-row: auto;
    }

    .camera-screen,
    .camera-shot-main .camera-screen {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .camera-shot figcaption {
        display: block;
        position: static;
        width: 100%;
        margin: 0;
        padding: .75rem 0 0;
        line-height: 1.3;
    }
}

/* ÉCOSYSTÈME — TABLETTE ET MOBILE */
@media (max-width: 1199px) {
    .ecosystem-switcher {
        right: 1rem !important;
        bottom: 1rem !important;
    }
}


    .site-footer {
        padding-bottom: 110px;
    }