 :root{--ink:#101114;--ink2:#191b20;--red:#e32636;--red-dark:#bd1727;--paper:#f4f4f2;--white:#fff;--muted:#a9abb1;--line:rgba(255,255,255,.13);--font:'Inter',Arial,sans-serif;--display:'Barlow Condensed','Arial Narrow',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#292b30;color:#f4f4f2;font-family:var(--font);font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.container{width:min(1180px,calc(100% - 48px));margin:auto}.topbar{background:#090a0c;color:#d9d9dc;font-size:11px;letter-spacing:.12em;text-transform:uppercase}.topbar-inner,.topbar-right{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:38px}.topbar-right{gap:20px}.topbar a{color:#fff}.language-switcher{display:flex;gap:10px}.language-switcher a,.language-switcher span{font-size:10px;color:#fff;text-transform:uppercase}.site-header{background:#111216;color:#fff;position:relative;z-index:20;border-bottom:1px solid rgba(255,255,255,.08)}.header-inner{height:86px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;min-width:150px}.custom-logo{max-height:64px;width:auto}.brand-mark{font:800 44px/.8 var(--display);letter-spacing:-.06em;color:#fff}.brand-mark span{color:var(--red)}.brand-caption{font:700 9px var(--font);letter-spacing:.22em;color:#bfc0c4;align-self:flex-end;margin-bottom:2px}.main-nav{display:flex;align-items:center;gap:28px}.main-nav ul,.site-footer ul{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:26px}.main-nav li a{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#e5e5e7;transition:.2s}.main-nav li a:hover{color:#ff5966}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:14px 20px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;transition:.2s;border:0}.button b{font-size:17px}.button-red{background:var(--red);color:#fff}.button-red:hover{background:var(--red-dark);transform:translateY(-2px)}.button-light{background:#fff;color:#111}.button-light:hover{background:#eee;transform:translateY(-2px)}.nav-cta{padding:12px 16px}.nav-toggle{display:none;background:none;border:0;padding:8px}.nav-toggle span{display:block;width:25px;height:2px;background:#fff;margin:5px}
.hero{min-height:660px;background:linear-gradient(90deg,rgba(8,9,12,.96) 0%,rgba(8,9,12,.82) 48%,rgba(8,9,12,.23) 100%),url('../images/hero-autoecole-dan.jpg') center/cover no-repeat;position:relative;color:#fff;display:flex;align-items:center;overflow:hidden}.hero:after{content:"";position:absolute;inset:auto 0 0;height:5px;background:var(--red)}.hero-content{position:relative;z-index:1;padding:75px 0 55px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.2em;color:#c9c9ce;text-transform:uppercase;display:flex;align-items:center;gap:10px;margin-bottom:20px}.eyebrow i{display:inline-block;width:25px;height:3px;background:var(--red)}.eyebrow.dark{color:#676970}.hero h1,.page-hero h1{font:800 clamp(52px,7.5vw,94px)/.91 var(--display);letter-spacing:-.025em;margin:0 0 25px;max-width:850px}.hero h1 span,.page-hero h1 span,.intro-grid h2 span,.section-heading h2 span,.process-grid h2 span{color:var(--red)}.hero-content>p{max-width:510px;color:#d0d0d3;font-size:16px;margin:0 0 30px}.hero-actions{display:flex;align-items:center;gap:28px;flex-wrap:wrap}.text-link{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#fff}.text-link span{color:var(--red);font-size:18px;margin-left:8px}.hero-stats{display:flex;gap:42px;margin-top:65px}.hero-stats div{display:flex;flex-direction:column;border-left:2px solid var(--red);padding-left:13px}.hero-stats strong{font:700 30px/.95 var(--display)}.hero-stats span{font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#bcbec3;margin-top:7px}.hero-vertical{position:absolute;right:28px;bottom:60px;writing-mode:vertical-rl;font-size:9px;letter-spacing:.22em;color:rgba(255,255,255,.55)}.hero-vertical span{color:var(--red);padding:8px 0}
.section-pad{padding:100px 0}.intro-section{background:#292b30;color:#f4f4f2}.intro-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:90px;align-items:end}.intro-grid h2,.section-heading h2,.process-grid h2{font:800 clamp(44px,5.6vw,68px)/.94 var(--display);margin:0;letter-spacing:-.02em}.intro-copy{max-width:490px;color:#c4c6cb}.intro-copy p{margin:0 0 22px}.dark-link{color:#15161a}.training-section{background:#111216;color:#fff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:38px}.section-heading h2{color:#fff}.training-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.training-card{min-height:330px;padding:22px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;background:#24262c;background-size:cover;background-position:center;isolation:isolate}.training-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.9));z-index:-1;transition:.3s}.training-card:hover:before{background:linear-gradient(180deg,rgba(227,38,54,.05),rgba(0,0,0,.94))}.card-car{background-image:url('../images/permis-voiture.jpg')}.card-moto{background-image:url('../images/permis-moto.jpg')}.card-trailer{background-image:url('../images/permis-remorque.jpg')}.card-tractor{background-image:url('../images/permis-tracteur.jpg')}.card-number{font-size:10px;letter-spacing:.15em;color:#e2e2e2}.training-card h3{font:700 29px/.95 var(--display);margin:0 0 9px}.training-card p{font-size:12px;color:#d0d0d0;margin:0;max-width:220px}.training-card b{position:absolute;right:22px;bottom:20px;color:#fff;font-size:24px}
.process-section{background:#1b1d22;color:#fff}.process-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:100px;align-items:center}.process-grid h2{margin-bottom:22px}.process-grid>div:first-child>p{max-width:400px;color:#b9bbc1;margin-bottom:28px}.steps{border-top:1px solid var(--line)}.step{display:grid;grid-template-columns:70px 1fr;gap:20px;padding:22px 0;border-bottom:1px solid var(--line)}.step>strong{font:700 28px var(--display);color:var(--red)}.step h3{font:700 22px var(--display);margin:0 0 3px}.step p{font-size:12px;color:#b7b8be;margin:0}
.locations-section{background:#292b30;color:#f4f4f2}.locations-section .section-heading{margin-top:4px}.locations-section .section-heading h2{color:#fff}.locations-section .section-heading p{max-width:330px;color:#c4c6cb}.location-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.location-card{background:#fff;padding:28px;min-height:185px;border-top:3px solid var(--red);box-shadow:0 8px 30px rgba(0,0,0,.04)}.location-card>span{font-size:10px;letter-spacing:.15em;color:#a0a1a5}.location-card h3{font:800 34px var(--display);margin:12px 0 5px}.location-card p{font-size:12px;color:#65676d;margin:0}
.cta-band{background:var(--red);color:#fff;padding:52px 0}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}.cta-band .eyebrow{color:#ffe2e4;margin-bottom:8px}.cta-band .eyebrow i{background:#fff}.cta-band h2{font:800 clamp(36px,5vw,58px)/.95 var(--display);margin:0}
.site-footer{background:#0d0e11;color:#fff;padding:65px 0 20px}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:70px;padding-bottom:50px}.footer-brand p{max-width:300px;color:#aeb0b5;font-size:13px}.footer-logo .custom-logo{max-height:55px}.site-footer h3{font:700 20px var(--display);margin:0 0 18px}.site-footer ul{display:block}.site-footer li{margin:8px 0}.site-footer li a,.site-footer p{font-size:12px;color:#b7b8bd}.site-footer a:hover{color:#fff}.footer-bottom{border-top:1px solid var(--line);padding-top:18px;display:flex;justify-content:space-between;color:#777980;font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.page-hero{background:#111216;color:#fff;padding:75px 0 65px;position:relative;overflow:hidden}.page-hero:after{content:"";position:absolute;right:-40px;bottom:-120px;width:360px;height:360px;border:45px solid rgba(227,38,54,.12);border-radius:50%}.page-hero h1{font-size:clamp(48px,7vw,76px);position:relative;z-index:1}.page-hero p{color:#bbb;max-width:560px}.content-area{padding-top:65px;padding-bottom:90px}.single-content{max-width:900px}.page-featured-image{width:100%;max-height:460px;object-fit:cover;margin-bottom:35px}.entry-content{font-size:16px;line-height:1.8}.entry-content h2,.entry-content h3{font-family:var(--display);line-height:1.1}.entry-content h2{font-size:36px}.entry-content a{color:var(--red);text-decoration:underline}.entry-content ul{padding-left:22px}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{background:#fff}.post-card> a img{width:100%;height:220px;object-fit:cover}.post-card-body{padding:24px}.post-date{font-size:10px;color:#8b8d93;text-transform:uppercase;letter-spacing:.1em}.post-card h2{font:700 27px/1.05 var(--display)}.post-card p{font-size:13px;color:#65676d}.post-card .text-link{color:#111}
@media(max-width:900px){.main-nav{gap:15px}.main-nav ul{gap:14px}.main-nav li a{font-size:10px}.training-grid{grid-template-columns:repeat(2,1fr)}.process-grid{gap:50px}.intro-grid{gap:45px}.footer-grid{gap:35px}}
@media(max-width:700px){.container{width:min(100% - 34px,1180px)}.topbar-inner{font-size:9px}.topbar-inner>span{max-width:55%;line-height:1.3}.topbar-right{gap:10px}.header-inner{height:72px}.nav-toggle{display:block;z-index:22}.main-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#111216;padding:22px 24px 28px;align-items:stretch;flex-direction:column;gap:20px;border-top:1px solid var(--line)}.main-nav.is-open{display:flex}.main-nav ul{display:flex;flex-direction:column;align-items:stretch;gap:0}.main-nav li{border-bottom:1px solid var(--line);padding:12px 0}.main-nav li a{font-size:12px}.nav-cta{align-self:flex-start}.hero{min-height:620px;background-position:62% center}.hero-content{padding:70px 0 45px}.hero h1{font-size:clamp(49px,13vw,70px)}.hero-content>p{font-size:14px}.hero-stats{gap:22px;margin-top:48px}.hero-stats strong{font-size:25px}.hero-vertical{display:none}.section-pad{padding:68px 0}.intro-grid,.process-grid{grid-template-columns:1fr;gap:25px}.intro-grid h2,.section-heading h2,.process-grid h2{font-size:52px}.section-heading{align-items:flex-start;flex-direction:column}.training-grid{gap:10px}.training-card{min-height:260px;padding:16px}.training-card h3{font-size:24px}.training-card p{font-size:11px}.steps{margin-top:15px}.location-grid{grid-template-columns:1fr}.location-card{min-height:150px}.cta-inner{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr;gap:28px}.footer-bottom{gap:12px;flex-direction:column}.post-grid{grid-template-columns:1fr}.page-hero{padding:55px 0}.content-area{padding-top:40px;padding-bottom:60px}}

.homepage-notice{background:#fff3f3;border-bottom:1px solid #f1d4d7;color:#25262a;padding:18px 0;font-size:14px}.homepage-notice .container>*:last-child{margin-bottom:0}.homepage-notice p{margin:0 0 8px}.homepage-notice strong{color:#c92335}



/* Homepage driving-licence category horizontal scroller */
.category-strip { background:#f4f4f4; color:#17181c; overflow:hidden; }
.category-strip-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:25px; }
.category-strip-heading h2 { margin:8px 0 0; font-family:var(--display); font-size:clamp(30px,4vw,44px); line-height:.95; letter-spacing:-.02em; }
.category-scroll-controls { display:flex; gap:8px; }
.category-scroll-btn { width:44px; height:44px; border:1px solid #d4d4d4; border-radius:50%; background:#fff; color:#17181c; font-size:22px; cursor:pointer; transition:background .2s,color .2s,border-color .2s; }
.category-scroll-btn:hover,.category-scroll-btn:focus-visible { background:var(--red); border-color:var(--red); color:#fff; }
.category-scroller { display:flex; gap:14px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:4px 2px 16px; scrollbar-width:thin; scrollbar-color:var(--red) #dedede; }
.category-pill { position:relative; flex:0 0 218px; min-height:116px; display:flex; flex-direction:column; justify-content:space-between; gap:8px; padding:17px 18px; border:1px solid #dedede; border-radius:8px; background:#fff; color:#17181c; text-decoration:none; scroll-snap-align:start; transition:transform .2s,border-color .2s,box-shadow .2s; }
.category-pill:hover { transform:translateY(-3px); border-color:var(--red); box-shadow:0 10px 24px rgba(0,0,0,.08); color:#17181c; }
.category-code { color:var(--red); font-family:var(--display); font-size:30px; font-weight:800; line-height:1; }
.category-name { max-width:175px; font-size:13px; font-weight:700; line-height:1.25; }
.category-pill>b { position:absolute; right:16px; bottom:15px; font-size:19px; color:var(--red); }
.category-scroll-hint { margin:5px 0 0; color:#777; font-size:11px; }
@media(max-width:767px) {
 .category-strip-heading { align-items:center; }
 .category-scroll-btn { width:38px; height:38px; }
 .category-pill { flex-basis:185px; min-height:108px; }
}

/* AUTO-ÉCOLE DAN homepage refresh 1.7 */
.site-header{background:#050505;color:#fff;border-bottom:1px solid #303030}
.header-inner{height:82px;position:relative}
.brand{min-width:0}
.brand-name{font:italic 900 clamp(24px,3vw,38px)/.9 var(--display);letter-spacing:-.04em;color:#fff;white-space:nowrap}
.brand-name b{color:var(--red);font-size:1.12em}
.header-tools{margin-left:auto;margin-right:20px}
.language-switcher{gap:14px;align-items:center}
.language-switcher a,.language-switcher span{font-size:12px;font-weight:800;color:#fff;padding:6px 8px;border-radius:5px;background:#1c1c1c}
.main-nav{position:absolute;left:0;right:0;top:82px;min-height:52px;padding:0 max(24px,calc((100vw - 1180px)/2));background:#111;color:#fff;justify-content:space-between;gap:12px;border-top:1px solid #222}
.main-nav ul{width:100%;justify-content:space-between;gap:15px}
.main-nav li a{font-size:12px;color:#fff}
.main-nav li:first-child a{display:inline-block;background:var(--red);padding:10px 22px;border-radius:18px}
.nav-toggle{display:none}
.hero-banner{height:auto;background:#000;overflow:hidden;position:relative}
.hero-banner img{display:block;width:100%;height:auto;object-fit:contain;object-position:center}
.benefits-bar{position:relative;z-index:2;background:#fff;color:#111;margin:-1px auto 0;width:min(1180px,calc(100% - 48px));border-radius:16px;box-shadow:0 8px 18px rgba(0,0,0,.24);padding:14px 20px}
.benefits-grid{display:grid;grid-template-columns:1fr 1fr 1.25fr 1.45fr 1.1fr;gap:12px;align-items:center}
.benefits-grid>div{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 10px;border-right:1px solid #d7d7d7}
.benefits-grid>div:last-child{border:0}
.benefits-grid strong{font:800 15px/1.05 var(--display)}
.benefit-icon{font-size:34px;line-height:1;color:var(--red);font-family:Arial,sans-serif}
.support-benefit strong em{font-style:normal;color:var(--red)}
.support-benefit small{display:block;font:500 9px/1.25 var(--font);margin-top:5px;color:#333}
.category-strip{background:#151515;color:#fff;padding:24px 0 32px}
.category-strip-heading{margin-bottom:14px}
.category-strip-heading h2{color:#fff;font:italic 800 clamp(28px,3vw,38px)/1 var(--display);margin:0}
.category-scroll-controls{gap:10px}
.category-scroll-btn{background:var(--red);border:0;color:#fff;width:40px;height:40px;font-size:28px;line-height:1}
.license-scroller{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:4px 2px 12px;scrollbar-width:none}
.license-scroller::-webkit-scrollbar{display:none}
.license-card{flex:0 0 128px;display:flex;flex-direction:column;align-items:center;overflow:hidden;text-align:center;background:#fff;color:#111;border-radius:13px;box-shadow:0 5px 12px rgba(0,0,0,.35);scroll-snap-align:start;transition:transform .2s}
.license-card:hover{transform:translateY(-4px);color:#111}
.license-card img{width:100%;height:82px;object-fit:contain;padding:7px 6px 0;background:#fff}
.license-card b{font:900 25px/1.1 var(--display);padding:3px 0 5px}
.license-card span{display:flex;align-items:center;justify-content:center;min-height:47px;width:100%;background:var(--red);color:#fff;font:700 12px/1.15 var(--display);padding:5px}
.bottom-info{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.35fr);background:#292b30}
.theory-panel{background:#080808;color:#fff;padding:24px max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;gap:22px}
.theory-panel>img{width:190px;height:150px;object-fit:cover;border-radius:12px;border:2px solid #fff}
.theory-panel h2,.offices-panel>h2{font:800 30px/1 var(--display);margin:0 0 8px}
.theory-panel p{font-size:14px;line-height:1.3;margin:0 0 12px;color:#ddd}
.theory-languages{display:flex;flex-wrap:wrap;gap:6px}
.theory-languages span{font-size:11px;font-weight:700;background:#222;padding:6px 8px;border-radius:16px}
.offices-panel{padding:24px max(24px,calc((100vw - 1180px)/2)) 24px 26px}
.offices-panel>h2{color:#111}
.office-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.office-cards article{background:#fff;border-radius:15px;padding:14px 15px;box-shadow:0 5px 12px rgba(0,0,0,.15);border:1px solid #e6e6e6}
.office-cards h3{font:800 20px/1.1 var(--display);margin:0 0 8px}
.office-cards p{font-size:12px;line-height:1.35;margin:0 0 8px;color:#333}
.office-cards a{font:800 15px var(--display);color:#111;white-space:nowrap}
.office-cards a:hover{color:var(--red)}
@media(max-width:1000px){.main-nav{padding:0 20px}.main-nav ul{gap:8px}.main-nav li a{font-size:10px}.benefits-grid{grid-template-columns:repeat(3,1fr)}.benefits-grid>div:nth-child(3){border-right:0}.bottom-info{grid-template-columns:1fr}.theory-panel,.offices-panel{padding:24px}}
@media(max-width:700px){.header-inner{height:72px}.header-tools{margin-left:auto;margin-right:12px}.main-nav{display:none;position:absolute;top:72px;left:0;right:0;bottom:auto;min-height:0;padding:16px 22px 22px;flex-direction:column;align-items:stretch;gap:12px}.main-nav.is-open{display:flex}.main-nav ul{display:flex;flex-direction:column;align-items:stretch;gap:0}.main-nav li{padding:10px 0;border-bottom:1px solid #333}.main-nav li:first-child a{padding:7px 16px}.main-nav li a{font-size:12px}.nav-toggle{display:block;z-index:25}.hero-banner{height:auto}.benefits-bar{width:calc(100% - 24px);padding:10px;border-radius:12px}.benefits-grid{grid-template-columns:repeat(2,1fr);gap:4px}.benefits-grid>div{padding:8px 5px;border-right:0;border-bottom:1px solid #ddd;min-height:54px}.benefits-grid>div:last-child{border-bottom:0}.benefits-grid strong{font-size:13px}.benefit-icon{font-size:27px}.support-benefit small{font-size:8px}.category-strip{padding:22px 0}.category-strip-heading h2{font-size:28px}.license-card{flex-basis:116px}.license-card img{height:75px}.theory-panel{align-items:flex-start;flex-direction:column}.theory-panel>img{width:100%;height:160px}.offices-panel{padding:22px 16px}.office-cards{grid-template-columns:1fr}.office-cards article{padding:15px}.office-cards h3{font-size:22px}}

/* AUTO-ÉCOLE DAN — version 1.8 : finition plus arrondie */
.site-header{
  margin:10px auto 12px;
  width:min(1240px,calc(100% - 24px));
  border:1px solid rgba(255,255,255,.12);
  border-radius:30px;
  overflow:visible;
  box-shadow:0 10px 28px rgba(0,0,0,.28);
}
.header-inner{padding-left:20px;padding-right:20px}
.main-nav{
  border:1px solid rgba(255,255,255,.1);
  border-radius:28px;
  margin:0 14px 10px;
  padding-left:22px;padding-right:22px;
  overflow:visible;
}
.main-nav li:first-child a{border-radius:24px}
.language-switcher a,.language-switcher span{border-radius:14px}
.hero-banner{
  width:min(1240px,calc(100% - 24px));
  margin:0 auto 12px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:32px;
  box-shadow:0 12px 28px rgba(0,0,0,.24);
}
.benefits-bar{
  border-radius:28px;
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 10px 24px rgba(0,0,0,.24);
  margin-bottom:12px;
}
.category-strip{
  width:min(1240px,calc(100% - 24px));
  margin:0 auto 12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:34px;
  box-shadow:0 12px 28px rgba(0,0,0,.25);
  overflow:hidden;
}
.category-strip .container{width:calc(100% - 36px)}
.license-card{border-radius:22px;box-shadow:0 7px 16px rgba(0,0,0,.32);}
.license-card img{border-radius:20px 20px 0 0}
.category-scroll-btn{border-radius:50%;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.bottom-info{
  width:min(1240px,calc(100% - 24px));
  margin:0 auto 18px;
  gap:12px;
  background:transparent;
}
.theory-panel,.offices-panel{
  border:1px solid rgba(255,255,255,.15);
  border-radius:30px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.theory-panel{padding-left:24px;padding-right:24px}
.theory-panel>img{border-radius:22px}
.offices-panel{border-radius:30px}
.office-cards article{
  border-radius:22px;
  border:1px solid #e9e9e9;
  box-shadow:0 7px 18px rgba(0,0,0,.16);
  transition:transform .2s,box-shadow .2s;
}
.office-cards article:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,0,0,.2)}
.theory-languages span{border-radius:20px}
.button,.button-red,.button-light{border-radius:24px}
@media(max-width:700px){
 .site-header{width:calc(100% - 16px);margin:8px auto 10px;border-radius:22px}
 .main-nav{margin:0 8px 8px;border-radius:20px}
 .hero-banner{width:calc(100% - 16px);border-radius:22px;height:auto}
 .benefits-bar{width:calc(100% - 20px);border-radius:22px}
 .category-strip{width:calc(100% - 16px);border-radius:24px}
 .category-strip .container{width:calc(100% - 24px)}
 .license-card{border-radius:18px}
 .bottom-info{width:calc(100% - 16px);gap:10px}
 .theory-panel,.offices-panel{border-radius:24px}
 .office-cards article{border-radius:20px}
}

/* Version 1.9: unified charcoal page background */
body, .intro-section, .locations-section, .bottom-info { background-color:#292b30; }
.intro-section, .locations-section { color:#f4f4f2; }
.intro-copy, .locations-section .section-heading p { color:#c4c6cb; }


/* Version 2.0 — rapprochement du rendu validé : fond anthracite, panneaux arrondis */
:root{--aed-charcoal:#292d32;--aed-charcoal-deep:#171a1f;--aed-red:#e32636}
html,body{background:var(--aed-charcoal)!important}
body{color:#f5f5f5;background:radial-gradient(ellipse at 50% 0%,#3a3e44 0%,#292d32 48%,#22262b 100%)!important}
.site-header{background:linear-gradient(180deg,#24282d,#101216)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:30px!important;box-shadow:0 12px 30px rgba(0,0,0,.38)!important;margin:10px auto 12px!important}
.main-nav{background:linear-gradient(180deg,#22262b,#08090b)!important;border-radius:28px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 5px 12px rgba(0,0,0,.35)!important}
.hero-banner{border-radius:32px!important;box-shadow:0 12px 26px rgba(0,0,0,.36)!important}
.benefits-bar{border-radius:30px!important;box-shadow:0 9px 22px rgba(0,0,0,.3)!important}
.category-strip{background:linear-gradient(145deg,#34383e,#171a1f)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:36px!important;box-shadow:0 12px 26px rgba(0,0,0,.38)!important}
.category-strip-heading h2{color:#fff!important}
.license-card{border-radius:22px!important;box-shadow:0 8px 18px rgba(0,0,0,.4)!important}
.license-card span{background:linear-gradient(180deg,#ff2638,#d90d22)!important}
.bottom-info{background:transparent!important;gap:12px!important}
.theory-panel{background:linear-gradient(145deg,#20242a,#08090c)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:30px!important;box-shadow:0 10px 25px rgba(0,0,0,.35)!important}
.offices-panel{background:linear-gradient(145deg,#fff,#e9e9e7)!important;border:1px solid rgba(255,255,255,.7)!important;border-radius:30px!important;box-shadow:0 10px 25px rgba(0,0,0,.25)!important;color:#111!important}
.offices-panel>h2{color:#111!important}
.office-cards article{border-radius:24px!important;box-shadow:0 8px 18px rgba(0,0,0,.22)!important}
.site-footer{width:min(1240px,calc(100% - 24px));margin:16px auto 12px!important;padding:36px 28px 18px!important;background:linear-gradient(145deg,#25292e,#111418)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:32px!important;box-shadow:0 12px 28px rgba(0,0,0,.38)!important}
.footer-grid{grid-template-columns:1.15fr .9fr 1fr!important;gap:40px!important;padding-bottom:28px!important}
.footer-logo .brand-name{display:inline-block;font:italic 900 clamp(23px,2.5vw,34px)/.95 var(--display);letter-spacing:-.045em;color:#fff;white-space:nowrap}
.footer-logo .brand-name b{color:var(--red);font-size:1.12em}
.footer-brand p{color:#f0f0f0!important}
.site-footer h3{color:#fff!important}
.site-footer li a,.site-footer p{color:#e0e1e3!important}
.footer-bottom{border-top:1px solid rgba(255,255,255,.28)!important;color:#e0e1e3!important}
@media(max-width:700px){
 .site-header{border-radius:22px!important}
 .main-nav{border-radius:20px!important}
 .hero-banner{border-radius:22px!important}
 .category-strip{border-radius:25px!important}
 .theory-panel,.offices-panel{border-radius:24px!important}
 .site-footer{width:calc(100% - 16px);padding:28px 20px 18px!important;border-radius:24px!important}
 .footer-grid{grid-template-columns:1fr!important;gap:22px!important}
}

/* Version 2.3: photo-realistic vehicle cards and centered office cards */
.offices-panel { display:flex; flex-direction:column; }
.offices-panel > h2 { text-align:center; width:100%; }
.office-cards {
  width:min(100%, 810px);
  margin: 0 auto;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  justify-content:center;
  align-items:stretch;
}
.office-cards article { min-width:0; }
@media(max-width:700px) {
  .offices-panel > h2 { text-align:center; }
  .office-cards { width:100%; grid-template-columns:1fr; }
}

/* Version 2.4: distinct motorcycle photos and truly centered office cards */
.offices-panel {
  padding: 24px 26px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.offices-panel > h2 {
  width: 100%;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.offices-panel .office-cards {
  display: grid;
  width: min(100%, 810px) !important;
  max-width: 810px;
  margin-left: auto !important;
  margin-right: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-self: center;
}
@media (max-width: 700px) {
  .offices-panel { padding: 22px 16px !important; }
  .offices-panel .office-cards {
    width: 100% !important;
    grid-template-columns: 1fr;
  }
}

/* Version 2.5.0 — prevent the desktop navigation from overlapping page content */
@media (min-width: 701px) {
  .site-header {
    position: relative !important;
    padding-bottom: 62px !important;
  }
  .site-header > .header-inner {
    position: relative;
    z-index: 3;
  }
  .site-header > .main-nav {
    position: absolute !important;
    top: 82px !important;
    left: 0;
    right: 0;
    z-index: 5;
  }
  #content {
    clear: both;
  }
}
/* Keep standard WordPress page content readable below the complete header */
.page-hero,
.content-area {
  position: relative;
  z-index: 1;
}
.content-area {
  overflow-wrap: anywhere;
}

/* Version 2.5bis — dedicated motorcycle category pages; preserves the v2.5 identity */
.aed-moto-page{max-width:1180px;margin:28px auto 56px;padding:0 20px;color:#fff}
.aed-moto-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px;background:linear-gradient(135deg,#111 0%,#242424 68%,#090909 100%);border:1px solid #777;border-radius:24px;overflow:hidden;box-shadow:0 8px 24px #0008}
.aed-moto-copy{padding:36px 30px}.aed-moto-kicker{color:#f01820;font-weight:800;letter-spacing:1.5px;font-size:13px}.aed-moto-copy h1{font-size:clamp(34px,5vw,54px);line-height:1.05;margin:12px 0 6px;color:#fff;text-transform:uppercase;font-weight:800}.aed-moto-copy h2{color:#f01820;font-size:25px;margin:0 0 16px}.aed-moto-copy p{font-size:18px;line-height:1.55;color:#eee}.aed-moto-photo{height:300px;background:#080808;display:flex;align-items:center;justify-content:center;padding:18px}.aed-moto-photo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:16px}
.aed-moto-details{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.aed-moto-details article,.aed-moto-note,.aed-moto-docs{background:#f8f8f8;color:#171717;border-radius:20px;padding:22px;box-shadow:0 5px 16px #0003}.aed-detail-icon{color:#e10600;font-size:30px;font-weight:800}.aed-moto-details h3,.aed-moto-note h3,.aed-moto-docs h3{font-size:22px;margin:8px 0;color:#111}.aed-moto-details p,.aed-moto-note p,.aed-moto-docs p{line-height:1.55;margin:0 0 8px}.aed-moto-note{border-left:7px solid #e10600;margin-bottom:16px}.aed-moto-docs{border:1px solid #ccc}.aed-moto-contact{font-weight:800;color:#d10b12;margin-top:12px!important}
@media(max-width:760px){.aed-moto-hero{grid-template-columns:1fr}.aed-moto-copy{padding:26px 22px 8px}.aed-moto-photo{height:230px}.aed-moto-details{grid-template-columns:1fr}.aed-moto-page{padding:0 14px;margin-top:18px}}

/* v2.5bis — user-supplied motorcycle photo pairs */
.aed-moto-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:center}
.aed-moto-gallery figure{margin:0;min-width:0;overflow:hidden;border-radius:18px;background:#fff}
.aed-moto-gallery img{display:block;width:100%;height:100%;min-height:220px;max-height:360px;object-fit:contain}
@media(max-width:700px){.aed-moto-gallery{grid-template-columns:1fr}.aed-moto-gallery img{min-height:180px;max-height:260px}}



/* ==========================================================
   AUTO-ECOLE DAN
   Variante visuelle indépendante : panneaux sombres arrondis,
   cartes vitrées, accents rouges et CTA plus visibles.
   Les contenus, photos, liens et tarifs restent inchangés.
   ========================================================== */
:root{
 --aed-test-bg:#08090b;
 --aed-test-panel:#17191e;
 --aed-test-panel-2:#22252b;
 --aed-test-red:#e10600;
 --aed-test-line:rgba(255,255,255,.17);
}
html,body{background:var(--aed-test-bg)!important;color:#f7f7f7!important}
body{background:radial-gradient(ellipse at 50% -10%,#343840 0%,#14161a 42%,#070809 100%)!important}
.container{width:min(1180px,calc(100% - 36px))}
.site-header{
 background:linear-gradient(180deg,#202329,#08090b)!important;
 border:1px solid rgba(255,255,255,.18)!important;
 border-radius:24px!important;
 box-shadow:0 12px 28px rgba(0,0,0,.48)!important;
 width:min(1240px,calc(100% - 24px));
 margin:12px auto 14px!important;
}
.brand-mark,.brand-name{font-style:italic}
.brand-mark span,.brand-name b{color:var(--aed-test-red)!important}
.main-nav{
 background:linear-gradient(145deg,#272a30,#0a0b0d)!important;
 border:1px solid var(--aed-test-line)!important;
 border-radius:20px!important;
}
.main-nav li a{font-weight:800}
.main-nav li a:hover{color:#ff4b45!important}
.nav-toggle span{background:var(--aed-test-red)!important;height:3px!important}
.language-switcher a,.language-switcher span{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:34px;min-height:30px;padding:4px 9px;
 border:1px solid var(--aed-test-line);border-radius:14px;
}
.hero-banner,.hero{
 border-radius:26px!important;overflow:hidden;
 border:1px solid var(--aed-test-line);
 box-shadow:0 14px 32px rgba(0,0,0,.45)!important;
}
.hero-banner{width:min(1240px,calc(100% - 24px));margin:0 auto 16px}
.benefits-bar,.category-strip,.theory-panel,.offices-panel,
.aed-moto-hero,.aed-moto-details article,.aed-moto-note,.aed-moto-docs,
.post-card,.location-card,.step,.training-card{
 border:1px solid var(--aed-test-line)!important;
 border-radius:24px!important;
 box-shadow:0 10px 26px rgba(0,0,0,.32)!important;
}
.benefits-bar,.category-strip,.theory-panel,.aed-moto-hero,
.aed-moto-details article,.aed-moto-note,.aed-moto-docs,
.location-card,.post-card{
 background:linear-gradient(145deg,#252930,#111317)!important;
 color:#f7f7f7!important;
}
.category-strip{margin-top:18px;margin-bottom:18px}
.category-strip-heading h2,.section-heading h2,
.intro-grid h2,.process-grid h2,.offices-panel>h2,
.aed-moto-copy h1,.aed-moto-details h3,.aed-moto-note h3,
.aed-moto-docs h3{color:#fff!important}
.license-card{
 border:1px solid rgba(255,255,255,.2)!important;
 border-radius:20px!important;overflow:hidden;
 box-shadow:0 8px 20px rgba(0,0,0,.5)!important;
}
.license-card b{
 background:linear-gradient(135deg,#ff2a22,#b90000)!important;
 color:#fff!important;
}
.license-card span{
 background:linear-gradient(180deg,#292c32,#101114)!important;
 color:#fff!important;
}
.button,.button-red,.button-light,.nav-cta{
 border-radius:999px!important;
 font-weight:900!important;
}
.button-red,.nav-cta{
 background:linear-gradient(135deg,#ff3028,#c90000)!important;
 color:#fff!important;
 box-shadow:0 7px 18px rgba(225,6,0,.25);
}
.button-red:hover,.nav-cta:hover{
 background:linear-gradient(135deg,#ff514b,#e10600)!important;
 transform:translateY(-2px);
}
.page-hero{
 background:linear-gradient(145deg,#242830,#090a0c)!important;
 border-radius:26px!important;
 margin:12px auto 0!important;
 width:min(1240px,calc(100% - 24px));
 border:1px solid var(--aed-test-line);
}
.content-area{color:#f4f4f4}
.entry-content{color:#ededed}
.entry-content h2,.entry-content h3{color:#fff}
.entry-content h2:before,.aed-moto-details h3:before{
 content:"";display:inline-block;width:7px;height:23px;
 margin-right:11px;background:var(--aed-test-red);
 transform:skew(-18deg);vertical-align:-3px;
}
.aed-moto-page{max-width:1180px}
.aed-moto-hero{
 background:linear-gradient(145deg,#272b32,#08090b)!important;
 border-radius:28px!important;overflow:hidden;
}
.aed-moto-copy h2,.aed-moto-kicker,.aed-detail-icon{color:#ff3028!important}
.aed-moto-photo{background:#08090b!important}
.aed-moto-details article,.aed-moto-note,.aed-moto-docs{
 background:linear-gradient(145deg,#242830,#111317)!important;
 color:#f5f5f5!important;
}
.aed-moto-details h3,.aed-moto-note h3,.aed-moto-docs h3{color:#fff!important}
.aed-moto-note{border-left:6px solid var(--aed-test-red)!important}
.aed-moto-contact{color:#ff514b!important}
.offices-panel{
 background:linear-gradient(145deg,#22262c,#101216)!important;
 color:#fff!important;
}
.office-cards article{
 background:linear-gradient(145deg,#292d34,#111317)!important;
 color:#fff!important;
 border:1px solid var(--aed-test-line)!important;
 border-radius:20px!important;
}
.office-cards article p,.office-cards article a{color:#e6e6e6!important}
.theory-panel>img{border-radius:20px!important}
.theory-languages span{
 border:1px solid var(--aed-test-line);
 border-radius:999px!important;
 background:#292d34!important;color:#fff!important;
}
.process-section,.training-section,.locations-section,.intro-section{
 background:transparent!important;color:#f5f5f5!important;
}
.training-card{border-radius:22px!important;overflow:hidden}
.cta-band{
 background:linear-gradient(110deg,#e10600,#a90000)!important;
 border-radius:24px!important;margin:16px auto;
 width:min(1240px,calc(100% - 24px));
}
.site-footer{
 background:linear-gradient(145deg,#242830,#08090b)!important;
 border:1px solid var(--aed-test-line)!important;
 border-radius:26px!important;
 width:min(1240px,calc(100% - 24px));
 margin:16px auto!important;
 box-shadow:0 12px 28px rgba(0,0,0,.42)!important;
}
.site-footer li a,.site-footer p,.footer-brand p{color:#dedfe2!important}
.site-footer h3{color:#fff!important}
@media(max-width:700px){
 .container{width:calc(100% - 24px)}
 .site-header{width:calc(100% - 16px);border-radius:20px!important;margin:8px auto 10px!important}
 .main-nav{border-radius:18px!important}
 .hero-banner{width:calc(100% - 16px);border-radius:20px!important}
 .benefits-bar,.category-strip,.bottom-info{width:calc(100% - 16px)!important}
 .category-strip{border-radius:22px!important}
 .license-card{border-radius:17px!important}
 .theory-panel,.offices-panel{border-radius:22px!important}
 .aed-moto-page{width:100%;padding:0 12px;margin-top:14px}
 .aed-moto-hero{border-radius:22px!important}
 .aed-moto-copy{padding:24px 18px 8px}
 .aed-moto-photo{height:220px}
 .aed-moto-details{grid-template-columns:1fr;gap:11px}
 .aed-moto-details article,.aed-moto-note,.aed-moto-docs{border-radius:18px!important;padding:18px}
 .page-hero{width:calc(100% - 16px);padding:40px 20px 34px;border-radius:22px!important}
 .content-area{padding:32px 0 55px}
 .cta-band{width:calc(100% - 16px);border-radius:20px!important}
 .site-footer{width:calc(100% - 16px);padding:28px 18px 18px!important;border-radius:22px!important}
 .footer-grid{grid-template-columns:1fr!important;gap:20px!important}
}


/* Contraste renforcé pour le texte de présentation pour le texte de réassurance */
:where(.intro-grid,.intro-section,.hero,.hero-content)
 :is(.subtitle,.tagline,.intro-text,.hero-subtitle,.eyebrow){
 color:#ffffff!important;
}


/* Correction ciblée : phrase d'accompagnement sous « Cours de soutien » */
.benefits-bar .benefits-grid .support-benefit strong small,
.benefits-bar .benefits-grid .support-benefit small {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Accessible Polylang language links */
.language-switcher{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.language-switcher a,.language-switcher-current{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:6px 9px;border-radius:14px;background:#1c1c1c;color:#fff;font-size:12px;font-weight:800;text-decoration:none}
.language-switcher a:hover,.language-switcher a:focus{background:#e10600;color:#fff}
.language-switcher a.is-current{background:#e10600;color:#fff;pointer-events:none}

/* v22: separate contact cards in the footer */
.footer-contact-column{min-width:0}
.footer-contact-box{display:flex;flex-direction:column;gap:7px;padding:13px 15px;margin:0 0 10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.13);border-left:3px solid #e10600;border-radius:10px}
.footer-contact-box strong{color:#fff;font-size:14px}
.footer-contact-box a{color:#fff;text-decoration:none;overflow-wrap:anywhere}
.footer-contact-box a:hover{color:#e10600}
.language-switcher a{font-size:19px;line-height:1}


/* v24: clean language flags — hide active language and remove decorative frames */
.language-switcher{display:flex!important;align-items:center!important;gap:16px!important;flex-wrap:wrap}
.language-switcher a,.language-switcher span,.language-switcher-current{
 display:inline!important;min-width:0!important;min-height:0!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;
 font-size:24px!important;line-height:1!important;text-decoration:none!important;
}
.language-switcher a:hover,.language-switcher a:focus{
 background:transparent!important;filter:brightness(1.12);transform:scale(1.08);
}
.language-switcher a.is-current{display:none!important}


/* v29: original category card layout, translated and fully clickable; heading moved upward */
.aed-category-landing{padding-top:22px!important;padding-bottom:76px!important;max-width:1180px}
.aed-category-title{text-align:center!important;font:800 clamp(32px,4vw,44px)/1.05 var(--display)!important;color:#fff!important;margin:0 0 16px!important;padding:0!important}
.aed-category-rule{height:4px;width:100%;margin:0 auto 14px;background:linear-gradient(90deg,#e10600,#ff9a36,#e10600);border-radius:10px}
.aed-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.aed-category-card{min-height:112px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:18px 16px;border:1px solid rgba(255,255,255,.42);border-radius:19px;background:linear-gradient(145deg,#34383e,#22252a);color:#fff!important;text-decoration:none!important;box-shadow:0 4px 12px rgba(0,0,0,.16);transition:border-color .18s,transform .18s,background .18s;cursor:pointer}
.aed-category-card:hover,.aed-category-card:focus-visible{border-color:#ff7048;background:linear-gradient(145deg,#3b3d42,#292b30);transform:translateY(-2px);outline:none}
.aed-category-name{font-size:17px;font-weight:800;color:#ff9a55;text-align:center;line-height:1.25}
.aed-category-age{font-size:20px;font-weight:800;color:#fff;line-height:1}
.aed-category-age small{font-size:11px;font-weight:700}
.aed-category-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 14px}.aed-category-feature-grid .aed-category-apprentice-top{width:100%;min-width:0;min-height:86px;margin:0;gap:10px}.aed-category-support{border-color:rgba(255,112,72,.65);background:linear-gradient(110deg,#3b3f46,#25282e 72%,#3a2525)}
.aed-category-apprentice-top{width:100%;min-height:86px;margin:0 0 14px;gap:10px;border-color:rgba(255,154,54,.65);background:linear-gradient(110deg,#41464d,#25282e 72%,#3a2525);box-shadow:0 5px 16px rgba(0,0,0,.2)}.aed-category-apprentice-top .aed-category-name{font-size:20px}.aed-category-apprentice-top:hover{border-color:#ff9a55;transform:translateY(-2px)}
.aed-category-change,.aed-category-control{grid-column:auto;width:100%;min-width:0;min-height:86px}.aed-category-info-link{padding:14px 12px;gap:8px}.aed-category-info-link .aed-category-name{font-size:clamp(13px,1.35vw,17px);overflow-wrap:anywhere}
.aed-category-notes{margin-top:24px;padding:18px 22px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:linear-gradient(145deg,#292d34,#17191d);color:#fff}
.aed-category-notes h2{margin:0 0 8px;color:#fff;font:800 23px var(--display)}
.aed-category-notes ul{margin:0;padding-left:22px;color:#e4e4e4}
@media(max-width:700px){.aed-category-feature-grid{gap:10px}.aed-category-feature-grid .aed-category-apprentice-top{min-height:98px;padding:14px 8px}.aed-category-feature-grid .aed-category-name{font-size:14px}.aed-category-landing{padding-top:14px!important;padding-bottom:48px!important}.aed-category-grid{gap:10px}.aed-category-card{min-height:98px;padding:14px 8px}.aed-category-name{font-size:14px}.aed-category-age{font-size:18px}}

/* AUTO-ÉCOLE DAN information pages: unified approved anthracite / red card design */
.aed-info-content{max-width:1180px;margin:0 auto 64px;padding:0 22px}
.aed-info-page{max-width:1180px;margin:0 auto;padding:42px 22px 64px;color:#f7f7f7}
.aed-info-page .aed-info-hero{position:relative;overflow:hidden;padding:clamp(28px,5vw,54px);margin:0 0 28px;border:1px solid rgba(255,255,255,.24);border-left:5px solid #e10600;border-radius:22px;background:linear-gradient(115deg,#41484d 0%,#25292e 62%,#321f20 100%);box-shadow:0 12px 32px rgba(0,0,0,.22)}
.aed-info-page .aed-info-hero:after{content:'';position:absolute;width:220px;height:220px;right:-72px;top:-110px;border:14px solid rgba(225,6,0,.42);border-radius:50%;pointer-events:none}
.aed-info-page .aed-info-hero span{display:block;position:relative;z-index:1;color:#ff8a55;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;margin-bottom:12px}
.aed-info-page .aed-info-hero h1{position:relative;z-index:1;color:#fff;font:800 clamp(30px,4vw,48px)/1.08 var(--display);margin:0}
.aed-info-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px;margin-bottom:18px}
.aed-info-page .aed-info-card{margin:0 0 22px;padding:clamp(22px,3vw,32px);border:1px solid rgba(255,255,255,.22);border-radius:18px;background:linear-gradient(145deg,#30363b,#22262b);box-shadow:0 10px 26px rgba(0,0,0,.18)}
.aed-info-page .aed-info-card h2{color:#ffb15c;margin:0 0 18px;font:800 clamp(20px,2.4vw,25px)/1.15 var(--display)}
.aed-info-card table{width:100%;border-collapse:collapse;color:#eee;font-size:14px}
.aed-info-card th{background:#e10600;color:#fff;text-align:left;font-weight:800}
.aed-info-card th,.aed-info-card td{padding:10px 12px;border:1px solid #555}
.aed-info-card tbody tr:nth-child(even){background:rgba(255,255,255,.06)}
.aed-info-contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:center}
.aed-info-contact p{color:#ddd;line-height:1.7;margin:8px 0}
.aed-info-contact a{color:#ff8a55;font-weight:700;text-decoration:none}
.aed-info-map{display:inline-flex;margin-top:10px;padding:11px 16px;background:#e10600;color:#fff!important;border-radius:10px}
.aed-info-mapbox{min-height:260px;overflow:hidden;border-radius:15px;border:1px solid #555}
.aed-info-mapbox iframe{display:block;width:100%;height:260px;border:0}
.aed-info-page .aed-apprentice-intro{max-width:850px;margin:0 auto 28px;text-align:center;font-size:clamp(16px,1.8vw,19px);line-height:1.7;font-weight:600;color:#f7f7f7}
.aed-info-page .aed-doc-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}
.aed-info-page .aed-doc-list li{margin:0;padding:11px 14px 11px 36px;position:relative;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.045);color:#f7f7f7}
.aed-info-page .aed-doc-list li:before{content:'✓';position:absolute;left:13px;color:#ff9a52;font-weight:900}
.aed-info-page .aed-apprentice-language{border-color:rgba(225,6,0,.55);border-left:4px solid #e10600;background:linear-gradient(135deg,#292d34,#17191d)}
.aed-info-page .aed-apprentice-language p,.aed-info-page .aed-apprentice-fee{line-height:1.75}
.aed-info-page .aed-apprentice-language p{margin:0;color:#f2f2f2;font-size:17px;font-weight:600}
.aed-info-page .aed-apprentice-fee{margin:0;padding:18px 22px;border-left:4px solid #e10600;border-radius:12px;background:rgba(225,6,0,.10);font-weight:600;color:#f7f7f7}
@media(max-width:760px){.aed-info-grid,.aed-info-contact{grid-template-columns:1fr}.aed-info-content{margin:24px auto 48px;padding:0 14px}.aed-info-page{padding:28px 14px 42px}.aed-info-page .aed-info-card{padding:17px}.aed-info-card table{font-size:12px}.aed-info-card th,.aed-info-card td{padding:8px 6px}.aed-info-page .aed-doc-list{grid-template-columns:1fr}.aed-info-page .aed-info-hero{border-radius:16px}}

/* v31: clear language requirement on trainee instructor page */
.aed-apprentice-language{border-left:4px solid #e10600;background:linear-gradient(135deg,#292d34,#17191d)}
.aed-apprentice-language p{margin:0;color:#f2f2f2;font-size:17px;line-height:1.65;font-weight:600}


/* v37: harmonize the change-of-driving-school page with the category/info page design */
.aed-change-page{max-width:1180px;margin:0 auto;padding:42px 22px 64px;color:#f7f7f7}
.aed-change-page .aed-change-content{padding:clamp(20px,3vw,34px);border:1px solid rgba(255,255,255,.20);border-radius:20px;background:linear-gradient(145deg,#34383e,#22252a);box-shadow:0 8px 24px rgba(0,0,0,.18);color:#f7f7f7}
.aed-change-page .aed-change-content .entry-content{color:#f7f7f7;line-height:1.75}
.aed-change-page .aed-change-content h2,.aed-change-page .aed-change-content h3{color:#ff9a55;font-weight:800;margin:0 0 14px}
.aed-change-page .aed-change-content p,.aed-change-page .aed-change-content li{color:#f2f2f2}
.aed-change-page .aed-change-content a:not(.button){color:#ff9a55}
.aed-change-page .aed-change-content input,.aed-change-page .aed-change-content select,.aed-change-page .aed-change-content textarea{max-width:100%;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:#25292e;color:#fff;padding:11px 13px}
.aed-change-page .aed-change-content button,.aed-change-page .aed-change-content input[type=submit],.aed-change-page .aed-change-content .button{border:0;border-radius:999px;background:#e10600;color:#fff;font-weight:800;padding:12px 22px}
@media(max-width:760px){.aed-change-page{padding:28px 14px 42px}.aed-change-page .aed-change-content{padding:18px}}


/* v38 – Changement d'auto-école : même esthétique structurée que la page apprenti-instructeur.
   Les textes existants sont conservés ; seule leur présentation est harmonisée. */
.aed-change-page .aed-change-content {
  padding: clamp(22px,3vw,34px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: linear-gradient(145deg,#30363b,#22262b);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.aed-change-page .aed-change-content .entry-content {
  color:#f4f4f4;
  line-height:1.7;
}
.aed-change-page .aed-change-content table {
  width:100% !important;
  margin:0 auto 18px !important;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing:12px 0 !important;
  table-layout:fixed !important;
  background:transparent !important;
}
.aed-change-page .aed-change-content thead tr,
.aed-change-page .aed-change-content table > tbody > tr:first-child {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.aed-change-page .aed-change-content table > tbody > tr:first-child td {
  padding:14px 16px !important;
  border:0 !important;
  border-bottom:2px solid #e10600 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#ffb15c !important;
  text-align:center !important;
  font:800 clamp(18px,2vw,23px)/1.2 var(--display);
}
.aed-change-page .aed-change-content th {
  padding:14px 16px !important;
  border:0 !important;
  border-bottom:2px solid #e10600 !important;
  background:transparent !important;
  color:#ffb15c !important;
  text-align:center !important;
  font:800 clamp(18px,2vw,23px)/1.2 var(--display);
}
.aed-change-page .aed-change-content tbody tr:not(:first-child) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.aed-change-page .aed-change-content td {
  padding:18px 18px !important;
  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.045) !important;
  color:#f2f2f2 !important;
  vertical-align:top !important;
}
.aed-change-page .aed-change-content td ul,
.aed-change-page .aed-change-content td ol {
  margin:0 !important;
  padding-left:20px !important;
}
.aed-change-page .aed-change-content td li {
  margin:0 0 8px !important;
  color:#f2f2f2 !important;
}
.aed-change-page .aed-change-content p {
  color:#f2f2f2 !important;
}
.aed-change-page .aed-change-content a:not(.button) {
  color:#ff9a55 !important;
  font-weight:700;
}
.aed-change-page .aed-change-content button,
.aed-change-page .aed-change-content input[type=submit],
.aed-change-page .aed-change-content .button,
.aed-change-page .aed-change-content a.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 24px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#e10600 !important;
  color:#fff !important;
  font-weight:800 !important;
  text-decoration:none !important;
  box-shadow:0 6px 16px rgba(225,6,0,.22);
}
@media(max-width:680px) {
  .aed-change-page .aed-change-content {padding:17px !important}
  .aed-change-page .aed-change-content table {border-spacing:0 !important}
  .aed-change-page .aed-change-content thead tr,
  .aed-change-page .aed-change-content table > tbody > tr:first-child,
  .aed-change-page .aed-change-content tbody tr:not(:first-child) {
    grid-template-columns:1fr;
    gap:8px;
  }
}


/* v39 – Alignement strict de la page Changement d’auto-école sur la carte Apprenti-instructeur.
   Le contenu éditorial reste inchangé ; seules les dimensions et la disposition sont corrigées. */
.aed-change-page .aed-change-content .entry-content,
.aed-change-page .aed-change-content .wp-block-table,
.aed-change-page .aed-change-content figure {
  width:100% !important;
  max-width:100% !important;
}
.aed-change-page .aed-change-content table {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  table-layout:auto !important;
  border-spacing:0 !important;
}
.aed-change-page .aed-change-content table tbody {
  display:block !important;
  width:100% !important;
}
.aed-change-page .aed-change-content table tbody tr:not(:first-child) {
  display:grid !important;
  width:100% !important;
  max-width:100% !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
  align-items:stretch !important;
}
.aed-change-page .aed-change-content table tbody tr:first-child {
  display:grid !important;
  width:100% !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:16px !important;
}
.aed-change-page .aed-change-content table td,
.aed-change-page .aed-change-content table th {
  display:block !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow-wrap:anywhere;
}
.aed-change-page .aed-change-content table tbody tr:not(:first-child) td {
  min-height:100% !important;
  padding:18px 20px !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.055) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.aed-change-page .aed-change-content table tbody tr:first-child td {
  padding:12px 16px !important;
  border:0 !important;
  border-bottom:2px solid #e10600 !important;
  background:transparent !important;
  color:#ffb15c !important;
  text-align:center !important;
  font:800 clamp(18px,2vw,23px)/1.2 var(--display) !important;
}
.aed-change-page .aed-change-content table ul,
.aed-change-page .aed-change-content table ol {
  margin:0 !important;
  padding-left:20px !important;
}
.aed-change-page .aed-change-content table li {
  margin:0 0 9px !important;
  line-height:1.55 !important;
}
@media(max-width:680px) {
  .aed-change-page .aed-change-content table tbody tr:first-child,
  .aed-change-page .aed-change-content table tbody tr:not(:first-child) {
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
  }
}


/* v40 – Reprise de la structure visuelle de la page « Devenir apprenti-instructeur ».
   Le tableau existant est conservé côté contenu, mais présenté comme les cartes de documents. */
.aed-change-page .aed-change-content {
  width:100% !important;
  box-sizing:border-box !important;
  padding:clamp(22px,3vw,32px) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  border-radius:18px !important;
  background:linear-gradient(145deg,#30363b,#22262b) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.18) !important;
}
.aed-change-page .aed-change-content .entry-content {width:100% !important;max-width:100% !important;margin:0 !important}
.aed-change-page .aed-change-content table {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:10px 24px !important;
  width:100% !important;
  max-width:100% !important;
  margin:0 0 20px !important;
  padding:0 !important;
  border:0 !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  table-layout:auto !important;
  background:transparent !important;
}
.aed-change-page .aed-change-content table thead,
.aed-change-page .aed-change-content table tbody,
.aed-change-page .aed-change-content table tr {display:contents !important}
.aed-change-page .aed-change-content table th {
  display:block !important;
  min-width:0 !important;
  padding:0 4px 12px !important;
  border:0 !important;
  border-bottom:0 !important;
  background:transparent !important;
  color:#ffb15c !important;
  text-align:left !important;
  font:800 clamp(20px,2.4vw,25px)/1.15 var(--display) !important;
}
.aed-change-page .aed-change-content table td {
  display:block !important;
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:64px !important;
  margin:0 !important;
  padding:11px 14px 11px 36px !important;
  position:relative !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.045) !important;
  color:#f7f7f7 !important;
  vertical-align:top !important;
  overflow-wrap:anywhere !important;
}
.aed-change-page .aed-change-content table td:before {
  content:'✓' !important;
  position:absolute !important;
  left:13px !important;
  top:11px !important;
  color:#ff9a52 !important;
  font-weight:900 !important;
}
.aed-change-page .aed-change-content table td p {margin:0 !important;color:#f7f7f7 !important}
.aed-change-page .aed-change-content table ul,
.aed-change-page .aed-change-content table ol {margin:0 !important;padding-left:0 !important;list-style:none !important}
.aed-change-page .aed-change-content table li {margin:0 0 8px !important;line-height:1.55 !important;color:#f7f7f7 !important}
.aed-change-page .aed-change-content .entry-content > p {
  margin:18px 0 0 !important;
  padding:16px 20px !important;
  border:1px solid rgba(225,6,0,.55) !important;
  border-left:4px solid #e10600 !important;
  border-radius:12px !important;
  background:linear-gradient(135deg,#292d34,#17191d) !important;
  color:#f2f2f2 !important;
  font-weight:600 !important;
  line-height:1.7 !important;
}
.aed-change-page .aed-change-content a.button,
.aed-change-page .aed-change-content .button,
.aed-change-page .aed-change-content input[type=submit] {
  background:#e10600 !important;color:#fff !important;border:0 !important;border-radius:999px !important;
  box-shadow:0 6px 16px rgba(225,6,0,.22) !important;
}
@media(max-width:680px) {
  .aed-change-page .aed-change-content {padding:17px !important}
  .aed-change-page .aed-change-content table {grid-template-columns:minmax(0,1fr) !important;gap:8px !important}
  .aed-change-page .aed-change-content table th {padding:10px 4px 4px !important}
  .aed-change-page .aed-change-content table td {min-height:0 !important}
}


/* v41 – Refonte structurelle de la page Changement d’auto-école.
   Même composition que « Devenir apprenti-instructeur » : intro centrée,
   une seule carte de documents avec cases cochées, puis encadré d’information. */
.aed-change-page{max-width:1180px;margin:0 auto;padding:42px 22px 64px;color:#f7f7f7}
.aed-change-page .aed-change-documents{width:100%;box-sizing:border-box}
.aed-change-page .aed-change-documents h2{color:#ffb15c;margin:0 0 18px;font:800 clamp(20px,2.4vw,25px)/1.15 var(--display)}
.aed-change-page .aed-change-documents .aed-doc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:0;padding:0;list-style:none}
.aed-change-page .aed-change-documents .aed-doc-list li{position:relative;box-sizing:border-box;min-width:0;margin:0;padding:11px 14px 11px 36px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.045);color:#f7f7f7;line-height:1.5;overflow-wrap:anywhere}
.aed-change-page .aed-change-documents .aed-doc-list li:before{content:'✓';position:absolute;left:13px;top:11px;color:#ff9a52;font-weight:900}
.aed-change-page .aed-change-note{border-color:rgba(225,6,0,.55);border-left:4px solid #e10600;background:linear-gradient(135deg,#292d34,#17191d)}
.aed-change-page .aed-change-note p{margin:0;color:#f2f2f2;font-size:16px;font-weight:600;line-height:1.75}
@media(max-width:760px){.aed-change-page{padding:28px 14px 42px}.aed-change-page .aed-change-documents .aed-doc-list{grid-template-columns:1fr}.aed-change-page .aed-change-documents{padding:17px}}


/* v42.1 — Sous-menu Bureau : conserve intégralement l'ancien menu horizontal */
@media (min-width: 701px) {
  .main-nav > ul > li { position: relative; }
  .main-nav > ul > li.menu-item-has-children > .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    width: 230px !important;
    min-width: 230px !important;
    padding: 7px !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: linear-gradient(145deg,#292d34,#111318) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 13px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.48) !important;
  }
  .main-nav > ul > li.menu-item-has-children:hover > .sub-menu,
  .main-nav > ul > li.menu-item-has-children:focus-within > .sub-menu,
  .main-nav > ul > li.menu-item-has-children.submenu-open > .sub-menu {
    display: flex !important;
  }
  .main-nav > ul > li > .sub-menu > li {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .main-nav > ul > li > .sub-menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #f4f4f4 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }
  .main-nav > ul > li > .sub-menu > li > a:hover,
  .main-nav > ul > li > .sub-menu > li > a:focus {
    background: rgba(225,6,0,.2) !important;
    color: #fff !important;
  }
  .main-nav > ul > li.menu-item-has-children > .sub-menu:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -11px;
    height: 11px;
  }
}
@media (max-width: 700px) {
  .main-nav > ul > li.menu-item-has-children > .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 0 !important;
    padding: 5px 0 0 14px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    border: 0 !important;
    border-left: 2px solid #e10600 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .main-nav > ul > li.menu-item-has-children.submenu-open > .sub-menu,
  .main-nav > ul > li.menu-item-has-children:focus-within > .sub-menu {
    display: flex !important;
  }
  .main-nav > ul > li > .sub-menu > li {
    padding: 5px 0 !important;
    border: 0 !important;
  }
  .main-nav > ul > li > .sub-menu > li > a {
    display: block !important;
    padding: 8px 10px !important;
    background: transparent !important;
    color: #eee !important;
    font-size: 12px !important;
    text-transform: none !important;
  }
}


/* Keep weekday labels on one line in office and theory timetable tables. */
.aed-info-page .aed-info-card table th:first-child,
.aed-info-page .aed-info-card table td:first-child {
  white-space: nowrap;
  min-width: 5.5em;
}

/* Version 42.17 : footer sans colonne Navigation, mise en page à deux colonnes. */
@media (min-width: 701px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.15fr 1fr !important;
    gap: 40px !important;
  }
}

/* Version 42.18 : présentation de l'organisation des cours théoriques. */
.aed-theory-page { padding-top: 38px; padding-bottom: 60px; }
.aed-theory-page .aed-info-hero { margin-bottom: 28px; }
.aed-theory-intro-card {
  max-width: 980px;
  margin: 0 auto 34px;
  padding: clamp(24px, 4vw, 38px);
  color: #fff;
  background: linear-gradient(135deg, rgba(55,58,66,.98), rgba(30,32,38,.98));
  border: 1px solid rgba(255,255,255,.22);
  border-left: 4px solid var(--red, #e10600);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0,0,0,.22);
}
.aed-theory-intro-card h2 { margin: 0 0 14px; color: #fff; font: 800 clamp(22px,3vw,30px)/1.1 var(--display); }
.aed-theory-intro-card h3 { margin: 24px 0 8px; color: #ff6b57; font: 800 19px/1.2 var(--display); }
.aed-theory-intro-card p { margin: 0 0 10px; color: #f1f1f1; line-height: 1.7; }
.aed-theory-intro-card .aed-theory-exception { margin-top: 20px; padding: 13px 16px; border-radius: 12px; background: rgba(225,6,0,.13); border: 1px solid rgba(225,6,0,.35); }
.aed-theory-existing-content { color: inherit; }


/* Version 42.20 : organisation des cours théoriques enrichie et shortcode calendrier brut masqué. */
.aed-theory-page { padding-top: 38px; padding-bottom: 64px; }
.aed-theory-intro-card {
  position: relative;
  overflow: hidden;
  max-width: 1040px;
  margin: 0 auto 36px;
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(225,6,0,.16), transparent 34%),
    linear-gradient(135deg, #343740 0%, #202229 68%, #181a20 100%);
  border: 1px solid rgba(255,255,255,.2);
  border-left: 5px solid var(--red, #e10600);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.aed-theory-card-heading { max-width: 850px; }
.aed-theory-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #ff9a75;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.aed-theory-intro-card h2 {
  margin: 0 0 13px;
  color: #fff;
  font: 900 clamp(24px,3.3vw,34px)/1.08 var(--display);
}
.aed-theory-intro-card p { margin: 0; color: #eceef2; line-height: 1.75; }
.aed-theory-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 27px 0 22px;
}
.aed-theory-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
}
.aed-theory-highlight-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg,#f0442e,#b90000);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 900;
}
.aed-theory-highlight strong { color: #fff; font-size: 13px; line-height: 1.4; }
.aed-theory-followup {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
}
.aed-theory-followup-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(225,6,0,.85);
  border-radius: 12px;
  font-size: 23px;
}
.aed-theory-followup h3 { margin: 0 0 5px; color: #ff987e; font-size: 17px; font-weight: 900; }
.aed-theory-exception {
  margin-top: 16px !important;
  padding: 17px 20px;
  background: linear-gradient(100deg,rgba(225,6,0,.2),rgba(225,6,0,.07));
  border: 1px solid rgba(255,91,70,.4);
  border-radius: 15px;
}
.aed-theory-exception-label {
  display: block;
  margin-bottom: 5px;
  color: #ff9b82;
  font-size: 14px;
  font-weight: 900;
}
.aed-theory-existing-content:empty { display: none; }
@media (max-width: 760px) {
  .aed-theory-highlights { grid-template-columns: 1fr; }
  .aed-theory-highlight { min-height: 62px; }
  .aed-theory-intro-card { padding: 22px 18px; border-radius: 18px; }
}


/* v42.21 – Images des catégories : mêmes dimensions et même cadre visuel. */
.license-card { min-height: 214px; }
.license-card img {
  display: block; width: 100%; height: 112px; min-height: 112px; max-height: 112px;
  object-fit: contain; object-position: center; padding: 7px 8px;
  box-sizing: border-box; background: #fff;
}
.aed-moto-photo:not(.aed-moto-gallery) {
  height: 320px; min-height: 320px; box-sizing: border-box;
}
.aed-moto-photo:not(.aed-moto-gallery) img {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center;
}
.aed-moto-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.aed-moto-gallery figure {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: 260px; min-height: 260px; box-sizing: border-box; padding: 10px; background: #fff;
}
.aed-moto-gallery img {
  display: block; width: 100%; height: 100%; min-height: 0; max-height: none;
  object-fit: contain; object-position: center;
}
.aed-theory-detail-text {
  margin: 22px 0; padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid rgba(255,255,255,.2); border-left: 4px solid #e10600;
  border-radius: 18px; background: linear-gradient(135deg, #30363b, #1d2025);
  box-shadow: 0 10px 26px rgba(0,0,0,.2); color: #f4f4f4;
}
.aed-theory-detail-text h3 { margin: 0 0 12px; color: #ffb15c; font-size: clamp(20px, 2.4vw, 26px); }
.aed-theory-detail-text p { margin: 0 0 12px; color: #e7e9ec; font-size: 16px; line-height: 1.75; }
.aed-theory-detail-text .aed-theory-calendar-reminder {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(225,6,0,.13); border: 1px solid rgba(225,6,0,.35);
}
@media (max-width: 700px) {
  .aed-moto-photo:not(.aed-moto-gallery) { height: 240px; min-height: 240px; }
  .aed-moto-gallery { grid-template-columns: 1fr; }
  .aed-moto-gallery figure { height: 230px; min-height: 230px; }
}

/* v42.26: center the two motorcycle images on the A category page */
.aed-moto-gallery-a { justify-items: center; }
.aed-moto-gallery-a figure { display:flex; align-items:center; justify-content:center; width:100%; }
.aed-moto-gallery-a img { display:block; margin:0 auto; object-fit:contain; object-position:center center; }


/* v42.27 – Le visuel unique du permis AM utilise le cadre simple, centré. */
.aed-vehicle-page .aed-moto-photo:not(.aed-moto-gallery) {
  display: flex; align-items: center; justify-content: center;
}
.aed-vehicle-page .aed-moto-photo:not(.aed-moto-gallery) > img {
  margin-left: auto; margin-right: auto;
}


/* v42.28 – correction robuste des visuels moto (image unique ou galerie) */
.aed-moto-page .aed-moto-photo.aed-moto-single {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0;
  padding:18px;
  box-sizing:border-box;
}
.aed-moto-page .aed-moto-photo.aed-moto-single figure {
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(100%, 360px);
  height:280px;
  margin:0 auto;
  padding:12px;
  box-sizing:border-box;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}
.aed-moto-page .aed-moto-photo.aed-moto-single img {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  max-height:none;
  margin:0 auto;
  object-fit:contain;
  object-position:center center;
}
.aed-moto-page .aed-moto-gallery figure {
  display:flex;
  align-items:center;
  justify-content:center;
}
.aed-moto-page .aed-moto-gallery img {
  object-fit:contain;
  object-position:center center;
}
@media(max-width:700px) {
  .aed-moto-page .aed-moto-photo.aed-moto-single { padding:12px; }
  .aed-moto-page .aed-moto-photo.aed-moto-single figure { height:230px; }
}

/* Réglages finaux – espacement et alignement du calendrier */
body.home .category-strip.section-pad {
  padding-bottom: 56px !important;
  margin-bottom: 0 !important;
}
body.home .aed-home-calendar.section-pad {
  padding-top: 0 !important;
  margin-top: 40px !important;
}
.aed-home-calendar-preview-line {
  grid-template-columns: 24px minmax(90px, .8fr) minmax(150px, 1fr) auto !important;
}
.aed-home-calendar-preview-line strong {
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  .aed-home-calendar-preview-line {
    grid-template-columns: 20px minmax(70px, .7fr) minmax(0, 1fr) !important;
  }
  .aed-home-calendar-preview-line strong {
    white-space: normal !important;
  }
  .aed-home-calendar-preview-line em {
    grid-column: 2 / -1 !important;
  }
}


/* Tableau des cours – colonnes régulières et langues alignées */
.aed-home-calendar-preview-line {
  display: grid !important;
  grid-template-columns: 24px minmax(105px, 1fr) minmax(145px, 1fr) minmax(125px, auto) !important;
  column-gap: 12px !important;
  align-items: center !important;
}
.aed-home-calendar-preview-line > b { grid-column: 1 !important; }
.aed-home-calendar-preview-line > span:not(.aed-language-flag) {
  grid-column: 2 !important; min-width: 0 !important;
}
.aed-home-calendar-preview-line > strong {
  grid-column: 3 !important; display: flex !important;
  align-items: center !important; justify-content: flex-start !important;
  justify-self: stretch !important; width: 100% !important; min-width: 0 !important;
  gap: 9px !important; margin: 0 !important; padding: 0 !important;
  text-align: left !important; white-space: nowrap !important;
}
.aed-home-calendar-preview-line .aed-language-flag {
  display: inline-flex !important; align-items: center !important;
  justify-content: center !important; flex: 0 0 24px !important;
  width: 24px !important; min-width: 24px !important; height: 20px !important;
  line-height: 1 !important; font-size: 16px !important; text-align: center !important;
}
.aed-home-calendar-preview-line > em {
  grid-column: 4 !important; justify-self: end !important;
  text-align: right !important; white-space: nowrap !important;
}
@media (max-width: 760px) {
  .aed-home-calendar-preview-line {
    grid-template-columns: 20px minmax(72px, .8fr) minmax(112px, 1fr) !important;
    column-gap: 8px !important;
  }
  .aed-home-calendar-preview-line > strong {
    grid-column: 3 !important; white-space: normal !important;
  }
  .aed-home-calendar-preview-line > em {
    grid-column: 2 / -1 !important; justify-self: start !important;
    text-align: left !important;
  }
}


/* Tableau d’aperçu des cours – alignement professionnel des colonnes */
.aed-home-calendar-preview {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.aed-home-calendar-preview-top,
.aed-home-calendar-preview-line {
  display: grid !important;
  grid-template-columns: 22px minmax(88px, 1fr) minmax(138px, 1.12fr) minmax(118px, auto) !important;
  column-gap: 12px !important;
  align-items: center !important;
}
.aed-home-calendar-preview-top {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
.aed-home-calendar-preview-line {
  min-height: 48px;
  padding: 10px 8px !important;
  box-sizing: border-box;
}
.aed-home-calendar-preview-line > b {
  grid-column: 1 !important;
  justify-self: center !important;
  margin: 0 !important;
}
.aed-home-calendar-preview-line > span:not(.aed-language-flag) {
  grid-column: 2 !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}
.aed-home-calendar-preview-line > strong.aed-language-cell {
  grid-column: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}
.aed-home-calendar-preview-line > strong.aed-language-cell .aed-language-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-align: center !important;
}
.aed-home-calendar-preview-line > strong.aed-language-cell > span:last-child {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.aed-home-calendar-preview-line > em {
  grid-column: 4 !important;
  justify-self: end !important;
  margin: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  .aed-home-calendar-preview-top {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .aed-home-calendar-preview-line {
    grid-template-columns: 18px minmax(68px, .85fr) minmax(105px, 1.15fr) !important;
    column-gap: 8px !important;
    row-gap: 5px !important;
  }
  .aed-home-calendar-preview-line > strong.aed-language-cell {
    grid-column: 3 !important;
    white-space: normal !important;
  }
  .aed-home-calendar-preview-line > em {
    grid-column: 2 / -1 !important;
    justify-self: start !important;
    text-align: left !important;
    white-space: normal !important;
    padding-left: 31px !important;
  }
}



/* FINAL OVERRIDE — alignement net du tableau des cours théoriques */
.aed-home-calendar-preview {
  width: 100% !important;
  box-sizing: border-box !important;
}
.aed-home-calendar-preview-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}
.aed-home-calendar-preview-line {
  display: grid !important;
  grid-template-columns: 18px minmax(82px, .9fr) minmax(132px, 1.2fr) minmax(112px, auto) !important;
  align-items: center !important;
  column-gap: 10px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}
.aed-home-calendar-preview-line > b {
  grid-column: 1 !important;
  display: block !important;
  width: 18px !important;
  text-align: center !important;
  margin: 0 !important;
}
.aed-home-calendar-preview-line > span:not(.aed-language-flag) {
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  text-align: left !important;
  margin: 0 !important;
}
.aed-home-calendar-preview-line > strong.aed-language-cell {
  grid-column: 3 !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: start !important;
  justify-self: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}
.aed-home-calendar-preview-line > strong.aed-language-cell .aed-language-flag {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  text-align: center !important;
}
.aed-home-calendar-preview-line > strong.aed-language-cell > span:last-child {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}
.aed-home-calendar-preview-line > em {
  grid-column: 4 !important;
  justify-self: end !important;
  margin: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  .aed-home-calendar-preview-line {
    grid-template-columns: 18px minmax(70px, .8fr) minmax(118px, 1.2fr) !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
  }
  .aed-home-calendar-preview-line > strong.aed-language-cell {
    grid-column: 3 !important;
    white-space: normal !important;
  }
  .aed-home-calendar-preview-line > em {
    grid-column: 2 / -1 !important;
    justify-self: start !important;
    text-align: left !important;
    white-space: normal !important;
    padding-left: 32px !important;
  }
}


/* Calendrier des cours : libérer l'espace du bandeau titre et garder les intitulés sur une ligne */
.aedct-calendar .aedct-chip,
.aedct-calendar .aedct-chip span,
.aedct-calendar .aedct-chip small {
    white-space: nowrap !important;
}
.aedct-calendar .aedct-chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aedct-calendar .aedct-days {
    min-width: 0;
}
.aedct-calendar .aedct-day {
    min-width: 0;
}
@media (max-width: 767px) {
    .aedct-calendar .aedct-chip { font-size: 10px; padding-left: 3px; padding-right: 3px; }
}


/* Ajustement visuel du calendrier sur l'accueil : image plus discrète et mieux proportionnée */
body.home .aed-home-calendar-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr) !important;
  gap: 18px !important;
  min-height: 235px !important;
}
body.home .aed-home-calendar-visual {
  min-height: 185px !important;
  height: 205px !important;
}
body.home .aed-home-calendar-visual img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 220px !important;
  object-fit: contain !important;
}
@media (max-width: 760px) {
  body.home .aed-home-calendar-card {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    gap: 6px !important;
  }
  body.home .aed-home-calendar-visual {
    min-height: 125px !important;
    height: 145px !important;
  }
  body.home .aed-home-calendar-visual img {
    max-height: 150px !important;
  }
}


/* Correction ferme : illustration du calendrier plus petite sur l'accueil */
body.home .aed-home-calendar-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr) !important;
  min-height: 220px !important;
  gap: 12px !important;
}
body.home .aed-home-calendar-visual {
  width: 100% !important;
  min-height: 0 !important;
  height: 175px !important;
  max-height: 175px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.home .aed-home-calendar-visual img {
  display: block !important;
  width: auto !important;
  max-width: 78% !important;
  height: auto !important;
  max-height: 165px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}
@media (max-width: 760px) {
  body.home .aed-home-calendar-card { grid-template-columns: 1fr !important; }
  body.home .aed-home-calendar-visual { height: 125px !important; max-height: 125px !important; }
  body.home .aed-home-calendar-visual img { max-height: 120px !important; max-width: 62% !important; }
}


@media screen and (max-width:700px) {
  .site-header { position:relative!important; width:calc(100% - 16px)!important; margin:8px auto 10px!important; overflow:visible!important; }
  .site-header .header-inner {
    position:relative!important; display:block!important; width:100%!important;
    height:92px!important; min-height:92px!important; padding:0 10px!important;
  }
  .site-header .header-inner .brand {
    position:absolute!important; left:14px!important; bottom:17px!important;
    display:flex!important; align-items:center!important; width:auto!important;
    max-width:calc(100% - 145px)!important; min-width:0!important; margin:0!important;
    padding:0!important; z-index:4!important;
  }
  .site-header .header-inner .brand img,
  .site-header .header-inner .brand .custom-logo {
    display:block!important; width:auto!important; height:auto!important;
    max-width:100%!important; max-height:42px!important; object-fit:contain!important;
  }
  .site-header .header-inner .brand-name { font-size:clamp(18px,5.3vw,25px)!important; line-height:1!important; white-space:nowrap!important; }
  .site-header .header-inner .header-tools {
    position:absolute!important; top:9px!important; right:53px!important; left:auto!important;
    display:block!important; width:auto!important; max-width:none!important;
    margin:0!important; padding:0!important; z-index:5!important;
  }
  .site-header .header-inner .header-tools .language-switcher {
    display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
    align-items:center!important; justify-content:flex-end!important; gap:8px!important;
    width:max-content!important; max-width:none!important; margin:0!important; padding:0!important;
    white-space:nowrap!important;
  }
  .site-header .header-inner .header-tools .language-switcher a,
  .site-header .header-inner .header-tools .language-switcher span {
    display:inline-flex!important; flex:0 0 27px!important; align-items:center!important;
    justify-content:center!important; width:27px!important; min-width:27px!important;
    max-width:27px!important; height:30px!important; min-height:30px!important;
    margin:0!important; padding:0!important; border:0!important; border-radius:0!important;
    background:transparent!important; box-shadow:none!important; font-size:22px!important;
    line-height:1!important; white-space:nowrap!important;
  }
  .site-header .header-inner .nav-toggle {
    position:absolute!important; top:50%!important; right:13px!important; left:auto!important;
    display:flex!important; flex-direction:column!important; align-items:center!important;
    justify-content:center!important; width:30px!important; min-width:30px!important;
    height:38px!important; margin:0!important; padding:3px 0!important;
    transform:translateY(-35%)!important; z-index:6!important;
  }
  .site-header .header-inner .nav-toggle span { display:block!important; width:25px!important; height:3px!important; margin:0!important; }
  .site-header .header-inner .main-nav { top:92px!important; left:0!important; right:0!important; z-index:8!important; }

}


/* V1.00 — correction ciblée de l'en-tête en mode portrait */
@media screen and (max-width: 700px) and (orientation: portrait) {
  .site-header {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }
  .site-header .header-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 104px !important;
    min-height: 104px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  /* Les drapeaux sont positionnés individuellement : aucun retour à la ligne possible. */
  .site-header .header-inner .header-tools {
    position: absolute !important;
    top: 12px !important;
    right: 54px !important;
    left: auto !important;
    display: block !important;
    width: 104px !important;
    height: 30px !important;
    max-width: 104px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 10 !important;
  }
  .site-header .header-inner .header-tools .language-switcher {
    position: relative !important;
    display: block !important;
    width: 104px !important;
    height: 30px !important;
    max-width: 104px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }
  .site-header .header-inner .header-tools .language-switcher a,
  .site-header .header-inner .header-tools .language-switcher span {
    position: absolute !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 22px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    transform: none !important;
  }
  .site-header .header-inner .header-tools .language-switcher a:nth-child(1),
  .site-header .header-inner .header-tools .language-switcher span:nth-child(1) { left: 0 !important; }
  .site-header .header-inner .header-tools .language-switcher a:nth-child(2),
  .site-header .header-inner .header-tools .language-switcher span:nth-child(2) { left: 36px !important; }
  .site-header .header-inner .header-tools .language-switcher a:nth-child(3),
  .site-header .header-inner .header-tools .language-switcher span:nth-child(3) { left: 72px !important; }

  .site-header .header-inner .brand {
    position: absolute !important;
    left: 14px !important;
    right: 58px !important;
    bottom: 17px !important;
    top: auto !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 4 !important;
  }
  .site-header .header-inner .brand img,
  .site-header .header-inner .brand .custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 38px !important;
    object-fit: contain !important;
  }
  .site-header .header-inner .brand-name {
    font-size: clamp(17px, 5vw, 23px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .site-header .header-inner .nav-toggle {
    position: absolute !important;
    top: 61px !important;
    right: 13px !important;
    left: auto !important;
    transform: none !important;
    z-index: 11 !important;
  }
}


/* =========================================================
   V1.00 — Refonte responsive portrait (règles prioritaires)
   - En-tête : drapeaux réellement en flex, sans positionnement
     absolu individuel ni retour à la ligne.
   - Images : largeur fluide et ratio naturel sur téléphone.
   ========================================================= */
@media screen and (max-width: 760px) {
  .site-header,
  .site-header .header-inner {
    box-sizing: border-box !important;
  }

  .site-header .header-inner {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 112px !important;
    min-height: 112px !important;
    padding: 0 12px !important;
  }

  .site-header .header-inner .header-tools {
    position: absolute !important;
    top: 10px !important;
    right: 58px !important;
    left: auto !important;
    display: block !important;
    width: auto !important;
    max-width: calc(100% - 150px) !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 20 !important;
  }

  .site-header .header-inner .header-tools nav.language-switcher,
  .site-header .header-inner .header-tools .language-switcher {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(5px, 2vw, 12px) !important;
    width: max-content !important;
    max-width: 100% !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .site-header .header-inner .header-tools .language-switcher > a,
  .site-header .header-inner .header-tools .language-switcher > span {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 32px !important;
    min-height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 23px !important;
    line-height: 1 !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  .site-header .header-inner .brand {
    position: absolute !important;
    left: 14px !important;
    right: 58px !important;
    top: 59px !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: calc(100% - 85px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 4 !important;
  }

  .site-header .header-inner .brand img,
  .site-header .header-inner .brand .custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 39px !important;
    object-fit: contain !important;
  }

  .site-header .header-inner .brand-name {
    font-size: clamp(17px, 5vw, 23px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .site-header .header-inner .nav-toggle {
    position: absolute !important;
    top: 60px !important;
    right: 14px !important;
    left: auto !important;
    display: flex !important;
    transform: none !important;
    z-index: 21 !important;
  }

  .site-header .header-inner .main-nav {
    top: 112px !important;
  }

  /* Toutes les images suivent la largeur du viewport et gardent leur ratio. */
  img,
  picture,
  video,
  iframe {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  img {
    height: auto;
  }

  /* Visuels des catégories : image entière visible dans chaque carte. */
  .license-scroller {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .license-card {
    flex: 0 0 118px !important;
    min-width: 118px !important;
  }

  .license-card img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 96px !important;
    max-height: 96px !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Illustration du calendrier : plus petite, centrée et jamais coupée. */
  body.home .aed-home-calendar-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 0 !important;
    height: auto !important;
  }

  body.home .aed-home-calendar-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.home .aed-home-calendar-visual img {
    display: block !important;
    width: auto !important;
    max-width: min(72%, 260px) !important;
    height: auto !important;
    max-height: 165px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  }

/* v1.08 — uniformisation des galeries moto A et A2 dans les quatre langues */
.aed-moto-page .aed-moto-photo.aed-moto-gallery{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
  align-items:stretch;justify-items:stretch;min-width:0;
}
.aed-moto-page .aed-moto-photo.aed-moto-gallery figure{
  display:flex;align-items:center;justify-content:center;min-width:0;
  width:100%;aspect-ratio:1/1;margin:0;padding:8px;
  overflow:hidden;border-radius:18px;background:#fff;
}
.aed-moto-page .aed-moto-photo.aed-moto-gallery img{
  display:block;width:100%;height:100%;min-height:0;max-height:none;
  object-fit:contain;border-radius:12px;
}
@media(max-width:700px){
  .aed-moto-page .aed-moto-photo.aed-moto-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;height:auto}
  .aed-moto-page .aed-moto-photo.aed-moto-gallery figure{aspect-ratio:1/1;padding:5px}
}


/* v1.02 – dimensions identiques des photos A1, A2 et A dans toutes les langues. */
.aed-moto-page .aed-moto-hero .aed-moto-photo.aed-moto-gallery {
 display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 align-items:stretch !important; justify-items:stretch !important; gap:14px !important;
 height:auto !important; min-height:0 !important; padding:18px !important; box-sizing:border-box !important;
}
.aed-moto-page .aed-moto-hero .aed-moto-photo.aed-moto-gallery > figure {
 display:flex !important; align-items:center !important; justify-content:center !important;
 width:100% !important; height:auto !important; min-height:0 !important; aspect-ratio:1/1 !important;
 margin:0 !important; padding:8px !important; box-sizing:border-box !important; overflow:hidden !important;
 border-radius:18px !important; background:#fff !important;
}
.aed-moto-page .aed-moto-hero .aed-moto-photo.aed-moto-gallery > figure > img {
 display:block !important; width:100% !important; height:100% !important; min-height:0 !important;
 max-height:none !important; object-fit:contain !important; object-position:center center !important; margin:0 auto !important;
}
@media(max-width:700px) {
 .aed-moto-page .aed-moto-hero .aed-moto-photo.aed-moto-gallery {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:8px !important;padding:12px !important;}
 .aed-moto-page .aed-moto-hero .aed-moto-photo.aed-moto-gallery > figure {aspect-ratio:1/1 !important;height:auto !important;min-height:0 !important;padding:5px !important;}
}

/* v1.04 – Informations complémentaires structurées en cartes */
.aed-extra-info{margin:24px 0 20px;padding:28px;border:1px solid #45494d;border-left:7px solid #e10600;border-radius:24px;background:linear-gradient(145deg,#292d31,#111315);color:#fff;box-shadow:0 8px 24px #0005}
.aed-extra-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:26px}
.aed-extra-heading h3{margin:0;color:#fff;font-size:clamp(24px,2.4vw,34px);font-weight:850}
.aed-extra-underline{display:block;width:120px;height:6px;border-radius:8px;background:#e10600;margin-top:12px}
.aed-extra-rate{display:flex;align-items:center;gap:14px;padding:13px 20px;border:1px solid #e10600;border-radius:40px;background:#17191b;white-space:nowrap}
.aed-extra-rate-icon{font-size:26px}.aed-extra-rate strong{font-size:18px}
.aed-extra-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.aed-extra-card{display:flex;gap:18px;align-items:flex-start;min-width:0;padding:22px;border:1px solid #45494d;border-radius:22px;background:linear-gradient(145deg,#34383c,#222528)}
.aed-extra-icon{flex:0 0 52px;color:#e10600;font-size:38px;font-weight:900;line-height:1.2}
.aed-extra-card h4{margin:0 0 14px;color:#fff;font-size:21px;font-weight:850}
.aed-extra-card p{position:relative;margin:0 0 10px;padding-left:24px;color:#f5f5f5;line-height:1.5}
.aed-extra-card p:before{content:"✓";position:absolute;left:0;color:#e10600;font-weight:900;font-size:19px}
.aed-extra-location{display:flex;align-items:center;gap:14px;margin-top:22px;padding:18px 22px;border:1px solid #e10600;border-left:9px solid #e10600;border-radius:20px;background:linear-gradient(90deg,#7e090d,#211719);color:#fff;line-height:1.5}
.aed-extra-location span{font-size:32px}.aed-extra-location strong{white-space:nowrap}
@media(max-width:900px){.aed-extra-grid{grid-template-columns:1fr}.aed-extra-heading{align-items:flex-start;flex-direction:column}.aed-extra-rate{white-space:normal}}
@media(max-width:560px){.aed-extra-info{padding:18px}.aed-extra-card{padding:17px;gap:12px}.aed-extra-icon{flex-basis:38px;font-size:30px}.aed-extra-card h4{font-size:18px}.aed-extra-location{align-items:flex-start;flex-wrap:wrap}.aed-extra-location strong{white-space:normal}}


/* v1.13 – centered motorcycle detail cards + complete category dropdown */
.aed-moto-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(280px,390px))!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:18px!important;
  width:100%!important;
  margin:26px auto!important;
}
.aed-moto-details article{width:100%;box-sizing:border-box}
@media(max-width:760px){
  .aed-moto-details{grid-template-columns:minmax(0,1fr)!important;max-width:520px!important}
}
/* Keep the category submenu usable on desktop and touch devices */
.main-nav .aed-categories-dropdown{position:relative}
.main-nav .aed-categories-dropdown>.sub-menu{
  display:none;position:absolute;top:100%;left:0;z-index:1000;
  min-width:245px;margin:0;padding:9px 0;list-style:none;
  background:#202328;border:1px solid #555;border-top:3px solid #e10600;
  border-radius:0 0 14px 14px;box-shadow:0 12px 28px rgba(0,0,0,.38)
}
.main-nav .aed-categories-dropdown:hover>.sub-menu,
.main-nav .aed-categories-dropdown:focus-within>.sub-menu{display:block}
.main-nav .aed-categories-dropdown>.sub-menu li{display:block;width:100%;margin:0}
.main-nav .aed-categories-dropdown>.sub-menu a{
  display:block;padding:10px 16px;color:#fff;text-decoration:none;white-space:normal
}
.main-nav .aed-categories-dropdown>.sub-menu a:hover,
.main-nav .aed-categories-dropdown>.sub-menu a:focus{background:#e10600;color:#fff}
@media(max-width:760px){
  .main-nav .aed-categories-dropdown>.sub-menu{
    position:static;min-width:0;width:100%;box-shadow:none;border-radius:12px;
    margin:6px 0 10px;background:#17191d
  }
  .main-nav .aed-categories-dropdown:hover>.sub-menu{display:none}
  .main-nav .aed-categories-dropdown:focus-within>.sub-menu{display:block}
}

/* v1.16 – Alignement centré des cartes Formation pratique / Tarifs */
body .aed-moto-page .aed-moto-details {
  display:flex !important;
  flex-flow:row wrap !important;
  justify-content:center !important;
  align-items:stretch !important;
  gap:18px !important;
  width:100% !important;
  max-width:100% !important;
  margin:28px auto 30px !important;
  padding:0 !important;
  position:static !important;
  left:auto !important;
  transform:none !important;
  box-sizing:border-box !important;
}
body .aed-moto-page .aed-moto-details > article {
  flex:0 1 390px !important;
  width:calc(50% - 9px) !important;
  max-width:390px !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
@media (max-width:700px) {
  body .aed-moto-page .aed-moto-details { flex-direction:column !important; align-items:stretch !important; margin:22px auto !important; }
  body .aed-moto-page .aed-moto-details > article { flex:0 1 auto !important; width:100% !important; max-width:520px !important; margin-inline:auto !important; }
}

/* v1.17 TEST – centrage réel du groupe des cartes, même si son parent est une grille */
body .aed-moto-page .aed-moto-details,
body .aed-moto-page > .aed-moto-details {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,390px)) !important;
  justify-content:center !important;
  justify-items:stretch !important;
  align-items:stretch !important;
  gap:18px !important;
  width:max-content !important;
  max-width:100% !important;
  margin:28px auto 30px !important;
  padding:0 !important;
  float:none !important;
  clear:both !important;
  position:relative !important;
  inset-inline:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  justify-self:center !important;
  grid-column:1 / -1 !important;
  box-sizing:border-box !important;
}
body .aed-moto-page .aed-moto-details > article {
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
@media (max-width:700px) {
  body .aed-moto-page .aed-moto-details,
  body .aed-moto-page > .aed-moto-details {
    grid-template-columns:minmax(0,1fr) !important;
    width:min(100%,520px) !important;
    max-width:520px !important;
    margin:22px auto !important;
  }
}


/* v1.18 TEST – centrage du groupe par rapport à toute la largeur du bloc moto */
body .aed-moto-page {
  display:block !important;
  width:100% !important;
  max-width:1120px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}
body .aed-moto-page .aed-moto-details {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,390px)) !important;
  justify-content:center !important;
  justify-items:stretch !important;
  align-items:stretch !important;
  column-gap:18px !important;
  row-gap:18px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:28px auto 30px !important;
  padding:0 !important;
  float:none !important;
  clear:both !important;
  position:static !important;
  inset:auto !important;
  transform:none !important;
  justify-self:stretch !important;
  box-sizing:border-box !important;
}
body .aed-moto-page .aed-moto-details > article {
  display:block !important;
  width:100% !important;
  max-width:390px !important;
  min-width:0 !important;
  margin:0 !important;
  justify-self:center !important;
  box-sizing:border-box !important;
}
@media (max-width:700px) {
  body .aed-moto-page .aed-moto-details {
    grid-template-columns:minmax(0,520px) !important;
    justify-content:center !important;
    width:100% !important;
    max-width:100% !important;
    margin:22px auto !important;
  }
  body .aed-moto-page .aed-moto-details > article {
    width:100% !important;
    max-width:520px !important;
  }
}


/* v1.19 TEST – trois cartes de formation pour la catégorie A, alignées et centrées */
body .aed-moto-page .aed-moto-details {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: center !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 1120px !important;
  margin: 28px auto 30px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body .aed-moto-page .aed-moto-details > article {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  body .aed-moto-page .aed-moto-details {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  body .aed-moto-page .aed-moto-details {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 22px auto !important;
  }
}


/* v1.21 TEST – centrage réel de l'image unique des catégories voiture.
   Le visuel occupe toute la colonne droite et la carte image est centrée
   indépendamment de sa taille intrinsèque. */
body .aed-vehicle-page .aed-moto-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}
body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 300px !important;
  min-height: 300px !important;
  margin: 0 !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) > img {
  display: block !important;
  flex: 0 1 320px !important;
  width: min(100%, 320px) !important;
  max-width: 320px !important;
  height: 260px !important;
  max-height: 260px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 760px) {
  body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) {
    height: 250px !important;
    min-height: 250px !important;
  }
  body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) > img {
    height: 220px !important;
    max-height: 220px !important;
  }
}


/* v1.22 TEST – conduite accompagnée : informations mieux structurées,
   tout en restant dans l'encadré Informations complémentaires existant. */
.aed-moto-note .aed-bacc-info-grid{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:16px!important;
 margin-top:16px!important;
}
.aed-moto-note .aed-bacc-info-card{
 min-width:0!important;
 padding:18px!important;
 border:1px solid rgba(255,255,255,.22)!important;
 border-radius:14px!important;
 background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(0,0,0,.16))!important;
 box-sizing:border-box!important;
}
.aed-moto-note .aed-bacc-info-card h4{
 margin:0 0 12px!important;
 color:#fff!important;
 font-size:1.02em!important;
}
.aed-moto-note .aed-bacc-info-card p,
.aed-moto-note .aed-bacc-info-card li{
 color:#f2f2f2!important;
 line-height:1.6!important;
}
.aed-moto-note .aed-bacc-info-card p{margin:0!important}
.aed-moto-note .aed-bacc-info-card ul{
 margin:0!important;
 padding-left:20px!important;
}
.aed-moto-note .aed-bacc-info-card li+li{margin-top:8px!important}
@media(max-width:760px){
 .aed-moto-note .aed-bacc-info-grid{grid-template-columns:1fr!important}
}


/* v1.22.2 – Présentation structurée de la formation pratique en conduite accompagnée */
.aed-bacc-practice-steps{list-style:none!important;counter-reset:none;margin:14px 0 0!important;padding:0!important;display:grid;gap:12px}
.aed-bacc-practice-steps li{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:start;gap:10px;margin:0!important;padding:0!important}
.aed-bacc-step-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#e10600;color:#fff;font-weight:800;font-size:14px;line-height:1;flex:0 0 28px}
.aed-bacc-practice-steps strong{display:block;color:inherit;font-size:15px;line-height:1.3;margin:1px 0 3px}
.aed-bacc-practice-steps p{margin:0!important;line-height:1.45;font-size:14px}
@media(max-width:760px){.aed-bacc-practice-steps{gap:14px}.aed-bacc-practice-steps li{grid-template-columns:28px minmax(0,1fr);gap:9px}.aed-bacc-practice-steps strong{font-size:14px}.aed-bacc-practice-steps p{font-size:13px}}


/* AUTO-ÉCOLE DAN v1.00.15 — règle unique des photos des catégories de permis.
   Les anciennes règles concurrentes ont été retirées. Le visuel source est carré :
   object-fit:cover recadre ses marges intégrées pour remplir la colonne sans décentrer le véhicule. */
body .aed-vehicle-page .aed-moto-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
}
body .aed-vehicle-page .aed-moto-hero > .aed-moto-copy,
body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  align-self: stretch;
  height: 320px;
  min-height: 320px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: none;
}
body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) > img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center center;
  background: #fff;
  border: 0;
  box-shadow: none;
}
@media (max-width: 760px) {
  body .aed-vehicle-page .aed-moto-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body .aed-vehicle-page .aed-moto-hero > .aed-moto-photo:not(.aed-moto-gallery) {
    height: 280px;
    min-height: 280px;
  }
}


/* v1.00.16: les photos uniques utilisent .aed-moto-single, pas la grille galerie. */


/* AUTO-ÉCOLE DAN v1.00.17 — fond blanc uniforme pour les zones photos des véhicules.
   Le fond est appliqué au conteneur extérieur ET aux cellules de galerie :
   aucune bande sombre ne doit rester autour des visuels. */
body .aed-vehicle-page .aed-moto-photo,
body .aed-moto-page .aed-moto-photo {
  background: #fff !important;
  background-color: #fff !important;
}
body .aed-vehicle-page .aed-moto-photo > figure,
body .aed-moto-page .aed-moto-photo > figure,
body .aed-vehicle-page .aed-moto-photo.aed-moto-gallery > figure,
body .aed-moto-page .aed-moto-photo.aed-moto-gallery > figure {
  background: #fff !important;
  background-color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
body .aed-vehicle-page .aed-moto-photo img,
body .aed-moto-page .aed-moto-photo img {
  background: #fff !important;
  background-color: #fff !important;
}

/* AUTO-ÉCOLE DAN v1.00.41 — Menu Catégories : grille native du thème.
   Cette règle est volontairement plus spécifique que les anciennes règles
   génériques de sous-menu (flex/column) et que l'ancien display:block.
   Le menu Catégories lui-même est une grille de deux colonnes ; les autres
   menus déroulants, notamment Nos bureaux, gardent leur présentation actuelle. */
@media (min-width: 701px) {
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown {
    position: relative !important;
  }

  /* Fermé par défaut : ne jamais afficher le sous-menu en permanence. */
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown > ul.sub-menu {
    display: none !important;
  }

  /* Ouverture uniquement au survol, au clavier ou si le thème l'ouvre explicitement. */
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown:hover > ul.sub-menu,
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown:focus-within > ul.sub-menu,
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown.submenu-open > ul.sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(170px, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    gap: 2px 10px !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 440px !important;
    min-width: 440px !important;
    max-width: min(92vw, 520px) !important;
    box-sizing: border-box !important;
    padding: 9px !important;
    margin: 0 !important;
    z-index: 999999 !important;
    list-style: none !important;
    flex-direction: initial !important;
    background: linear-gradient(145deg, #292d34, #111318) !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-top: 3px solid #e10600 !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.48) !important;
  }

  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown > ul.sub-menu > li {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown > ul.sub-menu > li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #f4f4f4 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
  }

  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown > ul.sub-menu > li > a:hover,
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown > ul.sub-menu > li > a:focus {
    background: rgba(225,6,0,.28) !important;
    color: #fff !important;
  }
}

@media (max-width: 700px) {
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown > ul.sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    margin: 8px 0 10px !important;
    padding: 5px 0 5px 14px !important;
    border: 0 !important;
    border-left: 2px solid #e10600 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown.submenu-open > ul.sub-menu,
  .site-header .header-inner > .main-nav ul.menu > li.aed-categories-dropdown:focus-within > ul.sub-menu {
    display: grid !important;
  }
}



/* v1.00.45 : tableaux des bureaux équilibrés sur iPad et tablettes.
   Les deux cartes gardent la même largeur et les colonnes restent lisibles. */
@media (min-width: 761px) {
  .aed-info-page .aed-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }
}
.aed-info-page .aed-info-card {
  min-width: 0;
}
.aed-info-page .aed-info-card table {
  width: 100%;
  table-layout: fixed;
}
.aed-info-page .aed-info-card table th:first-child,
.aed-info-page .aed-info-card table td:first-child {
  width: 30%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.aed-info-page .aed-info-card table th:nth-child(2),
.aed-info-page .aed-info-card table td:nth-child(2) {
  width: 27%;
  white-space: nowrap;
}
.aed-info-page .aed-info-card table th:nth-child(3),
.aed-info-page .aed-info-card table td:nth-child(3) {
  width: 43%;
  overflow-wrap: break-word;
  word-break: normal;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .aed-info-page .aed-info-card { padding: 18px !important; }
  .aed-info-page .aed-info-card th,
  .aed-info-page .aed-info-card td { padding: 9px 7px; }
  .aed-info-page .aed-info-card table { font-size: 13px; }
}

/* v1.00.46 : en portrait, empiler les tableaux des bureaux et centrer les langues. */
.aed-info-page .aed-info-card table th:nth-child(3),
.aed-info-page .aed-info-card table td:nth-child(3) {
  text-align: center !important;
  vertical-align: middle !important;
}
.aed-info-page .aed-info-card table th,
.aed-info-page .aed-info-card table td {
  vertical-align: middle;
}
@media (max-width: 900px) {
  .aed-info-page .aed-info-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
  }
  .aed-info-page .aed-info-card {
    width: 100% !important;
    min-width: 0 !important;
  }
  .aed-info-page .aed-info-card table {
    width: 100% !important;
  }
}


/* v1.00.47 — centrer également la colonne des horaires dans les tableaux des bureaux. */
.aed-info-page .aed-info-card table th:nth-child(2),
.aed-info-page .aed-info-card table td:nth-child(2) {
  text-align: center !important;
  vertical-align: middle !important;
}


/* v1.00.52 — catégories : liens informatifs en bas ; cours de soutien mieux structurés */
.aed-category-feature-grid-bottom{margin-top:18px;margin-bottom:22px}
.aed-category-feature-grid-bottom .aed-category-card{min-height:62px}
.aed-refresher-page{max-width:1120px;margin:32px auto 70px}
.aed-refresher-page .aed-info-hero{margin-bottom:22px}
.aed-refresher-intro{padding:26px 30px;margin-bottom:18px;line-height:1.75}
.aed-refresher-intro p{margin:0;font-size:1.05rem}
.aed-refresher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.aed-refresher-section{display:grid;grid-template-columns:52px minmax(0,1fr);gap:16px;padding:24px;align-items:start}
.aed-refresher-section h2{margin:0 0 10px;font-size:clamp(20px,2vw,26px);line-height:1.2}
.aed-refresher-section p{margin:0;line-height:1.7}
.aed-refresher-number{display:flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:13px;background:rgba(255,91,45,.16);border:1px solid rgba(255,91,45,.6);color:#ff8a45;font-size:19px;font-weight:800}
.aed-refresher-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.aed-refresher-tags span{padding:7px 12px;border-radius:20px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.06);font-weight:700;font-size:.9rem}
.aed-refresher-documents .aed-doc-list{margin:0;padding-left:20px;line-height:1.9}
.aed-refresher-conclusion{margin:18px 0 0;padding:20px 24px;border-left:5px solid #ff7135;border-radius:10px;background:rgba(255,113,53,.12);line-height:1.7}
@media(max-width:760px){.aed-refresher-grid{grid-template-columns:1fr}.aed-refresher-section{padding:20px}.aed-refresher-intro{padding:22px}}


/* v1.00.53 — structure unifiée des pages Examen de contrôle et Cours de soutien */
.aed-control-exam-page,.aed-refresher-page{max-width:1120px;margin:32px auto 70px}
.aed-control-exam-page .aed-info-hero,.aed-refresher-page .aed-info-hero{margin-bottom:24px}
.aed-control-exam-steps,.aed-refresher-steps{display:grid;grid-template-columns:1fr;gap:18px}
.aed-control-step{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:18px;padding:26px 30px;margin:0!important}
.aed-control-step h2{margin:0 0 10px;font-size:clamp(21px,2.2vw,28px);line-height:1.15}
.aed-control-step p{margin:0;line-height:1.7}
.aed-control-step-number{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:14px;background:rgba(255,91,45,.16);border:1px solid rgba(255,91,45,.65);color:#ff8a45;font-weight:800;font-size:20px}
.aed-control-warning{border-left:5px solid #ff7135!important;background:linear-gradient(110deg,rgba(255,113,53,.15),rgba(255,255,255,.035))!important}
.aed-control-warning .aed-control-step-number{background:rgba(255,91,45,.23)}
.aed-refresher-step{margin:0!important}
.aed-refresher-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.aed-refresher-tags span{padding:7px 12px;border-radius:20px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.06);font-weight:700;font-size:.9rem}
.aed-refresher-doc-list{margin:0;padding-left:20px;line-height:1.9}
.aed-refresher-conclusion{margin:18px 0 0;padding:20px 24px;border-left:5px solid #ff7135;border-radius:10px;background:rgba(255,113,53,.12);line-height:1.7}
@media(max-width:640px){.aed-control-step{grid-template-columns:44px minmax(0,1fr);gap:12px;padding:20px 16px}.aed-control-step-number{width:40px;height:40px;border-radius:10px;font-size:16px}}
