/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;700&family=Outfit:wght@600;700;800&display=swap");

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* Accessibility: Skip to main content link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  display: inline-block;
  background: var(--rouge-3);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  top: 0;
  left: 0;
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Accessibility: Improve focus visibility for all interactive elements */
:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Navbar and menu focus states */
.navbar-toggler:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

#menu .nav-link:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Button focus styles */
.btn:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

.btn_2:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Additional accessibility improvements */
/* Improve contrast for links with color */
.text-blue-underline:focus-visible,
.link-show-more:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Form inputs and textareas focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Dropdown menu keyboard support */
.dropdown-toggle:focus-visible::after {
  outline: 3px solid #0b5fff;
  outline-offset: 2px;
}

/* Swiper buttons focus */
.swiper-button-prev:focus-visible,
.swiper-button-next:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
}

/* Video player buttons focus */
.video-overlay-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

.item {
  width: 200px;
  height: 200px;
  margin: 50px auto;
  padding-top: 75px;
  background: #ccc;
  text-align: center;
  color: #FFF;
  font-size: 3em;
}

/* (Old local fonts removed / no longer used)
@font-face { ... DMSans ... }
@font-face { ... ZalandoSansExpanded-Medium ... }
*/

/* ---------- Design tokens ---------- */
:root{
  --ff-body:"IBM Plex Sans", sans-serif;
  --ff-display:"Outfit", sans-serif;
  --ls-0: 0px;

  --bg:#f6f9ff;
  --surface:#ffffff;
  --text:var(--noire-72);
  --muted:var(--noire-72);
  --line:rgba(11,27,51,.12);
  --shadow:0 18px 55px rgba(0,40,120,.10);
  --shadow2:0 12px 30px rgba(0,40,120,.08);
  --r:28px; --r2:20px;
  --max:1320px;
  --grad: linear-gradient(90deg, #7053CD 25%, #2A327B 100%);
  --vert-3:#059D79;
  --vert-4:#03695D;
  --blue0:#EFF1FF;
  --blue1:#ECE7FF;
  --blue3:#7053CD;
  --blue4:#2A327B;
  --rouge-3:#D71302;
  --rouge-hover:#af0f02;
  --noire-72:#111751B7;
  --noire-100:#111751;
  --bs-secondary-text-emphasis: var(--noire-72);
  --bs-heading-color: var(--noire-100);
  --bs-body-color:#111751B7;
  --glass-bg: rgba(255,255,255,.16);
  --glass-border: rgba(255,255,255,.35);
  --glass-text: rgba(26, 25, 25, 0.92);
  --glass-placeholder: rgba(255,255,255,.70);
  --glass-shadow: 0 14px 40px rgba(0,0,0,.18);
  --glass-glow: 0 0 0 6px rgba(0,118,191,.14);
  --grad-purple: var(--rouge-3);
  --cf-muted:#6b7280;
  --cf-border:rgba(17,24,39,.10);
  --cf-shadow: 0 18px 50px rgba(0,0,0,.28);
  --cf-grad: linear-gradient(25.66deg, rgba(17, 23, 81, 1.0) 0%, rgba(42, 50, 123, 1.0) 100%);
}

h3{ color: var(--rouge-3); }
.mosaic-content h3 { color: #fff; }

#menu .navbar-nav .nav-link.active,
.navbar-nav .nav-link.show{
  border-bottom: 2px solid var(--noire-100);
  padding: 8px 0 4px;
}

/* ---------- Typography system (Desktop default) ---------- */
body{
  background-color:#ffffff;
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 150%;
  letter-spacing: var(--ls-0);
  font-weight: 400;
  overflow-x: hidden;
}

p{
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0;
  font-weight: 400;
}

article div p{
  font-size: 18px;
  line-height: 150%;
}

b, strong{ font-weight:700; }
em, i{ font-style:italic; font-weight:400; }

a{
  font-family: var(--ff-body);
  font-weight:700;
  letter-spacing:0;
  text-decoration: underline;
}

/* Headings */
h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6{
  font-family: var(--ff-display);
  letter-spacing: 0;
}


/* Desktop H1–H6 spec */
h1,.h1{ margin:14px 0 12px; font-weight:600; font-size:52px; line-height:110%; }
h2,.h2{ font-weight:600; font-size:36px; line-height:110%; }
h3,.h3{ font-weight:600; font-size:30px; line-height:110%; }
h4,.h4{ font-weight:700; font-size:24px; line-height:110%; }
h5,.h5{ font-weight:800; font-size:20px; line-height:120%; }
h6,.h6{ font-weight:700; font-size:18px; line-height:120%; }

/* Menu */
#menu a{
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 150%;
  font-weight: 700;
  color: var(--noire-100);
  text-decoration: none;
}

/* Existing overrides updated to spec */
.hero .heading{
  font-family: var(--ff-display);
  font-size: 52px;
  line-height: 110%;
  font-weight: 600;
  letter-spacing: 0;
}

/* Was Roboto/DMSans: now IBM Plex Sans */
.hero p{
  font-family: var(--ff-body);
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0;
  font-weight: 400;
}

/* Buttons -> Outfit 700 */
.btn{
  padding: calc(1rem - 4px) 1.5rem;
  border-radius: 1.563rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.375rem;
  min-height: 3.375rem;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover{
  background-color: var(--rouge-hover);
}
.btn_2{
  padding: 15px 20px;
  border-radius: 4px;
  border-color: none;
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: .1rem;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Your existing styles (kept) ---------- */
.text-green { color: rgb(38, 129, 76) !important; }
.bg-green-2{ background: rgb(00 180 100) !important; }
.bg-green-3 { background: rgb(219 237 229) !important; }
.border-green{ border: 2px solid rgb(00 180 100); }

.hero .container { height: 100%; align-content: center; }

.banner {
  object-fit: cover;
  height: 480px;
  width: 100%;
  object-position: top;
}

.fit-cover{ object-fit: cover; }

.description-section{
  font-family: var(--ff-body);
  font-size: 20px;
  line-height: 150%;
}

.card-content{
  padding: 91.5px 68px;
  background-color: #f7f8fa;
}
@media (max-width: 700px){
  .card-content{ padding: 60px 32px; }
}
.card-content p{
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 150%;
}

.text-blue-underline{
  color: #006ce1;
  text-decoration: underline;
}

.link-show-more{
  font-family: var(--ff-body);
  font-size: 20px;
  line-height: 28px;
  color: #006ce1;
  text-decoration: none !important;
  font-weight: 700;
}

.w-900{ max-width: 900px; }

/***********************************************/
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: #f6f6f6;
  overflow: hidden;
  height: 480px;
}
.hero .blob {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 529px;
  opacity: 0.8;
}
.hero .img-wrap img {
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.1);
}
.hero.inner-page, .hero.inner-page > .container > .row {
  height: 50vh;
  min-height: 450px;
}
@media (max-width: 991.98px) {
  .hero.inner-page, .hero.inner-page > .container > .row {
    height: auto;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
.hero.overlay { position: relative; margin-top: -62px; }
.hero.overlay:before {
  display: none;
  background-color: rgba(0, 0, 0, 0.4);
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  z-index: 1;
}
.hero > .container { position: relative; z-index: 2; }

.text-blue{ color: #60baff; }

.logo-header{ width: auto; }

@media (max-width:700px) {
  .hero .blob { opacity: 0.3 !important; }
  .logo-header{ width: auto; height: 36px; }
}
@media screen and (max-width: 1279px) {
  .logo-header{ width: auto; height: 34px; }
}

/******************   bouton du header   *****************************/
.btn.btn-outline-white-reverse {
  background-color: #fff;
  border-color: #fff;
  color: #03253c;
}

.btn-primary,
.btn-outline-primary:hover{
  background: var(--grad-purple);
  border: 0;
}
.btn-outline-primary{
  border-color: #623e66;
  color: #8a5c8e;
}
.btn.btn-outline-white-reverse:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn.btn-video {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn.btn-video:hover {
  background-color: #fff;
  border-color: #fff;
  color: #03253c;
}

.form-select-lg{ font-size: 1.1rem; }

/* Shorts video slide */
.slide{ position:relative; }
.short-video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  background:#000;
}

/* Click-anywhere overlay */
.video-overlay-btn{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  background:transparent;
  border:0;
  padding:0;
  transition:opacity .15s ease;
  z-index:3;
}
.video-overlay-btn .play-icon{
  width:72px;height:72px;border-radius:999px;
  background:rgba(0,0,0,.55);
  display:grid;place-items:center;
  backdrop-filter:blur(2px);
}
.video-overlay-btn .play-icon::before{
  content:"";
  display:block;
  margin-left:4px;
  width:0;height:0;
  border-left:18px solid #fff;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
}
.is-playing .video-overlay-btn{ pointer-events:none; opacity:0; }

/* Bottom-right controls (volume + fullscreen) */
.video-controls{
  position:absolute;
  right:10px;
  bottom:10px;
  display:flex;
  gap:8px;
  z-index:4;
}
.vc-btn{
  width:40px;height:40px;
  border:0;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter:blur(2px);
}
.vc-btn svg{ width:20px; height:20px; fill:currentColor; }
.vc-btn:focus{ outline:2px solid rgba(255,255,255,.6); outline-offset:2px; }

/******************   axe asus   *****************************/
.axe-asus {
  font-size: 24px;
  text-align: center;
  font-family: var(--ff-display);
  padding: 15px 60px;
  border-radius: 4px;
  border-color: none;
  font-weight: 600;
}
@media (max-width: 700px){
  .axe-asus { font-size: 20px; }
}

.nav-tabs {
  border-bottom: 1px solid #ecf3f2;
  margin-bottom: 40px;
  justify-content: center;
}
.nav-tabs .nav-link {
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: var(--p-color);
  font-family: var(--title-font-family);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-medium);
  padding: 15px 25px;
  transition: all 0.3s;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}
.nav-tabs .nav-link { font-size: var(--copyright-font-size); padding: 10px; }

/******************   bouton axe asus   *****************************/
.btn_2.btn-brochure {
  background-color: #006799;
  border-color: #006799;
  color: #fff;
}
.btn_2.btn-brochure:hover {
  background: #008FD3;
  border-color: #008FD3;
  color: #fff;
}

/******************  inline KSP   *****************************/
.sec-features, .barre-EnSavoirPlus {
  background-color: #03253c;
  background: linear-gradient(140deg, #03253c 0%, #006799 100%);
  overflow: hidden;
}
.section { padding-top: 3rem; padding-bottom: 3rem; }
.sec-features .feature [class^="bi-"] {
  flex: 0 0 60px;
  font-size: 40px;
  position: relative;
  margin-right: 10px;
}
.icon-axe {
  flex: 0 0 60px;
  position: relative;
  margin-right: 30px;
}

/******************  services *****************************/
.sec-services { background: #f5f5f5; }
.service {
  padding: 40px;
  margin-bottom: 48px;
  border-radius: 12px;
  background: #fff;
}
.service p { font-size: 18px; line-height: 150%; }

/******************  offers *****************************/
.card-offers {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
}
.ksp { text-align: left; line-height: 20px; }
.border-l-1-grey { border-left: 1px solid var(--muted); }
footer{
  background-color: #FFFFFF28;
  border-top: 1px solid #ccc;
}
footer a {
  color: var(--muted);
  margin: 0 12px;
}
footer p {
  font-size: 13px;
  color: var(--muted);
}

#btn-back-to-top {
  position: fixed;
  bottom: 14px;
  right: 3px;
  display: none;
  transition: opacity 0.8s ease-in-out;
}

#cookiebanner .modal-dialog{ max-width: 712px; }
#cookiebanner .modal-body{ padding-top: 0; padding-bottom: 0; }
#cookiebanner button{ font-size: 1.063rem; border-radius: 4px; }
#cookiebanner .modal-body a{ color: #000; }

@media (max-width:700px) {
  .text-footer { display: block; margin-bottom: 8px; }
  #solutions ul{
    line-height: 2;
    overflow: auto;
    white-space: nowrap;
    display: inline-block;
  }
  #solutions li{ display: inline-block; }
  #menu ul{ margin-top: 1.6rem; }
}

/* Fade-in animation for dropdown */
@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}
.dropdown-menu.show.fade-in {
  animation: fadeInDropdown 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}
.dropdown-menu .dropdown-item:hover {
  background-color: #343a40;
  color: #fff;
}

#dropdown-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#dropdown-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.accordion-button{ font-size: 20px; }

#shorts-swiper .slide {
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}
#shorts-swiper .slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
#shorts-swiper .swiper-button-prev,
#shorts-swiper .swiper-button-next {
  appearance: none;
  border: 0;
  padding: 0;
  width: 50px;
  height: 50px;
  margin-top: -21px;
  border-radius: 50%;
  background: #fffffff5;
  color: var(--noire-100);
  box-shadow: 0 4px 14px rgba(23, 35, 60, 0.22);
  z-index: 2;
}
#shorts-swiper .swiper-button-prev::after,
#shorts-swiper .swiper-button-next::after { content: none; }
#shorts-swiper .swiper-button-prev:focus-visible,
#shorts-swiper .swiper-button-next:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
}
#shorts-swiper .swiper-button-prev { margin-left: 8px; }
#shorts-swiper .swiper-button-next { margin-right: 8px; }
#shorts-swiper .swiper-button-prev svg,
#shorts-swiper .swiper-button-next svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

#shorts-swiper.swiper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
}
#shorts-swiper > .swiper-pagination {
  position: static;
  transform: none;
  width: 100%;
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* HERO carousel */
.hero{
  position: relative;
  height: min(777px, 100svh);
  overflow:hidden;
  padding:68px 0 34px;
}
#hero-swiper{ width:100%; height:100%; margin:0; padding:0; box-sizing:border-box; }
.hero-slide-img{
  width:100%;
  height:777px;
  object-fit: cover;
  object-position: center;
  display:block;
}
@media screen and (max-width: 731px) {
  .hero-slide-img, .hero { height: 548px; }
}
@media screen and (max-width: 1279px) {
  .hero-slide-img, .hero { height: 698px; }
}
#hero-swiper .swiper-slide{ height:100%; display:block; }

.bg-gradient{
  background:
    radial-gradient(900px 560px at 12% 10%, rgba(0,118,191,.14), transparent 55%),
    radial-gradient(980px 640px at 88% 16%, rgba(0,58,135,.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #fff 45%, #f3f7ff 100%);
}

.grad-title{
  color:var(--noire-100); 
  max-width: 900px;
}
.muted{color:var(--muted);}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:999px;
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  box-shadow:var(--shadow2);
  font-weight:800;
  color:var(--blue4);
  font-size:15px;
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background:var(--grad);
  box-shadow:0 0 0 6px rgba(0,118,191,.14);
}

header{
  position:sticky; top:0; z-index:50;
  background:rgb(255 255 255 / 87%);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}

.mark{
  width:40px; height:40px; border-radius:14px;
  background:var(--grad);
  box-shadow:0 14px 28px rgba(0,58,135,.18);
  position:relative; overflow:hidden;
}
.mark:after{
  content:""; position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), transparent 45%);
  transform: rotate(12deg);
}

section{padding:70px 0;}
.stack{display:grid; gap:22px;}

.desc{
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 150%;
}
.lead{
  padding-bottom: 44px;
  font-size:20px;
  line-height:150%;
  color:var(--muted);
  max-width:78ch;
  font-weight: 400;
}
.section-head{display:grid; gap:12px; margin-bottom:18px;}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.pad{padding:26px;}

.media{
  border-radius:var(--r);
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow);
}
.media img{display:block; width:100%; height:auto;}
.caption{padding:18px 26px; color:var(--muted); font-size:16px; line-height:150%;}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:18px;
}
.span-6{grid-column:span 6;}
.span-12{grid-column:span 12;}
@media (max-width: 980px){ .span-6{grid-column:span 12;} }

.hl{
  display:grid; grid-template-columns:1fr 1fr; gap:14px;
  margin-top:18px;
}
@media (max-width: 980px){ .hl{grid-template-columns:1fr;} }

.metric{
  border:1px solid var(--line);
  border-radius:var(--r2);
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow2);
  padding:18px 18px;
}
.metric .v{font-weight:980; font-size:30px; letter-spacing:-.5px;}
.metric .v.grad-title{display:inline-block;}
.metric .t{margin-top:6px; color:var(--muted); font-size:16px; line-height:150%; font-weight:750;}

.tile{
  border:1px solid var(--line);
  border-radius:var(--r2);
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow2);
  padding:22px;
  display:flex; gap:14px; align-items:flex-start;
  min-height:132px;
}
.icon{
  width:52px; height:52px; border-radius:18px;
  background:var(--grad);
  color:#fff;
  display:grid; place-items:center;
  box-shadow:0 14px 26px rgba(0,58,135,.16);
  flex:0 0 auto;
}
.tile h3{margin:0 0 8px; font-size:20px; letter-spacing:-.2px;}
.tile p{margin:0; color:var(--muted); font-size:16px; line-height:150%;}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important; transition:none !important;}
}

/* Responsive 16:9 video wrapper */
.video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.badge{ font-size: 0.9em; font-weight: 400; }

b, strong{ font-weight:700; }

/* Bigger, clearer masonry */
.masonry{ column-count: 1; column-gap: 1.5rem; }
@media (min-width: 768px){ .masonry{ column-count: 1; } }
@media (min-width: 1200px){ .masonry{ column-count: 2; } }

.masonry-item{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 1.5rem;
  display: inline-block;
  width: 100%;
}

/* IMPORTANT: height must be set for absolute-positioned image */
.mosaic-tile{
  position: relative;
  display: block;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0,40,120,.10);
  background: #0b1020;
  min-height: 320px;
  isolation: isolate;
  text-decoration: none;
}

.mosaic-tile.tall{ min-height: 680px; }
.mosaic-tile.medium{ min-height: 520px; }
.mosaic-tile.small{ min-height: 380px; }

@media (max-width: 575.98px){
  .mosaic-tile.tall{ min-height: 620px; }
  .mosaic-tile.medium{ min-height: 520px; }
  .mosaic-tile.small{ min-height: 420px; }
}

.mosaic-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  will-change: transform;
}

.mosaic-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(0.0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.54) 59%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.mosaic-content{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 22px 22px 18px;
  color:#fff;
  z-index: 2;
}

.mosaic-content h3{ margin:0 0 8px; line-height:1.18; }
.mosaic-content p{
  margin:0 0 14px;
  opacity:.92;
  line-height:1.6;
  font-size: 16px;
  max-width: 60ch;
}

.mosaic-link{
  display:inline-flex;
  gap:.7rem;
  align-items:center;
  color:#fff;
  font-weight: 900;
  font-size: 17px;
}
.mosaic-link .arrow{
  width: 40px; height: 40px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.mosaic-tile:hover .mosaic-bg{ transform: scale(1.06); transition: transform .35s ease; }
.mosaic-tile:hover .mosaic-link{ text-decoration: underline; }

/* HERO BACKGROUND (pastel gradient + soft glow) */
.bg-gradient-hero{
  background-image:url('../img/bg-gradient-sand.jpg');
  background-size: cover;
}

/* GLASS PANEL */
.bg-gradient-hero .glass{
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 34px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Search wrapper + icon */
.faq-search-wrap{ position: relative; max-width: 860px; margin-inline:auto; }
.faq-search-wrap::before{
  content:"";
  position:absolute;
  left:18px; top:50%;
  width:18px; height:18px;
  transform:translateY(-50%);
  opacity:.9;
  background: no-repeat center/contain url("../img/search.svg");
  pointer-events:none;
}

#faqSearch.form-control{
  height:56px;
  border-radius:9999px;
  padding-left:52px;
  padding-right:18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--glass-shadow);
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
#faqSearch.form-control:focus{
  border-color: var(--noire-75);
  background: var(--noire-25);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  outline:none;
}

/* Category cards */
.faq-cat-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer;
  padding: 18px 18px;
  height: 100%;
}
.faq-cat-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.14);
}
.faq-cat-title{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--blue4);
  font-family: var(--ff-display);
}
.faq-cat-meta{
  font-size: 16px;
  margin: 0;
}

/* FAQ panel */
.faq-panel{
  margin-top: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.faq-panel h2,
.faq-panel h3{
  font-family: var(--ff-display);
  transform: scaleX(1);
}
.faq-panel-head{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.faq-panel-title{
  margin:0;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--ff-display);
}
.faq-close-btn{
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--blue4);
}
.faq-close-btn:hover{ background: rgba(255,255,255,.16); }

.faq-panel .accordion-item{
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: transparent;
}
.faq-panel .accordion-button{
  background: transparent;
  font-size: 20px;
  font-family: var(--ff-display);
  font-weight: 700;
}
.faq-panel .accordion-button::after{ filter: invert(1); opacity: .8; }
.faq-panel .accordion-body{
  padding: 50px;
  font-size: 18px;
  background: #f1f5fa;
  line-height: 150%;
  font-family: var(--ff-body);
}

mark.faq-highlight{
  color: inherit;
  padding: .05em .35em;
  border-radius: .6em;
}

@media (prefers-reduced-transparency: reduce){
  #faqSearch.form-control,
  .faq-cat-card,
  .faq-panel{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background: rgba(255,255,255,.92);
    color: #0b1220;
  }
}

main{ min-height: calc(100vh - 130.5px); }

/* Chat widget (kept) */
.cf-launcher{
  position:fixed; right:18px; bottom:18px; width:61px; height:61px;
  border:0; border-radius:18px; cursor:pointer;
  background: var(--cf-grad);
  box-shadow: 0 18px 45px rgba(109,94,252,.35);
  color:#fff; display:grid; place-items:center;
  z-index:2147483000;
}
.cf-launcher__icon{
  font: 900 18px/1 "Outfit", sans-serif;;
  width:37px; height:37px; border-radius:999px;
  display:grid; place-items:center;
  background: rgb(255, 255, 255);
  border:1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(10px);
}
.cf-avatar img,
.cf-fullscreen img,
.cf-close img,
.cf-reset img,
.cf-send img{
  width: 18px;
  height: 18px;
  display: block;
}
.cf-launcher__icon img {
  width: 21px;
  height: 21px;
  display: block;
}
.cf-launcher__dot{
  position:absolute; top:10px; right:10px;
  width:10px; height:10px; border-radius:999px;
  background:#22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.cf-widget{
  position:fixed; right:18px; bottom:88px;
  width:min(426px, calc(100vw - 36px));
  height:min(620px, calc(100vh - 130px));
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  box-shadow: var(--cf-shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  z-index:2147483001;
  opacity:0; transform: translateY(12px) scale(.98);
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.cf-widget.is-open{ opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }

.cf-header{
  flex:0 0 auto;
  height:92px; padding:14px 14px 12px;
  background: var(--cf-grad); color:#fff;
  display:flex; align-items:flex-start; justify-content:space-between;
}
.cf-controls{ display:flex; gap:12px; }
.cf-brand{ display:flex; gap:12px; align-items:center; }
.cf-avatar{
  width:44px; height:44px; border-radius:999px;
  background: rgb(255, 255, 255);
  border:1px solid rgba(255,255,255,.35);
  display:grid; place-items:center;
  font: 900 18px/1 "Outfit", sans-serif;;
  backdrop-filter: blur(10px);
}
.cf-title{ 
  font: 700 20px/1.1 "Outfit", sans-serif;; 
}
.cf-subtitle{ margin-top:6px; font: 600 14px/1.2 "Outfit", sans-serif;; opacity:.92; max-width:250px;}
.cf-close,
.cf-fullscreen,
.cf-read{
  border:0; background: rgba(255,255,255,.18); color:#fff;
  width:34px; height:34px; border-radius:12px; cursor:pointer;
  display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.25);
}
#cf-read .cf-read-on { display:none; }
#cf-read.is-on .cf-read-on { display:inline; }
#cf-read.is-on .cf-read-off { display:none; }

.cf-body{
  flex:1 1 auto;
  min-height:0;
  background:#f7f7fb;
  font-family: var(--ff-body);
}
.cf-msgs{
  height:100%;
  overflow-y:auto;
  overflow-x: hidden;
  padding:14px;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling: touch;
}

.cf-row{ display:flex; margin:10px 0; gap:10px; align-items:flex-end; }
.cf-row.user{ justify-content:flex-end; }
.cf-row.bot{ justify-content:flex-start; }
.cf-botavatar{
  width:28px; height:28px; border-radius:999px;
  background:#fff; border:1px solid rgba(0,0,0,.06);
  display:grid; place-items:center;
  font:900 12px/1 "Outfit", sans-serif;;
  color:#111827;
  flex:0 0 auto;
}
.cf-bubble{
  font-size: 16px;
  max-width: 100%;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--cf-border);
  background:#fff;
  color:#111827;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  white-space:pre-line;
}
.cf-bubble .cf-substep{
  display:inline-block;
  margin-top:12px;   /* space between steps */
  margin-left:22px;  /* indent left */
}
.cf-bubble .cf-substep:first-of-type{
  margin-top:16px;   /* extra gap after description */
}

.cf-row.user .cf-bubble{
  background: var(--blue4);
  border-color: var(--blue4);
  color:#fff;
  border-bottom-right-radius:6px;
}
.cf-row.bot .cf-bubble{ border-bottom-left-radius:6px; }
.cf-time{
  font: 600 11px/1.1 "Outfit", sans-serif;;
  color: rgba(107,114,128,.9);
  margin-top:6px;
}
.cf-row.user .cf-time{ text-align:right; color: rgba(255,255,255,.85); }

.cf-typing{
  flex:0 0 auto;
  display:none;
  padding:10px 14px;
  background:#f7f7fb;
  border-top:1px solid rgba(0,0,0,.06);
}
.cf-typing.is-on{ display:flex; gap:6px; align-items:center; }
.cf-dot{
  width:7px; height:7px; border-radius:999px;
  background: rgba(17,24,39,.35);
  animation: cf-bounce .9s infinite ease-in-out;
}
.cf-dot:nth-child(2){ animation-delay: .12s; }
.cf-dot:nth-child(3){ animation-delay: .24s; }
@keyframes cf-bounce{
  0%, 80%, 100%{ transform: translateY(0); opacity:.5 }
  40%{ transform: translateY(-4px); opacity:1 }
}

.cf-choices{
  flex:0 0 auto;
  padding:12px;
  display:flex; flex-wrap:wrap; gap:10px;
  background:#fff;
  border-top:1px solid rgba(0,0,0,.06);
  max-height: 190px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}
.cf-choice{
  flex: 1 1 160px;
  text-align:left;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background: #fbfbff;
  cursor:pointer;
}
.cf-choice:hover{ background: #eaeaf3; }
.cf-choice strong{
  display:block;
  font-weight:800;
  font-size: 16px;
  color:#111827;
}
.cf-choice span{
  display:block;
  margin-top:4px;
  font-size: 14px;
  font-weight:600;
  color:var(--cf-muted);
}

.cf-footer{
  flex:0 0 auto;
  height:56px;
  border-top:1px solid rgba(0,0,0,.06);
  background:#fff;
  display:flex; align-items:center; gap:10px;
  padding:10px 10px;
}
.cf-ico{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:#fff;
  cursor:pointer;
}
.cf-input{
  flex:1; height:36px; border:0; outline:none;
  font: 600 14px/1 "Outfit", sans-serif;;
  color:#111827;
}
.cf-send{
  width:38px; height:38px; border:0; border-radius:999px;
  cursor:pointer;
  background: var(--grad-purple);
  color:#fff;
  box-shadow: 0 12px 26px rgba(124,92,255,.25);
  display:grid; place-items:center;
}

@media (prefers-reduced-motion: reduce){
  .cf-dot { animation:none; }
  .cf-widget { transition:none; }
}

.cf-reset{
  width:38px; height:38px;
  border:1px solid var(--blue4);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  color:#111827;
  display:grid; place-items:center;
}
.cf-reset#cf-reset{
  width:auto;
  min-width:118px;
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font:500 16px/1 "Outfit", sans-serif;;
}
.cf-reset#cf-reset img{width:18px;height:18px;}

.cf-catbox{background:#fff;border:1px solid var(--blue4);border-radius:14px;padding:10px 10px;max-width:260px}
.cf-catbox-title{font-weight:700;font-size:13px;margin-bottom:8px;color: var(--noire-100);}
.cf-catbox-list{display:flex;flex-direction:column;gap:8px}
.cf-catitem{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:10px;border:1px solid var(--blue4);border-radius:12px;cursor:pointer;background:none}
.cf-catitem:hover{background:#f3f4f6}
.cf-caticon{width:20px}
.cf-cattxt{font-weight:600;color: var(--noire-100); font-size:16px; line-height:1.3}
.cf-bubble a{color:var(--muted);text-decoration:underline}

/* Fullscreen mode for chat */
.cf-widget.is-fullscreen{
  left: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
}
.is-fullscreen .cf-catbox{ max-width: 999px !important; }
.is-fullscreen .cf-footer{ padding: 32px 16px 48px; }
body.cf-chat-lock{ overflow: hidden; }

.section-intro .title-description-block{
  max-width: 1030px;
  margin: 0 auto;
}

.bloc-questions-espace-enseignants .metric{ padding: 36px; }
.bloc-questions-espace-enseignants .v{
  font-size: 21px;
  margin-bottom: 16px;
}
.bloc-questions-espace-enseignants .row .row{ min-height: 350px; }
.bloc-questions-espace-enseignants li{ margin-bottom: 6px; }

.rounded-circle{
  background: var(--blue4) !important;
  box-shadow: 0 0 0 6px var(--blue0) !important;
}

.tag {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  line-height: 1.063rem;
  padding: .6rem 0.825rem;
  gap: .6rem;
  color: var(--noire-100);
}
/* ---------- Mobile typography ---------- */
@media (max-width: 700px){
  /* Mobile heading spec */
  h1,.h1,.hero .heading{ font-weight:700; font-size:40px; line-height:110%; }
  h2,.h2{ font-weight:700; font-size:32px; line-height:110%; }
  h3,.h3{ font-weight:700; font-size:28px; line-height:110%; }
  h4,.h4{ font-weight:700; font-size:24px; line-height:110%; }
  h5,.h5{ font-weight:700; font-size:20px; line-height:120%; }
  h6,.h6{ font-weight:800; font-size:18px; line-height:110%; }

  /* Mobile body spec */
  body, p{ font-size:16px; line-height:150%; }
  #menu a { font-size: 16px; padding: 16px 0; }
  .hero p { font-size: 18px; }

  /* Mobile buttons */
  .btn{ font-size:16px; }
  .btn_2{ font-size:14px; }

  .description-section{ font-size: 18px; line-height: 150%; }
}

/* container of the whole timeline */
section.sav-step{ padding: 0; }

.sav-content{
  padding: 0 0 80px;
}

.sav-timeline{
  --icon: 52px;
  --line-w: 3px;                 /* must match the SVG width */
  --line-img: url("/img/sav-line.svg");
}

/* step layout */
.sav-step{
  display:grid;
  grid-template-columns: var(--icon) 1fr;
  gap: 36px;
  align-items:stretch;
}

/* left rail becomes the “line area” */
.sav-rail{
  position: relative;
  display:flex;
  flex-direction: column;
  align-items:center;
  height: 100%;
}

/* icon above the line */
.sav-icon{
  width: var(--icon);
  height: var(--icon);
  border-radius: 999px;
  border: 1px solid var(--noire-72);
  background: #fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  position: relative;
  z-index: 2;
}

.sav-icon img{
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* the connector line (image) */
.sav-line{
  width: var(--line-w);
  flex: 1;                       /* fills the remaining height of the step */
  min-height: 0;              /* avoids collapsing on very small steps */
  background-image: var(--line-img);
  background-repeat: repeat-y;
  background-size: var(--line-w) auto;
  background-position: center top;
  opacity: 1;
}

/* Step 1: no line ABOVE icon, only below (so keep .sav-line visible) */
.sav-step:first-child .sav-rail{
  padding-top: 0;
}

/* Step 5: remove line BELOW the last icon */
.sav-step:last-child .sav-line{
  display:none;
}

/* Optional: ensure the line starts right under the icon (no gap) */
.sav-rail{ gap: 0; }


/* Mobile */
@media (max-width: 720px){
  .sav-timeline{ --icon: 46px; }
  .sav-step{ grid-template-columns: var(--icon) 1fr; }
}

/*  Videos TUTOS Peertube */
.videos-by-theme-content{
  max-width: 1100px;
  margin: 0 auto;
}
.theme-card__inner,
.video-card__inner {
  padding: 32px;
  border-radius: 24px;
}

.theme-card__inner--green {
  background: var(--vert-4);
}
.video-card__inner--blue {
  background: var(--blue4);
}
.theme-card__badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.theme-card__badge-pill {
  color: var(--vert-4);
  font-size: 16px;
  font-weight: 400;
  font-family: var(--ff-display);
  display: inline-flex;
  margin-bottom: 40px;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
}
.video-card__badge-pill {
  color: var(--blue4);
  font-size: 16px;
  font-weight: 400;
  font-family: var(--ff-display);
  display: inline-flex;
  margin-bottom: 40px;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
}
.theme-card__content {
  margin-bottom: 50px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.theme-card__title {
  font-size: 1.875rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
.theme-card__footer{
  display: flex;
  justify-content: center;
}
.theme-card__footer-pill{
  background: #fff;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 18px;
}
.theme-card__footer-img{
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.video-row__layout{
  display:grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items:center;
  text-decoration:none;
  color: inherit;
}
.video-row__thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  height:auto;
  object-fit:cover;
  border-radius: 50px;
}
.video-card div {
  border-radius: 50px;
}
@media (max-width: 720px){
  .video-row__layout{ grid-template-columns: 1fr; }
  .video-row__thumb{ height: 180px; }
  .theme-card__title {
    font-size: 1.5rem;
  }
}

