*{box-sizing:border-box;margin:0;padding:0}
:root{
  --blue:#061844;
  --blue2:#0b2d70;
  --blue3:#064cba;
  --yellow:#ffc400;
  --text:#071944;
  --border:#e2e7ef;
}
html,body{width:100%;overflow-x:hidden}
body{font-family:Arial,Helvetica,sans-serif;background:#fff;color:var(--text)}
a{text-decoration:none}
img{max-width:100%}

/* HEADER DESKTOP */
.top{height:72px;background:linear-gradient(90deg,#020b25,#08265d);color:#fff}
.top-inner{width:min(1400px,92%);height:72px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:25px;position:relative}
.logo-wrap{position:absolute;left:0;top:14px;z-index:10;display:block}
.logo-wrap img{width:175px;background:white;border-radius:14px;padding:5px;display:block}
.top-title{margin-left:255px;font-weight:900;font-size:16px;white-space:nowrap}
.top-title span{color:var(--yellow)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:13px}
.top-right a{color:#fff}
.search{font-size:28px;line-height:1}
.social{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:bold}
.fb{background:#246bd6}.yt{background:#e31c24}.ig{background:linear-gradient(135deg,#7b2cff,#ff7a00)}
.mobile-toggle{display:none}

/* MENU DESKTOP */
.menu{height:58px;background:rgba(5,24,70,.95);padding-left:calc((100% - min(1400px,92%))/2 + 265px);display:flex;align-items:center}
.menu a{height:58px;padding:0 24px;color:white;display:flex;align-items:center;font-weight:800;font-size:15px;white-space:nowrap}
.menu a.active{background:var(--yellow);color:var(--text)}

/* ACCUEIL DESKTOP */
.hero{min-height:345px;background:radial-gradient(circle at 20% 30%,#0a3a92,#06163b 55%,#020916);color:white;display:grid;grid-template-columns:minmax(320px,36%) minmax(520px,1fr);gap:35px;padding:35px max(65px,calc((100% - 1400px)/2 + 65px)) 28px;position:relative;overflow:hidden}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(0,80,210,.25),transparent 55%),radial-gradient(circle at 100% 0,#0d58cc55,transparent 35%)}
.hero-left,.featured{position:relative;z-index:1}
.hero-left{padding-top:30px}
.hero-left h1{font-size:38px;line-height:1.08;font-weight:1000}
.hero-left h1 span{color:var(--yellow)}
.hero-left p{font-size:17px;max-width:430px;margin:16px 0;line-height:1.35}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--yellow);color:var(--text);font-weight:900;border-radius:6px;padding:12px 20px;border:0;cursor:pointer}
.featured{height:280px;border-radius:12px;overflow:hidden;background:#fff;border:1px solid rgba(255,255,255,.6);box-shadow:0 18px 35px rgba(0,0,0,.25)}
.featured:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.65));z-index:1;pointer-events:none}
.featured img{width:100%;height:100%;object-fit:contain;background:#fff;position:absolute;inset:0;z-index:0}
.tag{position:absolute;z-index:2;top:14px;left:16px;background:#094cb8;border-radius:5px;padding:8px 14px;font-weight:900}
.play{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);width:82px;height:82px;border:5px solid white;border-radius:50%;display:grid;place-items:center;font-size:36px;color:#fff;background:rgba(0,0,0,.18)}
.featured-bottom{position:absolute;z-index:2;left:22px;bottom:20px;right:210px;color:white}
.featured-bottom h2{font-size:24px;color:white;line-height:1.15}
.featured-bottom p{margin-top:8px}
.video-btn{position:absolute;z-index:2;right:22px;bottom:22px;background:var(--yellow);color:var(--text);font-weight:900;padding:12px 26px;border-radius:5px}

/* CONTENU DESKTOP */
.content{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;padding:0 max(65px,calc((100% - 1400px)/2 + 65px));background:#fff}
.main-col{padding-top:18px;min-width:0}
.side-col{background:#061844;padding:0 12px 15px;min-width:0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:15px}
.section-head h2{font-size:22px;color:#071944}
.section-head h2:after{content:"";display:block;width:90px;height:3px;background:var(--yellow);margin-top:5px}
.section-head a{border:1px solid #0b3184;border-radius:5px;padding:9px 18px;color:#08246b;font-weight:900;font-size:12px}
.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.card{border:1px solid var(--border);border-radius:8px;overflow:hidden;min-height:238px;box-shadow:0 5px 15px rgba(0,0,0,.04);background:white;position:relative}
.thumb{height:108px;background:#dce8f5}
.thumb img{width:100%;height:100%;object-fit:contain;background:#fff}
.icon{position:absolute;top:84px;left:12px;width:48px;height:48px;border-radius:50%;background:#0b63d8;border:4px solid white;color:white;display:grid;place-items:center;font-size:20px}
.purple{background:#6828a9}.green{background:#369b2f}.orange{background:#ef7f14}.pink{background:#cc2d65}
.card h3{font-size:15px;color:#071b68;margin:34px 10px 7px;line-height:1.2}
.card p{font-size:12px;margin:0 10px 14px;line-height:1.45}
.card strong{font-size:11px;color:#073aa3;margin:0 10px 10px;display:block}
.videos-head{margin-top:14px}
.videos{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.vimg{height:90px;border-radius:6px;position:relative;overflow:hidden;display:block;background:#eee}
.vimg img{width:100%;height:100%;object-fit:contain;background:#fff}
.vimg span{position:absolute;left:4px;bottom:4px;background:#000;color:white;font-size:11px;padding:2px 5px;border-radius:3px}
.videos h4{font-size:13px;color:#071b68;margin-top:6px}.videos p{font-size:12px;color:#071944;margin-top:2px}
.panel{background:#09245c;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:white;margin:10px 0;padding:14px}
.panel h2{font-size:20px;color:white;margin-bottom:10px}
.event-row{display:grid;grid-template-columns:52px 1fr 45px;gap:9px;background:#0b2d70;border-radius:5px;padding:8px;margin-bottom:5px;align-items:center}
.event-row b{background:white;color:#003ea0;border-radius:4px;text-align:center;font-size:22px;line-height:.9;padding:7px 0}
.event-row b span{display:block;font-size:11px;margin-top:5px}
.event-row p{font-size:12px}.event-row time{font-size:12px}
.blue-btn{display:block;background:#064cba;text-align:center;color:white;font-weight:900;border-radius:4px;padding:10px;margin-top:10px;font-size:12px}
.direct h2{color:var(--yellow)}
.direct p,.newsletter p{font-size:13px;margin-bottom:12px}
.newsletter form{display:flex;gap:6px}
.newsletter input{flex:1;padding:10px;border-radius:4px;border:0;min-width:0}
.newsletter button{background:var(--yellow);border:0;font-weight:900;border-radius:4px;padding:0 12px}

/* PAGES */
.page{padding:30px max(65px,calc((100% - 1400px)/2 + 65px))}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.form{max-width:760px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px}
.form input,.form textarea,.form select,input,textarea,select{width:100%;padding:12px;margin-bottom:12px;border:1px solid #ccd6ea;border-radius:6px}
footer{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;background:#061844;color:white;padding:16px max(65px,calc((100% - 1400px)/2 + 65px));align-items:center}
footer div{border-right:1px solid rgba(255,255,255,.25);padding:0 15px;min-height:48px}
footer div:last-child{border:0}
footer span{font-size:30px;color:var(--yellow);float:left;margin-right:12px}
footer strong{font-size:14px}
footer img{width:44px;float:left;margin-right:10px}

/* ADMIN */
.admin-page{background:#eef4ff;min-height:100vh;padding:40px}
.admin-box{max-width:460px;margin:auto;background:white;padding:28px;border-radius:14px}
.admin-layout{display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.admin-sidebar{background:#061844;color:white;padding:20px}
.admin-sidebar a{display:block;color:white;padding:11px;border-radius:6px}
.admin-sidebar a:hover{background:#0b2d70}
.admin-main{padding:25px;min-width:0}
.table{width:100%;border-collapse:collapse;background:white}
.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left}
.table img{width:70px}
.alert{background:#fff3cd;border-left:5px solid var(--yellow);padding:12px;margin-bottom:15px}

/* TABLETTE */
@media(max-width:1200px) and (min-width:901px){
  .menu{padding-left:240px}
  .menu a{padding:0 14px;font-size:13px}
  .cards{grid-template-columns:repeat(3,1fr)}
  .videos{grid-template-columns:repeat(3,1fr)}
  .content{grid-template-columns:1fr 320px;padding:0 30px}
  .hero{padding-left:30px;padding-right:30px}
}

/* MOBILE UNIQUEMENT */
@media(max-width:900px){
  body{font-size:15px}
  .top{height:70px}
  .top-inner{width:100%;height:70px;padding:0 14px}
  .logo-wrap{position:static}
  .logo-wrap img{width:auto;height:54px;border-radius:8px;padding:3px}
  .top-title,.top-right{display:none}
  .mobile-toggle{display:block;background:var(--yellow);color:var(--text);border:0;width:44px;height:44px;border-radius:8px;font-size:26px;font-weight:900;line-height:1;z-index:1001}
  .menu{display:none;position:fixed;top:70px;left:0;right:0;height:auto;max-height:calc(100vh - 70px);overflow-y:auto;background:#061844;padding:12px;flex-direction:column;z-index:1000;box-shadow:0 18px 35px rgba(0,0,0,.3)}
  body.menu-open .menu{display:flex}
  .menu a{width:100%;height:auto;min-height:48px;padding:14px 16px;border-radius:8px;font-size:14px;border-bottom:1px solid rgba(255,255,255,.08)}
  .menu a.active{background:var(--yellow);color:var(--text)}
  .hero{display:block;min-height:auto;padding:22px 14px 18px}
  .hero-left{padding-top:0}
  .hero-left h1{font-size:26px;line-height:1.12;margin-bottom:12px}
  .hero-left p{font-size:15px;line-height:1.45;margin:12px 0 16px}
  .btn,.blue-btn,.video-btn{width:100%;justify-content:center;text-align:center;padding:12px 14px;font-size:13px}
  .featured{height:230px;margin-top:18px;border-radius:10px}
  .tag{top:10px;left:10px;padding:6px 10px;font-size:12px}
  .play{width:58px;height:58px;font-size:24px;border-width:4px}
  .featured-bottom{left:12px;right:12px;bottom:12px}
  .featured-bottom h2{font-size:16px;line-height:1.25}
  .featured-bottom p{font-size:12px}
  .video-btn{position:static;margin-top:10px;display:flex}
  .content{display:block;padding:0 14px 20px}
  .main-col{padding-top:18px}
  .side-col{background:transparent;padding:0}
  .section-head{display:block;margin-bottom:14px}
  .section-head h2{font-size:22px;margin-bottom:10px}
  .section-head a{display:block;width:100%;text-align:center;padding:11px}
  .cards,.videos,.grid{grid-template-columns:1fr;gap:14px}
  .card{min-height:auto;border-radius:10px}
  .thumb{height:175px}
  .icon{top:148px}
  .card h3{font-size:19px;margin-top:36px}
  .card p{font-size:14px;line-height:1.45}
  .card strong{font-size:12px}
  .videos article{border:1px solid var(--border);border-radius:10px;padding:10px;background:#fff}
  .vimg{height:180px}
  .videos h4{font-size:16px}
  .panel{margin:14px 0;padding:14px;border-radius:10px}
  .event-row{grid-template-columns:52px 1fr;align-items:start}
  .event-row time{grid-column:2;font-weight:900;color:var(--yellow)}
  .newsletter form{display:block}
  .newsletter input{width:100%;margin-bottom:10px}
  .newsletter button{width:100%;padding:12px}
  .page{padding:22px 14px}
  .page h1{font-size:26px;line-height:1.15;margin-bottom:16px}
  .form{max-width:100%;padding:15px}
  input,textarea,select{font-size:16px}
  footer{display:block;padding:18px 14px}
  footer div{border-right:0;border-bottom:1px solid rgba(255,255,255,.22);padding:14px 0;min-height:auto;overflow:hidden}
  footer div:last-child{border-bottom:0}
  footer img{width:54px}
  .admin-page{padding:14px}
  .admin-box{width:100%;margin:20px auto;padding:18px}
  .admin-layout{display:block}
  .admin-sidebar{padding:12px}
  .admin-sidebar img{width:130px!important;display:block;margin-bottom:12px!important}
  .admin-sidebar a{display:inline-block;padding:9px 10px;margin:4px;font-size:13px;background:#0b2d70}
  .admin-main{padding:14px}
  .table{display:block;overflow-x:auto;white-space:nowrap;width:100%}
  .table th,.table td{padding:8px;font-size:13px}
  .table img{width:52px}
  .cke_chrome{max-width:100%!important}
}

@media(max-width:420px){
  .hero-left h1{font-size:23px}
  .featured{height:210px}
  .thumb,.vimg{height:150px}
  .card h3{font-size:17px}
}
.about-hero {
  background: linear-gradient(135deg,#061844,#0b3c95);
  color: white;
  padding: 45px;
  border-radius: 16px;
  margin-bottom: 25px;
}

.about-hero span {
  color: #ffc400;
  font-weight: 900;
  text-transform: uppercase;
}

.about-hero h1 {
  font-size: 46px;
  margin: 10px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.about-card,
.about-section,
.about-values,
.about-join {
  background: white;
  border: 1px solid #e2e7ef;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}

.about-card h2,
.about-section h2,
.about-values h2,
.about-join h2 {
  color: #0b2d70;
  margin-bottom: 16px;
}

.about-card p,
.about-join p {
  line-height: 1.8;
}

.president {
  background: #ffc400;
  color: #071944;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 14px;
}

.about-list div,
.about-values div {
  background: #f4f8ff;
  border-left: 5px solid #ffc400;
  padding: 15px;
  border-radius: 10px;
  font-weight: 700;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 14px;
}

.about-values h2 {
  grid-column: 1 / -1;
}

.about-join {
  background: linear-gradient(135deg,#0b2d70,#064cba);
  color: white;
}

.about-join h2 {
  color: #ffc400;
}

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

  .about-hero {
    padding: 25px;
  }

  .about-hero h1 {
    font-size: 32px;
  }
}

/* Direct municipal */
.direct-player,
.video-frame,
.featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.direct-player iframe,
.video-frame iframe,
.featured iframe,
.direct-player video,
.video-frame video,
.featured video,
.direct-player img,
.video-frame img,
.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile */
@media(max-width:900px){
  .direct-player,
  .video-frame,
  .featured{
    min-height:240px;
  }
}
.direct-player {
  width: 100%;
  max-width: 1200px;
  height: 675px;
  margin: 20px auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.direct-player iframe,
.responsive-video {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

@media(max-width:900px) {
  .direct-player {
    height: 260px;
  }
}