/* Country template — shared header, footer and widgets keep the site styles. */
.country-page{--country-red:#ff0030;--country-ink:#071c3d;--country-text:#485977;--country-pink:#fff1f4;color:var(--country-ink);overflow:hidden}
.country-page *{box-sizing:border-box}
.country-container{width:min(100% - 88px,1200px);margin-inline:auto}
.country-page h1,.country-page h2,.country-page h3,.country-page p,.country-page ul,.country-page figure{margin:0}
.country-page ul{padding:0;list-style:none}
.country-page h1,.country-page h2,.country-page h3{letter-spacing:-.035em;font-weight:800}
.country-page h1 span,.country-page h2 span{color:var(--country-red)}
.country-page a,.country-page button,.country-page input,.country-page select{outline-offset:5px}
.country-page :focus-visible{outline:2px solid var(--country-red)}
.country-hero{position:relative;padding:34px 0 26px}
.country-hero__grid{display:grid;grid-template-columns:1.16fr 1fr;gap:44px;align-items:center}
.country-breadcrumb{display:flex;flex-wrap:wrap;gap:5px;align-items:center;color:#75839c;font-size:12px;line-height:1.5;margin-bottom:24px}
.country-breadcrumb a{color:inherit}
.country-breadcrumb a:hover{text-decoration:underline}
.country-breadcrumb [aria-current]{color:var(--country-ink);font-weight:650}
.country-page h1{font-size:clamp(37px,4.3vw,58px);line-height:1.04;margin-bottom:14px}
.country-page h1.country-title--long{font-size:clamp(34px,3.8vw,50px)}
.country-hero__lead{font-size:17px;line-height:1.5;color:var(--country-text);max-width:590px}
.country-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:23px}
.country-checks{display:flex;flex-wrap:wrap;gap:13px 24px;margin-top:28px!important}
.country-checks li{display:flex;align-items:center;gap:9px;font-size:10px;line-height:1.35;color:var(--country-text)}
.country-checks svg{width:19px;height:19px;flex:0 0 19px;stroke:var(--country-red);stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.country-hero__visual{position:relative;isolation:isolate}
.country-hero__picture{position:relative;aspect-ratio:4/3;overflow:hidden;-webkit-mask:url('../img/countries/cadre-terminale-stmg.svg') center/100% 100% no-repeat;mask:url('../img/countries/cadre-terminale-stmg.svg') center/100% 100% no-repeat}
.country-hero__landscape{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.country-hero__accents{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;stroke:#ed102c;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.country-hero__visual>.country-photo-byline{left:32%;bottom:11%}
.country-benefits{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #ffe0e7;border-radius:17px;padding:10px 0!important;min-height:154px}
.country-benefits li{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:6px 12px;position:relative}
.country-benefits li+li::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:#ffe5eb}
.country-icon{width:70px;height:70px;background:var(--country-pink);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--country-red)}
.country-icon .ml-icon{width:36px;height:36px;stroke-width:1.8}
.country-benefits strong{font-size:14px;line-height:1.3;letter-spacing:-.025em;font-weight:700}
.country-community{display:grid;grid-template-columns:1.85fr 1fr;gap:64px;align-items:center;padding-top:42px}
.country-eyebrow{font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--country-red);line-height:1.4;margin-bottom:10px!important}
.country-page h2{font-size:35px;line-height:1.14}
.country-community h2{max-width:730px;margin-bottom:13px}
.country-community__copy>p:not(.country-eyebrow){color:var(--country-text);font-size:14px;line-height:1.48;margin-top:12px}
.country-community__visual{position:relative;min-width:0}
.country-community__photo{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:0;display:block}
.country-community__badge{position:absolute;bottom:-1px;right:-20px;display:flex;align-items:center;gap:18px;background:white;border:1px solid #ffe0e7;border-radius:17px;padding:15px 22px;box-shadow:0 9px 25px #64102808}
.country-community__badge img{width:49px;height:34px;object-fit:contain;transform:rotate(-4deg)}
.country-community__badge strong{font-size:12px;line-height:1.35;font-weight:700}
.country-stats{display:grid;grid-template-columns:1fr 1fr 1.1fr;margin-top:28px!important;background:linear-gradient(110deg,#fff5f7,#fff8f9);border-radius:17px;padding:20px 25px!important;gap:22px}
.country-stats li{display:flex;align-items:center;gap:22px;position:relative}
.country-stats li+li{padding-left:30px;border-left:1px solid #ffdce5}
.country-stats .country-icon{background:#ffe9ef}
.country-stats p{display:flex;flex-direction:column;gap:1px}
.country-stats p strong{font-size:29px;line-height:1.3;letter-spacing:-.03em;color:var(--country-red);font-weight:750}
.country-stats p span{font-size:13px;line-height:1.4;color:var(--country-text)}
.country-section-heading{text-align:center}
.country-section-heading h2{font-size:31px}
.country-section-heading>p:not(.country-eyebrow){color:var(--country-text);font-size:14px;line-height:1.45;margin-top:8px}
.country-schedule{padding:38px 32px 0}
.country-schedule__controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px 26px;margin:18px 0 14px;font-size:12px;color:var(--country-text)}
.country-schedule__controls[hidden]{display:none}
.country-schedule__controls label{display:flex;align-items:center;gap:9px}
.country-schedule__controls input,.country-schedule__controls select{font:inherit;color:var(--country-ink);min-height:34px;border:1px solid #dfe4ec;border-radius:7px;background:#fff;padding:5px 9px;max-width:240px}
.country-schedule__table-wrap{border:1px solid #e2e7ef;border-radius:14px;overflow:auto;margin-top:18px;scrollbar-width:thin}
.country-schedule__table{border-collapse:collapse;width:100%;font-size:14px;text-align:left;line-height:1.35;table-layout:fixed}
.country-schedule__table th,.country-schedule__table td{padding:10px 28px;vertical-align:middle}
.country-schedule__table th{font-weight:650}
.country-schedule__table thead{background:#f7f8fb}
.country-schedule__table tr>*+*{border-left:1px solid #e8ecf3}
.country-schedule__table tbody tr{border-top:1px solid #e8ecf3}
.country-schedule__table td{color:var(--country-text)}
.country-schedule__table thead th:last-child,.country-schedule__table tbody tr:first-child td:last-child{color:var(--country-red);font-weight:700}
.country-schedule__table small{font-size:10px;white-space:nowrap}
.country-schedule__note,.country-schedule__detail{font-size:11px;line-height:1.5;text-align:center;color:var(--country-text);margin-top:10px!important}
.country-schedule__detail{font-size:10px;margin-top:3px!important}
.country-schedule__detail a{color:var(--country-ink);text-decoration:underline;text-underline-offset:2px}
.country-classes{padding-top:32px}
.country-classes__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:18px}
.country-class{border:1px solid #ffdce5;border-radius:15px;padding:18px;display:flex;align-items:flex-start;gap:20px;min-width:0}
.country-class .country-icon{width:65px;height:65px}
.country-class h3{font-size:19px;margin:2px 0 4px;font-weight:750}
.country-class p{font-size:13px;line-height:1.35;color:var(--country-text)}
.country-class a{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:650;line-height:1.3;color:var(--country-red);margin-top:12px}
.country-class a:hover{text-decoration:underline;text-underline-offset:3px}
.country-class .country-class__alternative{font-size:10px;font-weight:500;color:var(--country-text);margin-top:6px;text-decoration:underline;text-underline-offset:2px}
.country-contact{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:.8fr 1.9fr;align-items:center;gap:36px;border-radius:30px;background:linear-gradient(110deg,#fff4f6,#fff8f9);margin-top:20px;min-height:184px}
.country-contact::before,.country-contact::after{content:"";position:absolute;background:#ffe8ed;z-index:-1;border-radius:60% 40% 55% 45%;transform:rotate(-30deg)}
.country-contact::before{width:240px;height:155px;left:20px;bottom:-20px}
.country-contact::after{width:190px;height:120px;right:-45px;bottom:-10px}
.country-contact__portrait{position:relative;height:100%;min-height:184px;align-self:stretch}
.country-contact__portrait img{position:absolute;height:250px;width:auto;max-width:none;top:0;left:50%;transform:translateX(-50%);object-fit:contain}
.country-contact__copy{max-width:610px;padding:22px 36px 22px 0}
.country-contact .country-eyebrow{font-size:10px;margin-bottom:5px!important}
.country-contact h2{font-size:27px;margin-bottom:6px}
.country-contact__copy>p:not(.country-eyebrow){font-size:13px;line-height:1.35;color:var(--country-text);margin-bottom:8px}




.country-photo-byline{position:absolute;left:12px;bottom:9px;z-index:3;background:#ffffffe6;color:var(--country-ink);font-size:8px;padding:3px 5px;border-radius:4px}
.country-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.country-exam-timeline{position:relative;max-width:760px;margin:40px auto 0;padding:0 0 0 58px;list-style:none}
.country-exam-timeline::before{content:"";position:absolute;left:18px;top:18px;bottom:40px;width:2px;background:#ffe0e7}
.country-exam-step{position:relative;padding-bottom:36px}
.country-exam-step:last-child{padding-bottom:0}
.country-exam-step__number{position:absolute;left:-58px;top:0;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ml-red);color:#fff;font-size:17px;font-weight:800;box-shadow:0 0 0 6px #fff}
.country-exam-step h3{font-size:21px;line-height:1.3;margin-bottom:10px}
.country-exam-step>p:not(.country-eyebrow),.country-exam-academy p,.country-exam-contacts p{font-size:14px;line-height:1.7;color:var(--country-text)}
.country-exam-step .country-eyebrow{font-size:10px;margin-bottom:7px!important}
.country-exam-step a,.country-faq .seconde-faq__answer a{color:var(--ml-red);text-decoration:underline;text-underline-offset:3px}
.country-exam-academy{background:#fff4f6;border:1px solid #ffe1e8;border-radius:14px;padding:17px 20px;margin:18px 0}
.country-exam-academy>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--country-text);margin-bottom:5px}
.country-exam-academy>strong{display:block;font-size:18px;line-height:1.4}
.country-exam-academy p{margin-top:9px}
.country-exam-step h4{font-size:15px;line-height:1.45;margin:22px 0 12px}
.country-exam-centres{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.country-exam-centre{display:flex;flex-direction:column;gap:7px;border:1px solid #e6e8ed;border-radius:13px;padding:17px;min-width:0}
.country-exam-centre__city{color:var(--ml-red);font-size:11px;font-weight:750;letter-spacing:.03em}
.country-exam-centre>strong{font-size:14px;line-height:1.4;font-weight:700}
.country-exam-centre__source{font-size:10px;line-height:1.7;margin-top:auto;padding-top:3px;color:var(--country-text)}
.country-exam-step .country-exam-caption{font-size:11px!important;margin-top:12px!important;line-height:1.6!important}
.country-exam-step--last .country-exam-step__number{background:#f0f1f5;color:var(--country-text)}
.country-exam-help{display:flex;align-items:center;gap:18px;max-width:880px;margin:35px auto 0;padding:22px 26px;border-radius:17px;background:var(--country-pink)}
.country-exam-help .country-icon{width:52px;height:52px;background:#fff}
.country-exam-help .ml-icon{width:29px;height:29px}
.country-exam-help p{font-size:14px;line-height:1.6;color:var(--country-text)}
.country-exam-help strong{display:block;color:var(--country-ink)}

.country-exam-contacts summary{cursor:pointer;font-weight:650;width:fit-content}

.country-exam-contacts{margin-top:18px;font-size:13px;color:var(--country-ink)}
.country-exam-contacts>p{font-size:12px;margin:12px 0}
.country-exam-contacts ul{display:grid;gap:14px;margin-top:14px!important}
.country-exam-contacts li{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid #edf0f5}
.country-exam-contacts li>span{font-size:12px;line-height:1.5}
.country-faq .seconde-faq__head h2{margin-bottom:16px}
.country-faq .seconde-faq__footer{margin-top:24px}
@media(min-width:1500px){.country-hero{padding-top:44px}.country-hero__grid{gap:54px}}
@media(max-width:1100px){
  .country-container{width:calc(100% - 72px)}
  .country-hero__grid{gap:32px;grid-template-columns:1.17fr 1fr}
  .country-page h1{font-size:44px}.country-hero__lead{font-size:15px}
  .country-checks{gap:12px;margin-top:24px!important}.country-checks li{font-size:9px;gap:6px}.country-checks svg{width:17px;height:17px;flex-basis:17px}
  .country-benefits{min-height:138px}.country-icon{width:62px;height:62px}.country-benefits strong{font-size:13px}
  .country-community{gap:50px;grid-template-columns:1.95fr 1fr;padding-top:36px}.country-page h2{font-size:31px}.country-community__copy>p:not(.country-eyebrow){font-size:13px}
  .country-stats{gap:18px;padding:19px 22px!important}.country-stats li{gap:18px}.country-stats li+li{padding-left:22px}.country-stats p strong{font-size:26px}.country-stats p span{font-size:11px}
  .country-section-heading h2{font-size:28px}.country-class{padding:17px;gap:17px}.country-class .country-icon{width:56px;height:56px}.country-class .ml-icon{width:30px;height:30px}.country-class a .ml-icon{width:15px;height:15px}.country-class h3{font-size:17px}.country-class p{font-size:12px}.country-class a{font-size:12px}
  .country-contact h2{font-size:24px}.country-contact{gap:26px;min-height:168px}.country-contact__portrait{min-height:168px}.country-contact__portrait img{height:230px}
}
@media(max-width:850px){
  .country-container{width:calc(100% - 48px)}.country-hero__grid{grid-template-columns:1fr 1fr;gap:24px}.country-page h1{font-size:36px}.country-page h1.country-title--long{font-size:32px}.country-hero__lead{font-size:14px}.country-breadcrumb{font-size:10px;margin-bottom:18px}.country-actions{gap:10px;margin-top:18px}.country-checks{gap:9px}.country-community{gap:30px;grid-template-columns:1.5fr 1fr}.country-page h2{font-size:28px}.country-community__badge{right:-6px;padding:12px;gap:10px}.country-stats{gap:16px;padding:20px!important}.country-stats li{gap:12px}.country-stats li+li{padding-left:16px}.country-stats .country-icon{width:48px;height:48px}.country-stats .ml-icon{width:29px;height:29px}.country-stats p strong{font-size:23px}.country-schedule{padding-inline:0}.country-classes__grid{gap:12px}.country-class{display:block;padding:16px}.country-class .country-icon{margin-bottom:9px}.country-class p br{display:none}.country-contact{grid-template-columns:.85fr 2fr;gap:12px}.country-contact__copy{padding-right:24px}.country-contact h2{font-size:23px}
}
@media(max-width:620px){
  .country-container{width:calc(100% - 36px)}.country-hero{padding:22px 0}.country-hero__grid{grid-template-columns:1fr;gap:25px}.country-hero__copy{max-width:550px}.country-breadcrumb{font-size:10px;margin-bottom:22px}.country-page h1{font-size:42px;max-width:470px}.country-page h1.country-title--long{font-size:35px}.country-hero__lead{font-size:15px}.country-actions{gap:9px}.country-checks{gap:12px 17px;margin-top:23px!important}.country-checks li{font-size:10px}
  .country-benefits{display:flex;flex-wrap:wrap;justify-content:center;min-height:0;padding:12px 8px!important;gap:18px 0}.country-benefits li{width:33.333%;padding:0 6px;gap:7px}.country-benefits li+li::before{display:none}.country-benefits li:nth-child(-n+2)::after,.country-benefits li:nth-child(4)::after{content:"";position:absolute;right:0;top:6px;bottom:6px;width:1px;background:#ffe5eb}.country-benefits strong{font-size:11px;line-height:1.35}.country-icon{width:52px;height:52px}.country-icon .ml-icon{width:29px;height:29px}
  .country-community{grid-template-columns:1fr;gap:22px;padding-top:35px}.country-eyebrow{font-size:10px}.country-page h2{font-size:29px}.country-community__copy>p:not(.country-eyebrow){font-size:14px}.country-community__visual{width:100%;max-width:430px;margin-inline:auto!important}.country-community__badge{right:0;bottom:-5px;padding:14px 18px}.country-community__badge strong{font-size:12px}
  .country-stats{grid-template-columns:1fr;margin-top:28px!important;padding:7px 20px!important;gap:0}.country-stats li{padding:15px 0;gap:20px}.country-stats li+li{border-left:0;border-top:1px solid #ffdce5;padding-left:0}.country-stats p strong{font-size:26px}.country-stats p span{font-size:13px}.country-stats .country-icon{width:56px;height:56px}
  .country-schedule{padding-top:34px}.country-section-heading h2{font-size:27px}.country-section-heading>p:not(.country-eyebrow){font-size:13px}.country-schedule__controls{gap:10px;margin-top:18px}.country-schedule__controls label{justify-content:center;flex-wrap:wrap;font-size:11px}.country-schedule__controls select{max-width:185px}.country-schedule__table{font-size:11px;min-width:315px}.country-schedule__table th,.country-schedule__table td{padding:10px 10px}.country-schedule__table small{font-size:9px;display:block}.country-schedule__note{font-size:10px}.country-schedule__detail{font-size:10px;margin-top:6px!important}
  .country-classes{padding-top:32px}.country-classes__grid{grid-template-columns:1fr;gap:12px}.country-class{display:flex;gap:20px;padding:18px;align-items:flex-start}.country-class .country-icon{width:62px;height:62px;margin-bottom:0}.country-class h3{font-size:20px}.country-class p{font-size:14px}.country-class a{font-size:14px;margin-top:9px}.country-class .country-class__alternative{font-size:11px}
  .country-contact{grid-template-columns:1fr;margin-top:24px;gap:0;border-radius:24px}.country-contact__portrait{height:140px;min-height:140px;order:2;overflow:hidden}.country-contact__portrait img{height:225px;top:0}.country-contact__copy{padding:25px 24px 15px;max-width:none}.country-contact h2{font-size:26px}.country-contact__copy>p:not(.country-eyebrow){font-size:14px;line-height:1.45;margin-bottom:12px}
}
@media(max-width:370px){.country-page h1{font-size:37px}.country-actions{flex-direction:column;align-items:stretch}.country-schedule__table{min-width:285px}.country-schedule__table th,.country-schedule__table td{padding:9px 7px}}
@media(prefers-reduced-motion:reduce){}
/* Same vertical rhythm as Seconde's .split-section (composants.css).
   CTAs use .mock-btn directly, including its shared dimensions and radius. */
.country-page .country-section{padding-block:56px;scroll-margin-top:100px}
.country-page .country-button{min-height:48px;max-width:100%;white-space:normal}
.country-page .country-contact{margin-top:0}
@media(max-width:620px){
  .country-exam-timeline{padding-left:44px;margin-top:32px}
  .country-exam-timeline::before{left:15px}
  .country-exam-step__number{width:32px;height:32px;left:-44px;font-size:15px}
  .country-exam-step h3{font-size:20px}
  .country-exam-centres{grid-template-columns:1fr}
  .country-exam-academy{padding:15px}
  .country-exam-academy>strong{font-size:17px}
  .country-exam-help{align-items:flex-start;gap:12px;padding:20px 16px}
  .country-exam-help .country-icon{width:38px;height:38px}
  .country-exam-help .ml-icon{width:23px;height:23px}
  .country-exam-help p{font-size:13px}
  .country-faq .seconde-faq__item summary{font-size:15px}
  .country-contact .mock-btn{width:100%}
}
