/*
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
*/

/* ==========================================================================
   1. DÉCLARATION DES POLICES (Tout au début du fichier)
   ========================================================================== */

/* Segoe UI - Regular */
@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI'),
         url('https://s-microsoft.com') format('woff2'),
         url('https://s-microsoft.com') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Segoe UI - SemiBold */
@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI Semibold'), local('Segoe UI Regular'),
         url('https://s-microsoft.com') format('woff2'),
         url('https://s-microsoft.com') format('woff');
    font-weight: 600;
    font-style: normal;
}

/* Segoe UI - Bold */
@font-face {
    font-family: 'Segoe UI';
    src: local('Segoe UI Bold'),
         url('https://s-microsoft.com') format('woff2'),
         url('https://s-microsoft.com') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   2. APPLICATION ET RESTE DE VOS STYLES (En dessous)
   ========================================================================== */

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif !important;
}


/* Vos autres styles commencent ici... */
h1 {
    color: #333;
}


:root{--ads-red:#e30613;--ads-red-dark:#bd0711;--ink:#17191d;--muted:#656b73;--line:#e4e6e9;--soft:#f6f7f8;--footer:#202226;--radius:10px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
a{color:inherit}
.top-accent{height:4px;background:linear-gradient(90deg,#c6c9ce,#f7f7f7 48%,#c6c9ce)}
.page-container{max-width:1240px}
.site-header{height:72px;background:#fff;position:relative;z-index:5;border-bottom:1px solid #eceef0}
.site-header .navbar{height:100%;padding:0}
.brand-mark{font-family:'Manrope',sans-serif;font-size:27px;font-weight:800;letter-spacing:-2px;color:var(--ads-red);line-height:1}
.brand-mark span{color:#202226}
.brand-separator{height:25px;width:1px;background:#d9dce0}
.brand-caption{font-size:12px;color:#555d66;font-weight:500;letter-spacing:.01em}
.language-switch{border:0;border-bottom:2px solid var(--ads-red);background:transparent;display:flex;align-items:center;gap:9px;height:72px;padding:0 15px;font-weight:700;color:#34383e}
.language-switch i{font-size:16px}
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #e9ebed;
    display: flex;
    align-items: center;
    /* 100% de l'écran moins (4px barre du haut + 72px header + ~64px footer = 140px) */
    min-height: calc(100vh - 200px);
    min-height: calc(100dvh - 200px);
}
.hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url(/static/images/bg_login.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.015);
}
.hero-overlay{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(246,247,248,.98) 0%,rgba(246,247,248,.96) 26%,rgba(246,247,248,.83) 43%,rgba(246,247,248,.22) 72%,rgba(246,247,248,.08) 100%)}
.min-vh-hero {
    padding-top: 20px;
    padding-bottom: 20px;
}
.login-card{background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.8);border-radius:var(--radius);padding:32px 30px 25px;box-shadow:0 18px 55px rgba(21,27,35,.13);backdrop-filter:blur(8px)}
.section-kicker{height:4px;width:29px;background:var(--ads-red);margin-bottom:15px}
.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:700;color:#737982;margin-bottom:9px}
.login-card h1{font-family:'Manrope',sans-serif;font-size:30px;letter-spacing:-.045em;font-weight:800;margin:0 0 10px}
.login-intro{font-size:13px;line-height:1.7;color:#5f646b;margin:0 0 24px}
.form-label{font-size:12px;font-weight:700;color:#34383e;margin-bottom:7px}
.field-group .input-group-text,.field-group .form-control{height:47px;border-color:#dfe2e5;background:#fff;font-size:13px}
.field-group .input-group-text{color:#7a8088;padding:0 13px}
.field-group .form-control{box-shadow:none;padding-left:12px}
.field-group .form-control:focus{border-color:#8f949b;box-shadow:0 0 0 3px rgba(227,6,19,.08);z-index:3}
.field-group:focus-within .input-group-text{border-color:#8f949b}
.field-group .form-control::placeholder{color:#a1a5ab}
.password-toggle{cursor:pointer;border-left:0!important}
.password-toggle:hover{background:#f8f8f8}
.text-link{color:#353a41;text-decoration:underline;text-underline-offset:3px}
.text-link:hover{color:var(--ads-red)}
.btn-ads{background:var(--ads-red);border:1px solid var(--ads-red);border-radius:6px;color:white;font-size:14px;font-weight:700;padding:13px 18px;transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.btn-ads:hover,.btn-ads:focus{background:var(--ads-red-dark);border-color:var(--ads-red-dark);color:#fff;box-shadow:0 5px 16px rgba(227,6,19,.18)}
.btn-ads:active{transform:translateY(1px)}
.security-note{display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.5;color:#777d84}
.security-note i{font-size:15px;color:#5e7967}
.login-divider{display:flex;align-items:center;gap:12px;color:#9a9ea4;font-size:10px;font-weight:700;margin:22px 0 17px}
.login-divider:before,.login-divider:after{content:"";height:1px;background:#e8eaec;flex:1}
.request-access{text-align:center;font-size:12px;color:#646a72;line-height:1.7}
.request-access a{font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px;margin-left:3px}
.request-access a:hover{color:var(--ads-red)}
.hero-caption{font-size:11px;color:#555e68;margin:15px 2px 0}
.hero-bottom-label{position:absolute;right:max(calc((100vw - 1240px)/2),30px);bottom:25px;align-items:center;gap:8px;background:rgba(255,255,255,.88);padding:9px 13px;border-radius:30px;font-size:11px;color:#444b52;box-shadow:0 3px 15px #0000000b}
.status-dot{width:7px;height:7px;background:#3b8d60;border-radius:50%}
.section-space{padding:76px 0}
.intro-section{background:#fff}
.section-heading{font-family:'Manrope',sans-serif;font-size:clamp(25px,3vw,34px);letter-spacing:-.045em;line-height:1.2;font-weight:800;margin:0 0 14px;max-width:680px}
.section-description{max-width:700px;color:var(--muted);font-size:14px;line-height:1.85;margin:0}
.benefit-line{display:flex;gap:12px;align-items:center;color:#363b41;font-size:13px;margin:11px 0}
.benefit-line i{font-size:20px;color:var(--ads-red)}
.features-section{background:#f7f8f9}
.feature-card{padding:26px 22px 24px;background:#fff;border:1px solid #eaeced;border-radius:8px;transition:transform .2s ease,box-shadow .2s ease}
.feature-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(25,30,38,.06)}
.feature-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:9px;background:#fff0f1;color:var(--ads-red);font-size:23px;margin-bottom:20px}
.feature-card h3{font-family:'Manrope',sans-serif;font-size:16px;font-weight:800;letter-spacing:-.02em;margin-bottom:10px}
.feature-card p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}
.support-section{padding:52px 0}
.support-panel{display:flex;align-items:center;gap:22px;border:1px solid #e5e7e9;border-radius:10px;padding:27px 30px;background:#fff}
.support-icon{width:52px;height:52px;flex:0 0 52px;border-radius:50%;display:grid;place-items:center;background:#fff0f1;color:var(--ads-red);font-size:23px}
.support-copy{flex:1}
.support-copy h2{font-family:'Manrope',sans-serif;font-size:18px;font-weight:800;letter-spacing:-.025em;margin:0 0 6px}
.support-copy p{font-size:12px;line-height:1.7;color:var(--muted);margin:0;max-width:620px}
.support-button{white-space:nowrap;border-radius:5px;padding:11px 15px;font-size:12px;font-weight:700}
.support-button:hover{background:#202226;color:white}
.site-footer{
    background:#fff;
    color:#fff;
    padding:39px 0 20px}
.footer-brand{text-decoration:none;display:inline-block}
.footer-brand .brand-mark span{color:#fff}
.footer-tagline{
    font-size:10px;
    color:#000;
    letter-spacing:.1em;
    margin:9px 0 0}
.footer-links a{
    font-size:11px;
    color:#000000;
    text-decoration:none}
.footer-links a:hover{
    color: #595d63;
    text-decoration:underline;
    text-underline-offset:4px}
.footer-bottom{
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    border-top:1px solid #51555c;
    margin-top:29px;
    padding-top:17px;
    color:#000;
    font-size:10px}
.form-alert{font-size:12px;line-height:1.5}
@media(max-width:991.98px){.min-vh-hero{min-height:530px}.hero-overlay{background:linear-gradient(90deg,rgba(246,247,248,.98),rgba(246,247,248,.88) 60%,rgba(246,247,248,.52))}.hero-image{background-position:58% center}.login-card{max-width:440px}.section-space{padding:60px 0}.support-panel{align-items:flex-start;flex-wrap:wrap}.support-copy{min-width:calc(100% - 80px)}.support-button{margin-left:74px}}
@media(max-width:575.98px){.site-header{height:62px}.language-switch{height:62px;padding:0 5px 0 12px}.brand-mark{font-size:25px}.brand-caption{font-size:11px}.brand-separator{height:22px}.min-vh-hero{min-height:unset;padding-top:26px;padding-bottom:30px}.hero-section{background:#f0f1f3}.hero-image{background-position:60% center}.hero-overlay{background:rgba(246,247,248,.88)}.login-card{padding:27px 21px 23px}.login-card h1{font-size:28px}.login-intro{font-size:12px}.hero-caption{font-size:10px}.section-space{padding:48px 0}.section-heading{font-size:27px}.feature-card{padding:22px}.support-section{padding:25px 0 40px}.support-panel{padding:22px;gap:15px}.support-icon{width:44px;height:44px;flex-basis:44px}.support-copy{min-width:calc(100% - 60px)}.support-button{margin-left:59px}.footer-bottom{flex-direction:column}.footer-links{justify-content:flex-start!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
@media (min-width: 1200px) and (min-height: 750px) {
    html, body {
        height: 100vh;
        overflow: hidden;
    }
    .intro-section,
    .features-section,
    .support-section {
        display: none;
    }
    .hero-section {
        height: calc(100vh - 135px); /* 76px header + ~59px footer */
    }
    .login-card {
        margin-top: 25px;
    }
}