/* assets/css/main.css — Collège Louis Armant */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Quicksand',sans-serif}
:root{
  --teal:#2a9d8f;--teal2:#3bbfb0;--teal-dim:rgba(42,157,143,0.10);
  --dark:#1e293b;--text:#334155;--muted:#64748b;--light:#e0f7f5;
  --radius:18px;--shadow:0 8px 32px rgba(0,0,0,0.07)
}
html{scroll-behavior:smooth}
body{background:#f8fafc;color:var(--text);overflow-x:hidden}

/* ─── SKIP LINK (accessibilité) ─── */
.skip-link{position:absolute;top:-40px;left:0;background:var(--teal);color:white;padding:8px 16px;z-index:99999;border-radius:0 0 8px 0;font-weight:700;text-decoration:none;transition:top .2s}
.skip-link:focus{top:0}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.5)}}
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes scrollLine{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform:scaleY(1);transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}
@keyframes notifSlide{from{transform:translateX(120%);opacity:0}to{transform:translateX(0);opacity:1}}

/* ─── LOADER ─── */
#loader{position:fixed;inset:0;background:white;z-index:9999;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;transition:opacity .5s,visibility .5s}
#loader.hide{opacity:0;visibility:hidden;pointer-events:none}
.loader-logo{width:72px;height:72px;border-radius:18px;overflow:hidden;animation:bounce 1s infinite}
.loader-logo img{width:100%;height:100%;object-fit:cover}
.loader-bar{width:180px;height:4px;background:#e2e8f0;border-radius:4px;overflow:hidden}
.loader-fill{height:100%;background:linear-gradient(90deg,var(--teal),var(--teal2));border-radius:4px;animation:shimmer 1.2s infinite;background-size:200% 100%}
.loader-text{font-size:.82rem;font-weight:600;color:var(--muted)}

/* ─── COOKIES BANNER ─── */
#cookie-banner{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:min(820px,94vw);background:white;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,0.14);padding:22px 28px;display:flex;align-items:flex-start;gap:20px;z-index:8000;animation:fadeUp .6s ease;border:1px solid rgba(42,157,143,0.18)}
#cookie-banner.hide{display:none}
.cookie-icon{width:46px;height:46px;border-radius:12px;background:var(--teal-dim);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.cookie-icon svg{width:22px;height:22px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round}
.cookie-body{flex:1}
.cookie-body strong{display:block;font-size:.9rem;font-weight:700;color:var(--dark);margin-bottom:5px}
.cookie-body p{font-size:.81rem;color:var(--muted);line-height:1.6}
.cookie-body a{color:var(--teal);text-decoration:none;font-weight:600}
.cookie-body a:hover{text-decoration:underline}
.cookie-toggles{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.cookie-toggle{display:flex;align-items:center;gap:10px;font-size:.81rem;font-weight:600;color:var(--dark)}
.toggle-sw{position:relative;width:38px;height:20px;flex-shrink:0}
.toggle-sw input{opacity:0;width:0;height:0;position:absolute}
.toggle-track{position:absolute;inset:0;background:#cbd5e1;border-radius:20px;cursor:pointer;transition:.2s}
.toggle-track::before{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;background:white;border-radius:50%;transition:.2s}
.toggle-sw input:checked + .toggle-track{background:var(--teal)}
.toggle-sw input:checked + .toggle-track::before{left:21px}
.cookie-btns{display:flex;gap:9px;flex-shrink:0;align-self:flex-start;margin-top:2px}
.btn-cookie-ok{background:var(--teal);color:white;border:none;padding:10px 22px;border-radius:10px;font-weight:700;font-size:.82rem;cursor:pointer;font-family:'Quicksand',sans-serif;transition:.2s;white-space:nowrap}
.btn-cookie-ok:hover{background:var(--teal2)}
.btn-cookie-ref{background:transparent;color:var(--muted);border:1px solid #e2e8f0;padding:10px 16px;border-radius:10px;font-weight:600;font-size:.82rem;cursor:pointer;font-family:'Quicksand',sans-serif;transition:.2s;white-space:nowrap}
.btn-cookie-ref:hover{border-color:var(--teal);color:var(--teal)}

/* ─── NOTIFICATIONS ─── */
#notif-container{position:fixed;top:80px;right:20px;z-index:7000;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.notif{background:white;border-radius:14px;box-shadow:0 10px 36px rgba(0,0,0,0.12);padding:14px 18px;display:flex;align-items:center;gap:12px;min-width:280px;border-left:4px solid var(--teal);animation:notifSlide .4s ease;pointer-events:all}
.notif svg{width:18px;height:18px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round;flex-shrink:0}
.notif-body strong{display:block;font-size:.85rem;font-weight:700;color:var(--dark)}
.notif-body span{font-size:.77rem;color:var(--muted)}

/* ─── NAV ─── */
nav#navbar{position:fixed;top:0;width:100%;background:rgba(255,255,255,0.97);border-bottom:.5px solid rgba(0,0,0,0.08);padding:0 4%;display:flex;justify-content:space-between;align-items:center;z-index:1000;backdrop-filter:blur(14px);height:66px;transition:box-shadow .3s}
nav#navbar.scrolled{box-shadow:0 4px 24px rgba(0,0,0,0.08)}
.logo{display:flex;align-items:center;gap:11px;text-decoration:none}
.logo-img{width:40px;height:40px;border-radius:10px;object-fit:cover;flex-shrink:0}
.logo-fallback{width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#2a9d8f,#1e7a6e);display:none;align-items:center;justify-content:center;color:white;font-weight:800;font-size:1.1rem;flex-shrink:0}
.logo-text{font-weight:700;font-size:1.05rem;color:var(--dark);line-height:1.15}
.logo-text span{display:block;font-size:.6rem;font-weight:500;color:var(--teal);letter-spacing:.07em;text-transform:uppercase}
.nav-links{display:flex;gap:1px;align-items:center}
.nav-links a{text-decoration:none;color:var(--text);font-weight:600;font-size:.76rem;transition:.2s;padding:7px 8px;border-radius:9px;position:relative;white-space:nowrap}
.nav-links a::after{content:'';position:absolute;bottom:2px;left:50%;transform:translateX(-50%) scaleX(0);width:16px;height:2px;background:var(--teal);border-radius:2px;transition:.25s}
.nav-links a:hover{color:var(--teal)}
.nav-links a:hover::after,.nav-links a.active::after{transform:translateX(-50%) scaleX(1)}
.nav-links a.active{color:var(--teal)}
.btn-portal{background:var(--dark)!important;color:white!important;padding:8px 14px!important;border-radius:10px!important;display:flex!important;align-items:center;gap:6px;font-size:.76rem!important;transition:.2s!important}
.btn-portal::after{display:none!important}
.btn-portal:hover{background:#334155!important;transform:translateY(-1px)}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px;background:none;border:none}
.hamburger span{display:block;width:22px;height:2px;background:var(--dark);border-radius:2px;transition:.3s}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{display:none;position:fixed;top:66px;left:0;right:0;background:white;border-bottom:1px solid rgba(0,0,0,0.07);padding:16px 5%;flex-direction:column;gap:3px;z-index:999;box-shadow:0 8px 24px rgba(0,0,0,0.08)}
.mobile-menu a{text-decoration:none;color:var(--dark);font-weight:600;font-size:.92rem;padding:11px 14px;border-radius:10px;display:block;transition:.2s}
.mobile-menu a:hover{background:var(--teal-dim);color:var(--teal)}
.mobile-menu.open{display:flex}

/* ─── MAIN CONTENT ─── */
#main-content{padding-top:66px;min-height:100vh}

/* ─── HERO ─── */
.hero{height:76vh;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;color:white;overflow:hidden}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.04);transition:transform 8s ease}
.hero-bg.loaded{transform:scale(1)}
.hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(160deg,rgba(3,90,140,0.80) 0%,rgba(42,157,143,0.55) 55%,rgba(3,90,140,0.85) 100%)}
.hero-content{position:relative;z-index:2;max-width:780px;padding:0 20px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.3);color:white;padding:6px 16px;border-radius:30px;font-size:.76rem;font-weight:700;letter-spacing:.05em;margin-bottom:22px;animation:fadeUp .6s ease}
.hero-badge::before{content:'';width:7px;height:7px;background:#6ee7b7;border-radius:50%;animation:pulse 2s infinite}
.hero-content h1{font-size:clamp(2.3rem,5.5vw,4.2rem);font-weight:700;text-shadow:0 4px 20px rgba(0,0,0,.25);line-height:1.12;margin-bottom:16px;animation:fadeUp .6s .1s ease both}
.hero-content h1 em{font-style:normal;color:#a7f3d0}
.hero-content p{font-size:1.02rem;opacity:.88;margin-bottom:32px;line-height:1.65;animation:fadeUp .6s .2s ease both}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;animation:fadeUp .6s .3s ease both}
.hero-scroll{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:2;display:flex;flex-direction:column;align-items:center;gap:7px;color:rgba(255,255,255,.65);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.scroll-line{width:1px;height:36px;background:linear-gradient(var(--teal),transparent);animation:scrollLine 1.8s infinite}

/* ─── HERO MINI ─── */
.hero-mini{height:44vh;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;color:white;overflow:hidden}
.hero-mini .hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(rgba(3,90,140,.78),rgba(42,157,143,.60))}
.hero-mini-content{position:relative;z-index:2;animation:fadeUp .6s ease}
.hero-mini h1{font-size:clamp(1.9rem,4.5vw,3rem);font-weight:700;text-shadow:0 4px 15px rgba(0,0,0,.25)}
.hero-mini p{font-size:.96rem;opacity:.86;margin-top:9px;max-width:540px}
.breadcrumb{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;font-size:.76rem;opacity:.8;color:white;z-index:2;flex-wrap:wrap;justify-content:center}
.breadcrumb a{color:white;text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{opacity:.5}

/* ─── BUTTONS ─── */
.btn-white{background:white;color:var(--teal);padding:13px 28px;border-radius:12px;font-weight:700;font-size:.9rem;text-decoration:none;display:inline-flex;align-items:center;gap:7px;transition:.25s;border:none;cursor:pointer;font-family:'Quicksand',sans-serif}
.btn-white:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.15)}
.btn-ghost-w{background:rgba(255,255,255,.12);color:white;padding:13px 28px;border-radius:12px;font-weight:600;font-size:.9rem;text-decoration:none;border:1px solid rgba(255,255,255,.3);transition:.25s;cursor:pointer;display:inline-flex;align-items:center;gap:7px;font-family:'Quicksand',sans-serif}
.btn-ghost-w:hover{background:rgba(255,255,255,.22);transform:translateY(-2px)}
.btn-primary{padding:11px 22px;border-radius:10px;border:none;background:var(--dark);color:white;cursor:pointer;font-weight:700;font-size:.88rem;text-decoration:none;display:inline-flex;align-items:center;gap:7px;transition:.2s;font-family:'Quicksand',sans-serif}
.btn-primary:hover{background:#334155;transform:translateY(-1px)}
.btn-teal{background:var(--teal);color:white;padding:11px 22px;border-radius:10px;border:none;font-weight:700;font-size:.88rem;cursor:pointer;display:inline-flex;align-items:center;gap:7px;transition:.2s;text-decoration:none;font-family:'Quicksand',sans-serif}
.btn-teal:hover{background:var(--teal2);transform:translateY(-1px)}

/* ─── LAYOUT ─── */
.section{max-width:1100px;margin:0 auto 72px;padding:0 20px}
.section.mt50{margin-top:50px}
.sec-title{margin-bottom:32px}
.sec-title h2{font-size:1.9rem;font-weight:700;color:var(--dark)}
.sec-title .ul{width:50px;height:4px;background:var(--teal);margin:8px 0 0;border-radius:2px}
.sec-title p{margin-top:10px;color:var(--muted);font-size:.9rem;line-height:1.7;max-width:640px}
.sec-center{text-align:center;margin-bottom:38px;padding:0 20px}
.sec-center h2{font-size:2rem;font-weight:700;color:var(--dark)}
.sec-center .ul{margin:10px auto 0;width:50px;height:4px;background:var(--teal);border-radius:2px}
.sec-center p{margin-top:10px;color:var(--muted);font-size:.9rem;line-height:1.7;max-width:580px;margin-left:auto;margin-right:auto}

/* ─── SERVICE CARDS ACCUEIL ─── */
.services-bar{max-width:1100px;margin:-46px auto 58px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:0 20px;position:relative;z-index:10}
.service-card{background:white;padding:24px 16px;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;transition:.3s;text-decoration:none;color:inherit;border:1px solid transparent;display:block}
.service-card:hover{transform:translateY(-7px);border-color:var(--teal);box-shadow:0 18px 40px rgba(0,0,0,.1)}
.s-icon{width:52px;height:52px;background:var(--teal-dim);border-radius:14px;margin:0 auto 13px;display:flex;align-items:center;justify-content:center;transition:.3s}
.service-card:hover .s-icon{background:var(--teal)}
.service-card:hover .s-icon svg{stroke:white}
.s-icon svg{width:24px;height:24px;fill:none;stroke:var(--teal);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:.3s}
.service-card h4{font-weight:700;font-size:.98rem;color:var(--dark)}
.service-card p{font-size:.78rem;color:var(--muted);margin-top:3px}

/* ─── NEWS ─── */
.content-grid{max-width:1100px;margin:0 auto 75px;display:grid;grid-template-columns:2fr 1fr;gap:24px;padding:0 20px}
.news-box{background:white;border-radius:var(--radius);overflow:hidden;border:1px solid rgba(0,0,0,.06);box-shadow:var(--shadow);transition:.3s}
.news-box:hover{box-shadow:0 18px 40px rgba(0,0,0,.1)}
.news-img-wrap{height:210px;overflow:hidden;position:relative}
.news-img-wrap img{width:100%;height:100%;object-fit:cover;transition:.5s}
.news-box:hover .news-img-wrap img{transform:scale(1.05)}
.news-img-wrap::after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 45%,white)}
.news-body{padding:24px}
.tag{background:var(--teal);color:white;padding:4px 12px;border-radius:20px;font-size:.72rem;font-weight:700;display:inline-block}
.news-body h3{margin-top:12px;font-size:1.4rem;font-weight:700;color:var(--dark)}
.news-body p{margin:12px 0 18px;color:var(--muted);line-height:1.7;font-size:.9rem}
.news-side{display:flex;flex-direction:column;gap:14px}
.news-small{background:white;border-radius:14px;padding:16px;border:1px solid rgba(0,0,0,.06);text-decoration:none;color:inherit;flex:1;transition:.25s;display:flex;flex-direction:column;gap:7px;box-shadow:0 3px 12px rgba(0,0,0,.04);overflow:hidden}
.news-small:hover{border-color:var(--teal);transform:translateX(3px)}
.news-small-img{height:80px;border-radius:9px;overflow:hidden;margin-bottom:6px}
.news-small-img img{width:100%;height:100%;object-fit:cover;transition:.4s}
.news-small:hover .news-small-img img{transform:scale(1.06)}
.news-small .tag2{font-size:.68rem;font-weight:700;color:var(--teal);text-transform:uppercase;letter-spacing:.06em}
.news-small h5{font-size:.88rem;font-weight:700;color:var(--dark);line-height:1.4}
.news-small .date{font-size:.76rem;color:var(--muted)}

/* ─── ÉTABLISSEMENTS ─── */
.etab-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.etab-card{background:white;border-radius:var(--radius);overflow:hidden;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow);transition:.3s}
.etab-card:hover{transform:translateY(-4px);border-color:var(--teal);box-shadow:0 18px 44px rgba(0,0,0,.1)}
.etab-header{padding:28px 28px 22px;border-bottom:1px solid #f1f5f9;display:flex;align-items:center;gap:16px}
.etab-logo{width:56px;height:56px;border-radius:14px;background:linear-gradient(135deg,var(--teal),#1a7a6e);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.etab-logo svg{width:28px;height:28px;fill:none;stroke:white;stroke-width:1.8;stroke-linecap:round}
.etab-header h3{font-size:1.1rem;font-weight:700;color:var(--dark);line-height:1.3}
.etab-header .etab-type{font-size:.75rem;color:var(--muted);margin-top:2px;font-weight:600}
.etab-body{padding:22px 28px}
.etab-body p{font-size:.85rem;color:var(--muted);line-height:1.7;margin-bottom:18px}
.etab-infos{display:flex;flex-direction:column;gap:9px}
.etab-info-row{display:flex;align-items:flex-start;gap:10px;font-size:.82rem}
.etab-info-row svg{width:14px;height:14px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round;flex-shrink:0;margin-top:2px}
.etab-info-row span{color:var(--muted);font-weight:600;min-width:80px;flex-shrink:0}
.etab-info-row strong{color:var(--dark);font-weight:700}

/* ─── QUI SOMMES-NOUS ─── */
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center}
.text-block p{color:var(--muted);line-height:1.8;margin-bottom:14px;font-size:.92rem}
.highlight-box{background:var(--light);border:1px solid rgba(42,157,143,.22);border-radius:14px;padding:17px 20px;margin-top:6px}
.highlight-box p{color:#0d6b60;font-weight:600;font-size:.88rem;margin:0;line-height:1.6;font-style:italic}
.pres-img{border-radius:var(--radius);overflow:hidden;height:360px;box-shadow:0 16px 40px rgba(0,0,0,.12)}
.pres-img img{width:100%;height:100%;object-fit:cover}
.vals-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.val-card{background:white;border-radius:var(--radius);padding:24px 20px;border:.5px solid rgba(0,0,0,.06);transition:.3s;box-shadow:var(--shadow)}
.val-card:hover{border-color:var(--teal);transform:translateY(-4px)}
.val-icon{width:48px;height:48px;border-radius:12px;margin-bottom:14px;display:flex;align-items:center;justify-content:center;transition:.3s}
.val-card:hover .val-icon{transform:scale(1.1)}
.val-icon svg{width:24px;height:24px;fill:none;stroke-width:2;stroke-linecap:round}
.val-card h4{font-weight:700;font-size:.93rem;color:var(--dark);margin-bottom:7px}
.val-card p{font-size:.82rem;color:var(--muted);line-height:1.65}
.timeline-wrap{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.timeline{position:relative;padding-left:26px}
.timeline::before{content:'';position:absolute;left:7px;top:8px;bottom:8px;width:2px;background:var(--light);border-radius:2px}
.tl-item{position:relative;margin-bottom:26px}
.tl-dot{position:absolute;left:-22px;top:4px;width:13px;height:13px;border-radius:50%;background:var(--teal);border:3px solid #f8fafc;box-shadow:0 0 0 2px var(--teal)}
.tl-year{font-size:.74rem;font-weight:700;color:var(--teal);margin-bottom:3px}
.tl-item h4{font-size:.92rem;font-weight:700;color:var(--dark)}
.tl-item p{font-size:.8rem;color:var(--muted);margin-top:2px;line-height:1.6}

/* ─── ACTUALITÉS ─── */
.actu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.actu-card{background:white;border-radius:var(--radius);overflow:hidden;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow);transition:.3s}
.actu-card:hover{transform:translateY(-5px);border-color:var(--teal)}
.actu-img{height:155px;overflow:hidden}
.actu-img img{width:100%;height:100%;object-fit:cover;transition:.45s}
.actu-card:hover .actu-img img{transform:scale(1.07)}
.actu-body{padding:18px}
.actu-body h4{font-size:.93rem;font-weight:700;color:var(--dark);margin:9px 0 6px;line-height:1.35}
.actu-body p{font-size:.8rem;color:var(--muted);line-height:1.6}
.actu-date{font-size:.72rem;color:var(--muted);margin-top:9px;font-weight:600;display:flex;align-items:center;gap:5px}
.actu-date svg{width:12px;height:12px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}
.ev-list{display:flex;flex-direction:column;gap:10px}
.ev-item{background:white;border-radius:12px;padding:14px 16px;border:.5px solid rgba(0,0,0,.06);box-shadow:0 3px 10px rgba(0,0,0,.04);transition:.2s;display:flex;gap:12px;align-items:flex-start}
.ev-item:hover{border-color:var(--teal);transform:translateX(3px)}
.ev-dot{width:8px;height:8px;background:var(--teal);border-radius:50%;flex-shrink:0;margin-top:5px}
.ev-item h5{font-size:.85rem;font-weight:700;color:var(--dark);margin-bottom:2px}
.ev-item span{font-size:.76rem;color:var(--muted)}

/* ─── ÉQUIPE ─── */
.team-grid-8{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.team-card{background:white;border-radius:var(--radius);padding:26px 18px;text-align:center;border:.5px solid rgba(0,0,0,.06);transition:.3s;box-shadow:var(--shadow)}
.team-card:hover{transform:translateY(-5px);border-color:var(--teal);box-shadow:0 18px 40px rgba(0,0,0,.1)}
.avatar-init{width:70px;height:70px;border-radius:50%;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:700;color:white}
.team-card h4{font-weight:700;font-size:.93rem;color:var(--dark)}
.team-card .role{font-size:.75rem;color:var(--muted);margin-top:3px;line-height:1.4}
.team-card .email-link{font-size:.7rem;color:var(--teal);margin-top:10px;text-decoration:none;display:inline-flex;align-items:center;gap:4px;word-break:break-all;line-height:1.5}
.team-card .email-link:hover{text-decoration:underline}
.team-card .email-link svg{width:11px;height:11px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round;flex-shrink:0}

/* ─── NOS SERVICES ─── */
.services-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.srv-card{background:white;border-radius:var(--radius);padding:22px 20px;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow);transition:.3s;display:flex;gap:16px;align-items:flex-start;position:relative;overflow:hidden}
.srv-card::before{content:'';position:absolute;top:0;left:0;bottom:0;width:4px;background:var(--teal);transform:scaleY(0);transform-origin:top;transition:.3s}
.srv-card:hover::before{transform:scaleY(1)}
.srv-card:hover{border-color:var(--teal);transform:translateY(-3px);box-shadow:0 16px 40px rgba(0,0,0,.09)}
.srv-icon{width:50px;height:50px;border-radius:13px;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:.3s}
.srv-icon svg{width:24px;height:24px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.srv-card:hover .srv-icon{transform:scale(1.08)}
.srv-content h4{font-weight:700;font-size:.95rem;color:var(--dark);margin-bottom:6px}
.srv-content p{font-size:.81rem;color:var(--muted);line-height:1.65}
.srv-tag{display:inline-flex;align-items:center;gap:4px;margin-top:9px;font-size:.7rem;font-weight:700;color:var(--teal);background:var(--teal-dim);padding:3px 10px;border-radius:20px}
.srv-tag svg{width:10px;height:10px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round}
.support-banner{background:linear-gradient(135deg,#0f766e,#2a9d8f);border-radius:var(--radius);padding:32px 36px;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:24px}
.support-banner h3{color:white;font-size:1.15rem;font-weight:700}
.support-banner p{color:rgba(255,255,255,.8);font-size:.85rem;margin-top:5px}

/* ─── NOS LIENS ─── */
.liens-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.lien-card{background:white;border-radius:var(--radius);padding:28px 22px;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow);transition:.3s;text-decoration:none;color:inherit;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;position:relative;overflow:hidden}
.lien-card:hover{transform:translateY(-6px);border-color:var(--teal);box-shadow:0 20px 44px rgba(0,0,0,.1)}
.lien-icon{width:60px;height:60px;border-radius:16px;display:flex;align-items:center;justify-content:center;transition:.3s;flex-shrink:0}
.lien-icon svg{width:28px;height:28px;fill:none;stroke-width:1.8;stroke-linecap:round}
.lien-card:hover .lien-icon{transform:scale(1.08)}
.lien-card h4{font-weight:700;font-size:1rem;color:var(--dark)}
.lien-card p{font-size:.8rem;color:var(--muted);line-height:1.55}
.lien-url{font-size:.74rem;font-weight:700;color:var(--teal);display:flex;align-items:center;gap:4px;margin-top:2px}
.lien-url svg{width:11px;height:11px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round}

/* ─── CONTACT ─── */
.ic-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.ic-card{background:white;border-radius:var(--radius);padding:22px 16px;text-align:center;border:.5px solid rgba(0,0,0,.06);transition:.3s;text-decoration:none;color:inherit;box-shadow:var(--shadow);display:block}
.ic-card:hover{transform:translateY(-4px);border-color:var(--teal)}
.ic-icon{width:50px;height:50px;border-radius:13px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center}
.ic-icon svg{width:24px;height:24px;fill:none;stroke-width:2;stroke-linecap:round}
.ic-card h4{font-weight:700;font-size:.88rem;color:var(--dark);margin-bottom:4px}
.ic-card p{font-size:.76rem;color:var(--muted);line-height:1.5}
.ic-card strong{display:block;font-size:.82rem;font-weight:700;color:var(--dark);margin-top:4px}
.ct-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:28px;align-items:start}
.form-box{background:white;border-radius:var(--radius);padding:30px;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow)}
.form-box h3{font-size:1.1rem;font-weight:700;color:var(--dark);margin-bottom:22px}
.fg{margin-bottom:16px}
.fg label{display:block;font-weight:700;font-size:.83rem;color:var(--dark);margin-bottom:6px}
.fg input,.fg select,.fg textarea{width:100%;padding:11px 14px;border:1px solid #e2e8f0;border-radius:11px;font-size:.86rem;font-family:'Quicksand',sans-serif;color:var(--dark);transition:.2s;background:#fafafa}
.fg input:focus,.fg select:focus,.fg textarea:focus{outline:none;border-color:var(--teal);background:white;box-shadow:0 0 0 3px rgba(42,157,143,.1)}
.fg textarea{resize:vertical;min-height:120px}
.fg-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.btn-submit{width:100%;padding:13px;border-radius:11px;border:none;background:var(--teal);color:white;font-weight:700;font-size:.92rem;cursor:pointer;transition:.2s;font-family:'Quicksand',sans-serif;display:flex;align-items:center;justify-content:center;gap:9px}
.btn-submit:hover{background:var(--teal2);transform:translateY(-1px)}
.btn-submit:disabled{opacity:.7;cursor:not-allowed;transform:none}
.btn-submit svg{width:16px;height:16px;fill:none;stroke:white;stroke-width:2;stroke-linecap:round}
.aside-ct{display:flex;flex-direction:column;gap:16px}
.ct-block{background:white;border-radius:var(--radius);padding:20px;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow)}
.ct-block h3{font-size:.94rem;font-weight:700;color:var(--dark);margin-bottom:14px;display:flex;align-items:center;gap:8px}
.ct-block h3 svg{width:17px;height:17px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round}
.ct-row{display:flex;align-items:flex-start;gap:9px;padding:9px 0;border-bottom:.5px solid #f1f5f9;font-size:.82rem}
.ct-row:last-child{border-bottom:none}
.ct-row svg{width:15px;height:15px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round;flex-shrink:0;margin-top:2px}
.ct-row span{color:var(--muted);font-weight:600;min-width:75px}
.ct-row a,.ct-row p{color:var(--dark);font-weight:600;text-decoration:none;margin:0}
.ct-row a:hover{color:var(--teal)}
.hor-block{background:var(--light);border-radius:var(--radius);padding:20px}
.hor-block h3{font-size:.94rem;font-weight:700;color:#0d6b60;margin-bottom:13px;display:flex;align-items:center;gap:8px}
.hor-block h3 svg{width:16px;height:16px;fill:none;stroke:#0d6b60;stroke-width:2;stroke-linecap:round}
.h-row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:.5px solid rgba(13,107,96,.15);font-size:.81rem}
.h-row:last-child{border-bottom:none}
.h-row span{color:#0d6b60;font-weight:600}
.success-msg{display:none;background:#d1fae5;border:1px solid #6ee7b7;border-radius:11px;padding:13px 16px;font-size:.85rem;color:#065f46;font-weight:600;margin-top:13px;align-items:center;gap:9px}
.success-msg svg{width:17px;height:17px;fill:none;stroke:#059669;stroke-width:2;stroke-linecap:round;flex-shrink:0}

/* ─── MENTIONS LÉGALES ─── */
.legal-content{max-width:820px;margin:0 auto;padding:0 20px 72px}
.legal-content h2{font-size:1.6rem;font-weight:700;color:var(--dark);margin-bottom:8px}
.legal-content .ul{width:50px;height:4px;background:var(--teal);border-radius:2px;margin-bottom:32px}
.legal-section{background:white;border-radius:var(--radius);padding:28px;margin-bottom:18px;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow)}
.legal-section h3{font-size:1rem;font-weight:700;color:var(--dark);margin-bottom:12px;display:flex;align-items:center;gap:9px}
.legal-section h3 svg{width:17px;height:17px;fill:none;stroke:var(--teal);stroke-width:2;stroke-linecap:round;flex-shrink:0}
.legal-section p,.legal-section li{font-size:.86rem;color:var(--muted);line-height:1.8}
.legal-section ul{padding-left:18px;margin-top:8px}
.legal-section li{margin-bottom:5px}
.legal-section a{color:var(--teal);text-decoration:none}
.legal-section a:hover{text-decoration:underline}
.legal-section strong{color:var(--dark)}
.alert-rp{margin-top:12px;background:#fef3c7;border-radius:10px;padding:12px 14px;color:#92400e;font-style:italic;font-size:.84rem;line-height:1.6}

/* ─── COOKIES PAGE ─── */
.cookie-pref-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.cookie-pref-card{background:white;border-radius:var(--radius);padding:22px;border:.5px solid rgba(0,0,0,.06);box-shadow:var(--shadow);transition:.3s}
.cookie-pref-card:hover{border-color:var(--teal)}
.cookie-pref-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.cookie-pref-header h4{font-size:.93rem;font-weight:700;color:var(--dark)}
.cookie-pref-card p{font-size:.81rem;color:var(--muted);line-height:1.6}
.pref-required{font-size:.68rem;font-weight:700;color:#059669;background:#d1fae5;padding:2px 9px;border-radius:20px}
.cookie-save-btn{width:100%;padding:14px;border-radius:12px;border:none;background:var(--teal);color:white;font-weight:700;font-size:.95rem;cursor:pointer;font-family:'Quicksand',sans-serif;transition:.2s;display:flex;align-items:center;justify-content:center;gap:9px}
.cookie-save-btn:hover{background:var(--teal2);transform:translateY(-1px)}
.cookie-save-btn svg{width:18px;height:18px;fill:none;stroke:white;stroke-width:2;stroke-linecap:round}
.cookie-saved-msg{display:none;background:#d1fae5;border:1px solid #6ee7b7;border-radius:11px;padding:14px 18px;font-size:.88rem;color:#065f46;font-weight:700;margin-top:14px;align-items:center;gap:10px}
.cookie-saved-msg svg{width:18px;height:18px;fill:none;stroke:#059669;stroke-width:2;stroke-linecap:round;flex-shrink:0}

/* ─── DISCORD GRID ─── */

/* ─── FOOTER ─── */
footer{background:var(--dark);color:#94a3b8;padding:50px 5% 28px}
.footer-inner{max-width:1100px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:36px;margin-bottom:36px}
.footer-brand p{color:#94a3b8;font-size:.83rem;line-height:1.7;margin-top:14px;max-width:230px}
.footer-logo{display:flex;align-items:center;gap:11px}
.footer-logo img{width:36px;height:36px;border-radius:9px;object-fit:cover}
.footer-logo-text{font-weight:700;font-size:1rem;color:white;line-height:1.15}
.footer-logo-text span{display:block;font-size:.58rem;font-weight:500;color:var(--teal);letter-spacing:.07em;text-transform:uppercase}
.footer-col h5{color:white;font-weight:700;font-size:.88rem;margin-bottom:14px}
.footer-col a{display:block;color:#94a3b8;text-decoration:none;font-size:.82rem;margin-bottom:8px;transition:.2s}
.footer-col a:hover{color:var(--teal)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.07);padding-top:22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;font-size:.79rem}
.footer-bottom a{color:var(--teal);text-decoration:none}
.footer-bottom a:hover{text-decoration:underline}
.footer-social{display:flex;gap:10px}
.soc-btn{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.07);display:flex;align-items:center;justify-content:center;transition:.2s;text-decoration:none}
.soc-btn:hover{background:var(--teal)}
.soc-btn svg{width:16px;height:16px;fill:none;stroke:white;stroke-width:2;stroke-linecap:round}

/* ─── TEAM CONTACT BANNER ─── */
.team-contact-banner{background:var(--light);border-radius:var(--radius);padding:28px 32px;border:1px solid rgba(42,157,143,.2);display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 20px}

/* ─── ANIMATIONS ENTRÉE ─── */
.animate-in{opacity:0;transform:translateY(24px);transition:opacity .5s ease, transform .5s ease}
.animate-in.visible{opacity:1;transform:translateY(0)}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .team-grid-8{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:900px){
  .services-bar,.ic-grid{grid-template-columns:repeat(2,1fr)}
  .vals-grid,.liens-grid,.cookie-pref-grid{grid-template-columns:1fr 1fr}
  .two-col,.ct-layout,.timeline-wrap,.content-grid{grid-template-columns:1fr}
  .actu-grid{grid-template-columns:1fr 1fr}
  .etab-grid{grid-template-columns:1fr}
  .support-banner{flex-direction:column;text-align:center}
  .footer-grid{grid-template-columns:1fr 1fr}
  .services-grid{grid-template-columns:1fr}
  .team-grid-8{grid-template-columns:repeat(2,1fr)}
  .discord-grid{grid-template-columns:1fr 1fr}
  .pres-img{height:260px}
}
@media(max-width:768px){
  .nav-links a:not(.btn-portal){display:none}
  .hamburger{display:flex}
  .hero-content h1{font-size:2.3rem}
  .hero-mini h1{font-size:2rem}
  .ic-grid{grid-template-columns:1fr}
  .fg-row{grid-template-columns:1fr}
  #cookie-banner{flex-direction:column;text-align:center}
  .cookie-btns{justify-content:center;flex-wrap:wrap}
  .liens-grid,.actu-grid{grid-template-columns:1fr}
  .discord-grid{grid-template-columns:1fr}
  .team-contact-banner{flex-direction:column;text-align:center}
  .support-banner{padding:24px 20px}
}
@media(max-width:480px){
  .services-bar,.vals-grid,.liens-grid,.team-grid-8,.cookie-pref-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .hero{height:90vh}
  .hero-mini{height:50vh}
  .services-bar{margin-top:-24px}
}

/* ─── PRINT ─── */
@media print{
  #loader,#cookie-banner,#notif-container,nav#navbar,.mobile-menu,.hero-scroll,footer{display:none!important}
  #main-content{padding-top:0!important}
  body{background:white}
}

/* ════════════════════════════════════════════════════════════
   MISES À JOUR — LOGO + FOOTER + MOBILE OPTIMISATION
   ════════════════════════════════════════════════════════════ */

/* ─── LOADER avec vrai logo ─── */
.loader-logo{
  width:88px;height:88px;border-radius:20px;overflow:hidden;
  animation:bounce 1.1s infinite;
  background:linear-gradient(135deg,var(--teal),#1a7a6e);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 36px rgba(42,157,143,.35);
}
.loader-logo img{
  width:100%;height:100%;object-fit:cover;border-radius:inherit;
}
.loader-logo-fallback{
  display:none;color:white;font-size:1.5rem;font-weight:800;letter-spacing:-.02em;
}
/* Si l'image se charge, on masque le fallback */
.loader-logo img[src] ~ .loader-logo-fallback{ display:none }

/* ─── LOGO NAV — image réelle ─── */
.logo-img{
  width:42px;height:42px;border-radius:11px;
  object-fit:cover;flex-shrink:0;
  box-shadow:0 2px 10px rgba(0,0,0,.12);
  transition:.25s;
}
.logo:hover .logo-img{ transform:scale(1.05) }
/* Fallback nav si logo absent */
.logo-fallback{
  width:42px;height:42px;border-radius:11px;
  background:linear-gradient(135deg,#2a9d8f,#1e7a6e);
  display:none;align-items:center;justify-content:center;
  flex-shrink:0;
}

/* ─── FOOTER LOGO ─── */
.footer-logo-link{
  display:inline-flex;align-items:center;gap:12px;
  text-decoration:none;margin-bottom:14px;
}
.footer-logo-img{
  width:44px;height:44px;border-radius:12px;
  object-fit:cover;flex-shrink:0;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}
.footer-logo-fallback-wrap{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,#2a9d8f,#1a7a6e);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.footer-logo-text{
  font-weight:700;font-size:1.02rem;color:white;line-height:1.2;
}
.footer-logo-text span{
  display:block;font-size:.58rem;font-weight:500;
  color:var(--teal);letter-spacing:.07em;text-transform:uppercase;
  margin-top:1px;
}

/* ─── FOOTER HÉBERGEUR ─── */
.footer-hebergeur-card{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;padding:11px 13px;margin-top:8px;
}
.hebergeur-logo{
  width:32px;height:32px;border-radius:8px;
  object-fit:cover;flex-shrink:0;
}
.footer-hebergeur-card div{
  display:flex;flex-direction:column;gap:2px;
}
.footer-hebergeur-card strong{
  color:white;font-size:.82rem;font-weight:700;
}
.footer-hebergeur-card span{
  color:#64748b;font-size:.72rem;
}
.footer-hebergeur-card a{
  color:var(--teal);font-size:.72rem;font-weight:600;
  text-decoration:none;
}
.footer-hebergeur-card a:hover{ text-decoration:underline }

/* ─── FOOTER ADRESSE BAR ─── */
.footer-address-bar{
  display:flex;flex-wrap:wrap;gap:18px;
  padding:18px 0;
  border-top:1px solid rgba(255,255,255,.06);
  margin-top:16px;
}
.footer-address{
  display:flex;align-items:center;gap:7px;
  font-size:.78rem;color:#64748b;
}
.footer-address svg{ flex-shrink:0;opacity:.7 }
.footer-address a{
  color:#64748b;text-decoration:none;transition:.2s;
}
.footer-address a:hover{ color:var(--teal) }

/* ─── FOOTER SOCIAL (déplacé dans brand) ─── */
.footer-brand .footer-social{
  display:flex;gap:9px;margin-top:16px;
}

/* ─── MENU MOBILE AMÉLIORÉ ─── */
.mobile-menu-divider{
  height:1px;background:rgba(0,0,0,.07);
  margin:6px 0;
}
.mobile-menu a.active{
  background:var(--teal-dim);color:var(--teal);
}
.mobile-ent-btn{
  background:var(--dark)!important;
  color:white!important;
  border-radius:11px!important;
  display:flex!important;
  align-items:center;gap:7px;
  font-size:.88rem!important;
  padding:11px 14px!important;
  margin:2px 0;
  text-decoration:none;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — OPTIMISATION COMPLÈTE
   ════════════════════════════════════════════════════════════ */

/* ─── Tablette large ─── */
@media(max-width:1100px){
  .footer-grid{ grid-template-columns:1.5fr 1fr 1fr 1fr; gap:24px }
}

/* ─── Tablette ─── */
@media(max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px }
  .footer-bottom{ flex-direction:column; text-align:center; gap:10px }
  .footer-address-bar{ flex-direction:column; gap:10px }
  /* Cacher les réseaux sociaux du footer-bottom, ils sont dans la brand */
  .footer-bottom .footer-social{ display:none }

  /* Hero responsive */
  .hero{ height:85vh }
  .hero-content h1{ font-size:clamp(2rem,6vw,3.2rem) }
  .hero-mini{ height:48vh }
  .hero-mini h1{ font-size:clamp(1.8rem,5vw,2.6rem) }

  /* Grilles */
  .two-col{ grid-template-columns:1fr; gap:28px }
  .ct-layout{ grid-template-columns:1fr }
  .timeline-wrap{ grid-template-columns:1fr }
  .content-grid{ grid-template-columns:1fr }
  .services-bar{ grid-template-columns:repeat(2,1fr); margin-top:-28px }
  .vals-grid{ grid-template-columns:repeat(2,1fr) }
  .liens-grid{ grid-template-columns:repeat(2,1fr) }
  .discord-grid{ grid-template-columns:repeat(2,1fr) }
  .etab-grid{ grid-template-columns:1fr }
  .services-grid{ grid-template-columns:1fr }
  .team-grid-8{ grid-template-columns:repeat(3,1fr) }
  .ic-grid{ grid-template-columns:repeat(2,1fr) }
  .actu-grid{ grid-template-columns:repeat(2,1fr) }
  .cookie-pref-grid{ grid-template-columns:repeat(2,1fr) }
  .pres-img{ height:280px }
  .support-banner{ flex-direction:column; text-align:center; padding:24px 20px }
  .team-contact-banner{ flex-direction:column; text-align:center; padding:22px 20px }
}

/* ─── Mobile ─── */
@media(max-width:768px){
  /* Nav */
  .nav-links a:not(.btn-portal){ display:none }
  .hamburger{ display:flex }

  /* Mobile menu plus large */
  .mobile-menu{ padding:12px 4% 20px; max-height:calc(100vh - 66px); overflow-y:auto }
  .mobile-menu a{ padding:12px 14px; font-size:.9rem }

  /* Hero */
  .hero{ height:100svh; min-height:520px }
  .hero-content h1{ font-size:clamp(1.9rem,7vw,2.8rem) }
  .hero-content p{ font-size:.92rem }
  .hero-actions{ gap:10px }
  .hero-actions .btn-white,
  .hero-actions .btn-ghost-w{ padding:11px 20px; font-size:.84rem }
  .hero-mini{ height:50vh; min-height:300px }
  .hero-mini h1{ font-size:clamp(1.6rem,6vw,2.2rem) }

  /* Services bar */
  .services-bar{ grid-template-columns:repeat(2,1fr); gap:12px; padding:0 14px; margin-top:-22px }
  .service-card{ padding:18px 12px }
  .s-icon{ width:44px;height:44px }

  /* Sections */
  .section{ margin-bottom:48px }
  .sec-title h2{ font-size:1.55rem }
  .sec-center h2{ font-size:1.55rem }

  /* Grilles mobile */
  .vals-grid{ grid-template-columns:1fr }
  .liens-grid{ grid-template-columns:1fr }
  .discord-grid{ grid-template-columns:1fr }
  .team-grid-8{ grid-template-columns:repeat(2,1fr) }
  .actu-grid{ grid-template-columns:1fr }
  .ic-grid{ grid-template-columns:1fr }
  .cookie-pref-grid{ grid-template-columns:1fr }
  .fg-row{ grid-template-columns:1fr }

  /* Footer */
  .footer-grid{ grid-template-columns:1fr; gap:24px }
  .footer-logo-text{ font-size:.92rem }

  /* Cookie banner */
  #cookie-banner{
    flex-direction:column; text-align:center;
    bottom:0; border-radius:16px 16px 0 0;
    padding:20px 16px;
    width:100%;transform:none;left:0;
  }
  .cookie-btns{ justify-content:center; flex-wrap:wrap }
  .cookie-toggles{ text-align:left }

  /* Lien card */
  .lien-card{ flex-direction:row; align-items:center; text-align:left; gap:14px; padding:18px 16px }
  .lien-icon{ width:46px; height:46px; border-radius:12px; flex-shrink:0 }

  /* News */
  .content-grid{ gap:16px }
  .news-img-wrap{ height:160px }

  /* Team contact banner */
  .team-contact-banner{ margin:0 14px }

  /* Legal */
  .legal-section{ padding:20px 16px }

  /* Notif */
  #notif-container{ top:70px; right:10px; left:10px }
  .notif{ min-width:unset; width:100% }
}

/* ─── Très petit mobile ─── */
@media(max-width:380px){
  .services-bar{ grid-template-columns:1fr; gap:10px }
  .team-grid-8{ grid-template-columns:1fr }
  .hero-content h1{ font-size:1.75rem }
  .hero-badge{ font-size:.68rem; padding:5px 12px }
  .nav-links .btn-portal{ padding:7px 10px!important; font-size:.72rem!important }
  .logo-text{ font-size:.92rem }
}

/* ─── Safe area iPhone (notch/home bar) ─── */
@supports (padding-bottom: env(safe-area-inset-bottom)){
  #cookie-banner{ padding-bottom:calc(16px + env(safe-area-inset-bottom)) }
  footer{ padding-bottom:calc(28px + env(safe-area-inset-bottom)) }
  .mobile-menu{ padding-bottom:calc(20px + env(safe-area-inset-bottom)) }
}

/* ─── Touch targets min 44px (accessibilité mobile) ─── */
@media(hover:none){
  .nav-links a{ padding:10px 8px; min-height:44px }
  .mobile-menu a{ min-height:48px; display:flex!important; align-items:center }
  .btn-teal,.btn-primary,.btn-white,.btn-ghost-w{
    min-height:46px; padding:12px 22px
  }
  .btn-submit{ min-height:50px }
  .soc-btn{ width:42px; height:42px }
  .hamburger{ padding:10px; min-height:44px; min-width:44px; align-items:center; justify-content:center }
}

/* ─── Impression ─── */
@media print{
  #loader,#cookie-banner,#notif-container,nav#navbar,
  .mobile-menu,.hero-scroll,footer,
  .hamburger{ display:none!important }
  #main-content{ padding-top:0!important }
  body{ background:white }
  .legal-section{ box-shadow:none!important; border:1px solid #ddd!important }
}

/* ════════════════════════════════════════════════════════════
   LOGOS COLLÈGES + FIX LOGO PRINCIPAL
   ════════════════════════════════════════════════════════════ */

/* Loader — fallback visible par défaut */
.loader-logo-fallback{
  display:flex;
  color:white;font-size:1.4rem;font-weight:800;
  letter-spacing:-.02em;align-items:center;justify-content:center;
  width:100%;height:100%;
}
#loader-img{ display:none } /* masqué jusqu'au onload */

/* Logo nav — fallback visible jusqu'au chargement */
.logo-fallback{
  width:42px;height:42px;border-radius:11px;
  background:linear-gradient(135deg,#2a9d8f,#1e7a6e);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.logo-img{ display:none } /* masqué jusqu'au onload */

/* Footer logo — fallback visible par défaut */
.footer-logo-fallback-wrap{
  width:44px;height:44px;border-radius:12px;
  background:linear-gradient(135deg,#2a9d8f,#1a7a6e);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.footer-logo-img{ display:none } /* masqué jusqu'au onload */

/* ─── Logos établissements ─── */
.etab-logo-img-wrap{
  position:relative;overflow:hidden;
  width:56px;height:56px;border-radius:14px;
  flex-shrink:0;padding:0;
}
.etab-logo-img{
  width:100%;height:100%;object-fit:cover;
  border-radius:inherit;display:block;
}
/* Fallback SVG dans les cards établissements */
.etab-logo-svg-fallback{
  display:none;
  position:absolute;inset:0;
  align-items:center;justify-content:center;
  background:linear-gradient(135deg,var(--teal),#1a7a6e);
  border-radius:inherit;
}
.etab-logo-svg-fallback svg{
  width:28px;height:28px;fill:none;stroke:white;
  stroke-width:1.8;stroke-linecap:round;
}
/* Si onerror → afficher le fallback */
.etab-logo-img[style*="display:none"] ~ .etab-logo-svg-fallback{
  display:flex;
}


/* ════════════════════════════════════════════════════════════
   LOGOS DISCORD CARDS + COOKIE FIRST VISIT + DIVERS
   ════════════════════════════════════════════════════════════ */

/* ─── Cookie banner — affiché par-dessus tout au premier chargement ─── */
#cookie-banner{
  position:fixed;
  bottom:24px;left:50%;
  transform:translateX(-50%);
  width:min(820px,94vw);
  background:white;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.18),0 0 0 1px rgba(42,157,143,0.15);
  padding:22px 28px;
  display:flex;align-items:flex-start;gap:20px;
  z-index:9998; /* juste sous le loader */
  animation:fadeUp .6s ease;
}
#cookie-banner.hide{ display:none!important }

/* Overlay flouté derrière le cookie banner (premier affichage) */
#cookie-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(2px);
  z-index:9997;
  display:none;
}
#cookie-overlay.show{ display:block }

/* ─── Form status messages ─── */
.form-status-msg{ display:flex }

/* ─── Compteur caractères animation ─── */
#char-count{ transition:color .2s }


/* ════════════════════════════════════════════════════════════
   DISCORD CARDS — DÉFINITION UNIQUE ET PROPRE
   ════════════════════════════════════════════════════════════ */

.discord-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.discord-card{
  background:white;
  border-radius:var(--radius);
  padding:22px 18px;
  text-align:center;
  border:.5px solid rgba(0,0,0,.06);
  box-shadow:var(--shadow);
  transition:.3s;
  text-decoration:none;
  color:inherit;
  display:block;
}
.discord-card:hover{
  transform:translateY(-5px);
  border-color:#5865F2;
  box-shadow:0 18px 40px rgba(0,0,0,.1);
}

/* ─── Icône Discord (conteneur 60×60, CONTENU strict) ─── */
.discord-icon{
  width:60px;
  height:60px;
  border-radius:16px;
  margin:0 auto 14px;
  background:#e0e7ff;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;          /* ← clé : logo ne déborde JAMAIS */
  position:relative;
  flex-shrink:0;
  transition:transform .3s;
}
.discord-card:hover .discord-icon{ transform:scale(1.06) }

/* Image logo serveur — remplit exactement le conteneur */
.discord-server-logo{
  width:100%;
  height:100%;
  object-fit:cover;         /* recadre sans déformer */
  border-radius:inherit;
  display:block;
  flex-shrink:0;
}

/* Fallback SVG si image absente */
.discord-icon-fallback{
  position:absolute;inset:0;
  display:none;
  align-items:center;justify-content:center;
  background:#e0e7ff;
  border-radius:inherit;
}
/* Afficher le fallback si l'img est cachée (onerror) */
.discord-server-logo[style*="display:none"] + .discord-icon-fallback,
.discord-server-logo[style*="display: none"] + .discord-icon-fallback{
  display:flex;
}

.discord-card h4{font-weight:700;font-size:.95rem;color:var(--dark);margin-bottom:4px}
.discord-card p{font-size:.78rem;color:var(--muted)}
.discord-url{font-size:.74rem;font-weight:700;color:#5865F2;margin-top:8px}

/* Responsive discord grid */
@media(max-width:900px){ .discord-grid{grid-template-columns:1fr 1fr} }
@media(max-width:600px){ .discord-grid{grid-template-columns:1fr} }
