:root {
  --brand: #3885AF;
  --brand-600: #3885AF;
  --ink: #000000;
  --muted: #64748B;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .06);
  --bp-lg: 1200px;
  --bp-md: 980px;
  --bp-sm: 720px;
  --bp-xs: 480px;
  --space: clamp(16px, 2vw, 28px);
  --vh: 1vh;
  --header-h: 0px;
}

/* ===========================
   MEDELEC – COOKIE CONSENT
=========================== */




/* ===============================
   FULL PAGE SECTIONS SYSTEM
   =============================== */

.section-full {
  min-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
}

/* =====================================================
   HERO — OPTION B (LINES SIGNATURE, REFINED)
===================================================== */

/* Section Hero Container */
.section-full {
  color: white;
}

/* Layout asymétrique */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) clamp(16px, 4%, 60px) clamp(60px, 10%, 120px);

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-copy {
  max-width: clamp(280px, 90%, 520px);
}

/* ===== LIGNES STRUCTURELLES ===== */
.hero-lines-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image:
    linear-gradient(to right,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px),
    linear-gradient(to bottom,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px);

  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 70% 50%, #000 0%, transparent 70%);
}

/* Ligne jaune signature (discrète) */
.hero-lines-layer::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 0;
  bottom: 0;
  width: 2px;
  opacity: 0.7;
  filter: blur(0.2px);

  background: linear-gradient(to bottom,
      transparent,
      #facc15,
      transparent);

  opacity: 0.8;
}

/* Watermark logo */
.hero-bg-logo {
  position: absolute;
  inset: 0;
  background: url("../img/Logomedelec.png") no-repeat center;
  background-size: min(55vw, 460px);
  opacity: 0.06;
  filter: blur(0.5px);
  z-index: 0;
  pointer-events: none;
}

/* Typography */
.hero-title {
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 34px;
}

.hero-title span {
  display: block;
  margin-top: 18px;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.65em;
}

/* Subtitle */
.hero-subtitle {
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #d1d5db;
  max-width: 520px;
  position: relative;

}

.hero-subtitle::before {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: #facc15;
  margin-bottom: 14px;
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: clamp(60px, 8%, 100px) clamp(16px, 4%, 40px) clamp(60px, 8%, 100px);
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
    max-width: clamp(250px, 95%, 520px);
  }

  .hero-lines-layer {
    opacity: 0.35;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 3.2rem);
    margin-bottom: clamp(16px, 3%, 24px);
  }
}


@media (min-width: 1200px) {
  .hero-lines-layer {
    background-size: 64px 96px;
  }
}

/* ===== HERO ENTRANCE ANIMATIONS ===== */

.hero-animate-title {
  opacity: 0;
  animation: heroTitleSlide 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
  animation-play-state: paused;
}

.hero-animate-subtitle {
  opacity: 0;
  animation: heroSubtitleFade 1s ease-out forwards;
  animation-delay: 0.8s;
  animation-play-state: paused;
}

/* Start animations when loader completes */
body.loader-complete .hero-animate-title,
body.loader-complete .hero-animate-subtitle {
  animation-play-state: running;
}

@keyframes heroTitleSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =====================================================
   HERO — BLUE MODERN VERSION (NO VIDEO)
===================================================== */

.hero-video-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 927px;
  overflow: hidden;

  /* Background bleu premium */
  background: radial-gradient(circle at 20% 20%,
      #0B5E92 0%,
      #064577 45%,
      #032542 75%,
      #010d1a 100%);

  display: flex;
  align-items: center;
  justify-content: center;
}


/* Contenu */
.hero-content {
  position: relative;
  padding-top: 120px;
  /* ← éloigne du header */

  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 80px 24px;
}





.hero-video-section,
.cta-before-footer {
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Contenu Hero */
.medelec-hero-content {
  position: absolute;
  text-align: center;
  color: white;
  z-index: 10;
}

.medelec-logo {
  width: 160px;
  margin-bottom: 20px;
  animation: fadeIn 1.8s ease forwards 1s;
}

.medelec-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 1.8s ease forwards 1.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media(max-width: 700px) {
  .medelec-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .medelec-logo {
    width: clamp(80px, 25%, 120px);
  }
}


/* ===== HERO GRID DRIFT ===== */
@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 80px 120px, 120px 80px;
  }
}

.hero-lines-layer {
  animation: gridDrift 90s linear infinite;
}

/* ===== HERO BACKGROUND BREATH ===== */
@keyframes heroBreath {
  0% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.04);
  }

  100% {
    filter: brightness(1);
  }
}

.hero-video-section {
  animation: heroBreath 28s ease-in-out infinite;
}


/* ===== HERO SIGNATURE LINE FLOW ===== */
@keyframes lineFlow {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.3;
  }
}

.hero-lines-layer::after {
  animation: lineFlow 6s ease-in-out infinite;
}


@media (prefers-reduced-motion: reduce) {

  .hero-lines-layer,
  .hero-video-section {
    animation: none !important;
  }
}





/* Button styles */
.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
}


/* Fade-in (staggered) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.reveal.d0 {
  transition-delay: .05s;
}

.reveal.d1 {
  transition-delay: .18s;
}

.reveal.d2 {
  transition-delay: .32s;
}


.img-wrapper {
  width: 500px;
  height: 500px;
  background: #e5e7eb url("../img/placeholder.svg") center/40px no-repeat;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Transparent header over black */
.header--transparent {
  background: transparent;
  border-bottom: none;
}


/* Consolidated hero styles */






/* ===== ABOUT — Professional, organized ===== */

/* Section container */
.about-block {
  background: #fff;
}

.about-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 7%, 96px) clamp(16px, 4%, 60px);
}


/* Grid: left fixed column + right fluid column */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  /* ⬅️ COLONNE DÉDIÉE À LA LIGNE */
  align-items: center;
  gap: clamp(32px, 5%, 48px);
}

.about-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      #0B5E92,
      transparent);
}

/* === LEFT COLUMN: quote with background image === */
.about-quote {
  position: relative;
  align-self: stretch;
  padding: clamp(16px, 1.8vw, 22px);
  border-radius: 12px;
  overflow: hidden;
  /* clip image to radius */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* center vertically */
  align-items: center;
  /* center horizontally */
  text-align: center;
  gap: 12px;
  border-right: 0;
}


/* Background image (via <img src=…>) */
.about-quote .quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: none;
}


/* Soft overlay for readability */
.about-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .35);
}


/* keep text above the image/overlay */
.about-quote>*:not(.quote-bg) {
  position: relative;
  z-index: 1;
}


/* Quote typography */
.quote-text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.quote-author {
  font-style: normal;
  color: #e8eef5;
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.about-quote {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.about-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, .55),
      rgba(0, 0, 0, .25));
}



/* === RIGHT COLUMN === */
.about-main {
  padding-left: clamp(12px, 2vw, 24px);
}

.about-title {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #000;
}

.about-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #0B5E92;
  margin-top: 12px;
}

.about-text p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.7;
  max-width: 70ch;
}

.about-text strong {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0B5E92;
}




/* === MOBILE & TABLET === */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-main {
    padding-left: 0;
  }

  .about-quote {
    margin-bottom: 12px;
  }

}

/* ===============================
   ABOUT – PREMIUM REVEAL
=============================== */

/* état initial */
.reveal-about .about-quote,
.reveal-about .about-main {
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* citation : arrive de la gauche */
.reveal-about .about-quote {
  transform: translateX(-60px);
}

/* texte : arrive du bas */
.reveal-about .about-main {
  transform: translateY(40px);
}

/* état visible */
.reveal-about.is-visible .about-quote,
.reveal-about.is-visible .about-main {
  opacity: 1;
  transform: none;
}

/* léger décalage */
.reveal-about.is-visible .about-main {
  transition-delay: 0.2s;
}

/* Mobile : animation plus douce */
@media (max-width: 768px) {
  .reveal-about .about-quote {
    transform: translateY(30px);
  }
}


.reveal {
  opacity: 0;
}

.reveal.from-left {
  transform: translateX(-40px);
}

.reveal.from-bottom {
  transform: translateY(24px);
}

.reveal.show {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}





/* Ligne verticale entre les colonnes */
.about-divider {
  width: 2px;
  height: 0;
  /* cachée avant scroll */
  background: linear-gradient(to bottom,
      transparent,
      #0B5E92,
      transparent);
  align-self: center;
  /* centré verticalement */
  justify-self: center;
  opacity: 0;
}

.about-divider.is-visible {
  height: 60%;
  /* visible après scroll */
  opacity: 1;
  transition:
    height 0.9s ease,
    opacity 0.9s ease;
}

@media (max-width: 992px) {

  /* 1. Kill the divider element */
  #about .about-divider {
    display: none !important;
  }

  /* 2. Kill the pseudo divider */
  #about .about-grid::before,
  #about .about-grid::after {
    content: none !important;
    display: none !important;
  }

  /* 3. Collapse the grid to one column */
  #about .about-grid {
    grid-template-columns: 1fr !important;
  }
}





































/* =====================================================
   SERVICES — DARK SECTION (CENTERED & CLEAN)
===================================================== */

.services {
  background: #000;
  color: #fff;

  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.services .container {
  width: 100%;
}

/* =========================
   SERVICES — CLICKABLE HEADER
========================= */

.services-head-link a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.services-head-link h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

/* Arrow */
.services-head-link .arrow {
  font-size: 0.9em;
  opacity: 0.5;
  transform: translateX(0);
  transition: transform .25s ease, opacity .25s ease;
}

/* Underline reveal */
.services-head-link h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 3px;
  background: #facc15;
  transition: width .35s ease;
}

/* Hover & focus */
.services-head-link a:hover h2::after,
.services-head-link a:focus-visible h2::after {
  width: 100%;
}

.services-head-link a:hover .arrow,
.services-head-link a:focus-visible .arrow {
  transform: translateX(6px);
  opacity: 1;
}

/* Optional: micro lift */
.services-head-link a:hover {
  transform: translateY(-1px);
}


/* =====================================================
   HEADER
===================================================== */

.services-head {
  text-align: center;
  margin-bottom: 80px;
}

.services-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 12px;
}

.services-head .accent {
  color: #ffffff;
}

.services-head p {
  color: #cbd5e1;
  margin: 6px 0 0;
  text-align: center;
}

/* =====================================================
   GRID
===================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2%, 22px);

  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(16px, 4%, 60px);
}

/* Mobile: 1 colonne et 4 lignes */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3%, 24px);
  }
}

/* =====================================================
   SERVICE CARD — CLICKABLE
===================================================== */

.service-card {
  display: block;
  text-decoration: none;
  color: inherit;

  background: #0a0a0a;
  position: relative;
  z-index: 2;
  border: 1px solid #334155;
  /* lighter border to ensure visibility */
  border-radius: 16px;
  overflow: hidden;

  /* FORCE VISIBILITY */
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(0) scale(1.04);
  border-color: #facc15;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

/* =====================================================
   IMAGE
===================================================== */

.service-image {
  height: clamp(150px, 25vw, 180px);
  background: #1f2937;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;

}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

/* =====================================================
   CONTENT
===================================================== */

.service-content {
  padding: 22px;
}

.service-content h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.service-content p {
  color: #d1d5db;
  margin: 0;
  line-height: 1.6;
}

/* =====================================================
   SERVICES — FADE UP STAGGER
===================================================== */

.service-card {
  /* opacity: 0; */
  /* transform: translateY(32px); */
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger order (left → right) */
.service-card:nth-child(1) {
  transition-delay: 0.05s;
}

.service-card:nth-child(2) {
  transition-delay: 0.15s;
}

.service-card:nth-child(3) {
  transition-delay: 0.25s;
}

.service-card:nth-child(4) {
  transition-delay: 0.35s;
}

.service-card:nth-child(5) {
  transition-delay: 0.45s;
}

.service-card:nth-child(6) {
  transition-delay: 0.55s;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 768px) {

  .services {
    min-height: auto;
    padding: 80px 0;
  }

  .services-head {
    margin-bottom: 48px;
  }

  .service-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .service-image {
    height: 160px;
  }

  .service-card:hover {
    transform: none;
  }

  .services-title-link a {
    padding: 4px 0;
  }
}












/* =========================
   CAREERS – PREMIUM
========================= */
/* =====================================
   CAREERS — BRAND LOGO ACCENT (LEFT)
===================================== */
.fw-overlay {
  position: relative;
  /* already present, keep it */
}

/* Logo circle accent */
.fw-overlay::before {
  content: "";
  position: absolute;
  left: -127px;
  top: 50%;
  transform: translateY(-50%);

  width: 520px;
  height: 520px;

  background: url("../img/Logomedelec.png") no-repeat center / contain;

  opacity: 0.12;
  /* subtle brand recall */
  pointer-events: none;
  z-index: 0;
}

.fw-overlay::before {
  filter: blur(1px);
}

/* Keep content above */
.fw-overlay>* {
  position: relative;
  z-index: 1;
}

/* =========================
   CAREERS – FULLWIDTH FEATURE
========================= */



.careers-section {
  position: relative;
  width: 100%;
  margin-top: 80px;

}

.careers-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: white;
  border-bottom-left-radius: 80% 100%;
  border-bottom-right-radius: 80% 100%;
}

.fullwidth-feature {
  position: relative;
  min-height: 540px;
  overflow: hidden;
}

/* Background image */
.fw-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Dark / blue overlay */
.fw-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  background: radial-gradient(circle at 20% 20%,
      #0B5E92 0%,
      #064577 40%,
      #032542 70%,
      #010d1a 100%);

  display: flex;
  align-items: center;
}

/* Inner layout */
.fw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 10%, 120px) clamp(16px, 4%, 60px);
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8%, 80px);
}

/* LEFT */
.fw-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbeafe;
  font-weight: 600;
}

.fw-left h2 {
  font-size: 3rem;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 700;
}

/* RIGHT */
.fw-right p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin-bottom: 18px;
  max-width: 520px;
}

/* CTA */
.fw-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #000000;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.fw-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

.career-cta {
  transition: all 0.3s ease;
}

.career-cta:hover {
  background: #ffffff;
  color: #0b5e92;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}



.careers-section::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: 200px;
  background: red !important;
  z-index: 9999;
}


/* =========================
   CAREERS – MOBILE FIX
========================= */
@media (max-width: 768px) {

  .careers-section {
    margin-top: 56px;
  }

  .careers-section::before {
    top: -40px;
    height: 40px;
  }

  .fullwidth-feature {
    min-height: auto;
  }

  .fw-overlay {
    padding: 40px 0;
    margin-top: 64px;

  }

  .fw-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 20px;
  }

  .fw-left h2 {
    font-size: clamp(2rem, 6vw, 2.6rem);
  }

  .fw-right p {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .fw-overlay::before {
    display: none;
  }
}





























/* =====================================================
   ACTUALITÉS — CLEAN & SECONDARY
   (FULL RESET + REBUILD)
===================================================== */

.news.section-full {
  background: #000000;
  padding: 90px 0 80px;
  /* ↓ reduced by ~30% */
  color: #e5e7eb;
  min-height: unset;
  margin-bottom: 68px;

}

/* Container */
.news-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   HEADER — SAME AS SERVICES
===================================================== */

.actualites-head {
  text-align: center;
  margin-bottom: 36px;
}

.actualites-head a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.actualites-head h2 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
}

/* underline */
.actualites-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0%;
  height: 3px;
  background: #facc15;
  transition: width .35s ease;
}

.actualites-head .arrow {
  font-size: 0.9em;
  opacity: .45;
  transition: transform .25s ease, opacity .25s ease;
}

.actualites-head a:hover h2::after {
  width: 100%;
}

.actualites-head a:hover .arrow {
  transform: translateX(6px);
  opacity: 1;
}

.actualites-head p {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #94a3b8;
}

/* =====================================================
   GRID — LIGHT, EDITORIAL
===================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* =====================================================
   CARD — SMALLER / LESS DOMINANT
===================================================== */

.news-card {
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, .95),
      rgba(2, 6, 23, .95));
  border-radius: 14px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .45);
}

/* Image */
.news-media img {
  width: 100%;
  height: 120px;
  /* SMALLER */
  object-fit: cover;
  display: block;
}

/* Body */
.news-body {
  padding: 16px 18px 18px;
}

.news-body .date {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
}

.news-body h3 {
  font-size: 0.9rem;
  /* LESS IMPORTANT */
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-body h3 a {
  color: #e5e7eb;
  text-decoration: none;
}

.news-body h3 a:hover {
  text-decoration: underline;
}

/* =====================================================
   LINK — NOT A BUTTON
===================================================== */

.news-body .btn-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-body .btn-link span {
  font-size: 0.85em;
  transition: transform .2s ease;
}

.news-body .btn-link:hover {
  color: #facc15;
}

.news-body .btn-link:hover span {
  transform: translateX(3px);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 980px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news.section-full {
    padding: 90px 0 80px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .actualites-head h2 {
    font-size: clamp(28px, 8vw, 34px);
  }
}
































/* =====================================================
   RÉFÉRENCES — PREMIUM BASE
   ===================================================== */

.references {
  background: #ffffff;
  color: #0F172A;

  min-height: 100vh;
  display: flex;
  align-items: center;
  /* centrage vertical */
  padding: 0 !important;
}


/* container aligné premium */
.references>.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(40px, 5%, 80px) clamp(16px, 4%, 60px);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* =========================
   CLICKABLE SECTION TITLE
   REFERENCES
========================= */

.references-title-link {
  margin: 0;
}

.references-title-link a {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;

  color: #0f172a;
  text-decoration: none;

  position: relative;
}

/* underline */
.references-title-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  width: 0%;
  height: 4px;
  background: #facc15;
  /* MEDELEC yellow */

  transition: width .35s ease;
}

/* arrow */
.references-title-link .arrow {
  font-size: 0.7em;
  opacity: .4;
  transition: transform .25s ease, opacity .25s ease;
}

/* hover */
.references-title-link a:hover::after {
  width: 100%;
}

.references-title-link a:hover .arrow {
  transform: translateX(6px);
  opacity: 1;
}

@media (max-width: 980px) {
  .references-title-link a {
    gap: 0;
    /* Gap is now handled by absolute positioning */
  }

  .references-title-link .arrow {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
  }

  .references-title-link a:hover .arrow {
    transform: translate(6px, -50%);
  }
}

/* =====================================================
   TITRES & TEXTES — PREMIUM HIERARCHY
   ===================================================== */

.references-head {
  max-width: 60ch;
  position: relative;
}

/* séparation verticale subtile (premium) */
.references-head::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 15%;
  width: 1px;
  height: 70%;
  background: linear-gradient(to bottom,
      transparent,
      rgba(15, 23, 42, .15),
      transparent);
}

.references .headline {
  font-size: clamp(52px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #0f172a;
  margin-bottom: 22px;
}

.references .lead {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

.references .lead.small {
  margin-top: 12px;
  color: #64748B;
}


/* =====================================================
   LAYOUT DESKTOP — STRUCTURE
   ===================================================== */

.references-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}


/* =====================================================
   GALERIE — PREMIUM DEPTH
   ===================================================== */

.references-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}


/* cards */
.ref-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, .10),
    0 30px 60px rgba(15, 23, 42, .15);

  transition: transform .45s ease, box-shadow .45s ease;
}

.ref-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, .18),
    0 50px 90px rgba(15, 23, 42, .22);
}

.ref-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  transition: transform .6s ease, opacity .6s ease;
}

/* hover image */
.ref-card:hover img {
  transform: scale(1.08);
  opacity: .82;
}


/* =====================================================
   OVERLAY — LUXE SOBER
   ===================================================== */

.ref-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(15, 23, 42, .65),
      rgba(15, 23, 42, .15));

  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: opacity .4s ease;
}

.ref-card:hover .ref-hover {
  opacity: 1;
}

.ref-hover .icon {
  margin-top: 8px;
  font-size: 22px;
  opacity: .9;
}

/* click safety */
.ref-hover {
  pointer-events: none;
}

.ref-card a {
  pointer-events: auto;
}



/* =====================================================
   RESPONSIVE
   ===================================================== */

/* =====================================================
   TABLET ≤ 980px
   ===================================================== */

@media (max-width: 980px) {

  .references-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .references-head {
    text-align: center;
    max-width: 100%;
  }

  .references-head::after {
    display: none;
  }

  .references .lead {
    margin: 0 auto;
  }

  .references-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =====================================================
   MOBILE ≤ 640px
   ===================================================== */

@media (max-width: 640px) {

  .references {
    padding: 72px 0 64px;
    min-height: auto;
    /* ← critical */
    display: block;

  }

  .references-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .references-gallery {
    grid-template-columns: repeat(2, 1fr);
    /* ← force 2/2 */
    gap: 16px;
  }

  .ref-card {
    border-radius: 14px;
    box-shadow:
      0 6px 18px rgba(15, 23, 42, .12);
  }

  .references>.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .references .headline {
    font-size: clamp(28px, 9vw, 36px);
    text-align: center;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
  }

  .references .lead {
    text-align: center;
    max-width: 100%;
  }

  @media (max-width: 640px) {
    .references-cta {
      display: flex;
      justify-content: center;
      margin-top: 28px;
    }

    .references .references-cta a.cta-pill {
      padding: 12px 26px;
      font-size: 14px;
    }
  }
}

/* =========================
   REFERENCES — MOBILE SPACING FIX (REAL)
========================= */
@media (max-width: 768px) {

  section#references {
    padding-top: 96px !important;
    padding-bottom: 64px;
  }

}





































@font-face {
  font-family: 'HeinekenMedelec';
  src: url('../fonts/HEINEKEN.TTF') format('truetype');
  /* << important */
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



.footer .brand-center h1 {
  font-family: 'HeinekenMedelec', serif;
  font-size: 3.4rem;
  /* EXACT style matching image */
  font-weight: normal;
  color: #ffffff;
  /* Medelec blue */
  letter-spacing: 0.5px;
  /* slight spacing like the logo */
  text-transform: none;
  /* keep exact casing */
  line-height: 1;
}

.cta-before-footer {
  padding: clamp(60px, 10%, 90px) clamp(16px, 4%, 60px);
}


.cta-container {
  position: center;
  text-align: center;
  max-width: clamp(300px, 90%, 700px);
  margin: 0 auto;
}


.cta-title {
  font-size: clamp(1.8rem, 5vw, 32px);
  font-weight: 700;
  margin-bottom: clamp(8px, 2%, 10px);
  color: #000;
}

.cta-subtitle {
  font-size: 18px;
}


.cta-btn {
  display: inline-block;
  background: #121212;
  color: white;
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
  position: relative;
  z-index: 50;
}


.cta-btn:hover {
  background: #000;
}


@media (max-width: 768px) {
  .cta-title {
    font-size: 25px;
  }

}

.references-gallery .ref-link {
  display: block;
  width: 100%;
  height: 100%;
}















































/* ===============================
   CTA – FULL PAGE BACKGROUND IMAGE
   =============================== */

.cta-before-footer.section-full {
  position: relative;
  min-height: 100vh;

  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.45)),
    url("../img/cta-bg.jpg") center / cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}


.cta-before-footer.section-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.cta-container {
  position: relative;
  z-index: 2;

  max-width: 486px;
  /* au lieu de ~520–600 */
  padding: 44px 48px;
  /* légèrement réduit */
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(-28px);

}




.cta-before-footer.section-full {
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.55)),
    url("../img/Background.jpg") center / cover no-repeat;
}

.cta-title {
  font-size: clamp(34px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: #ffffff;

}

.cta-subtitle {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 28px;
  color: #ffffff;
}

.cta-btn {
  background: #000;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 38px;
  border-radius: 10px;

  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


/* =========================================
   SAFE PATCH — ABOUT SECTION CENTERING
   ========================================= */

#about {
  min-height: calc(100vh - 88px);
  /* header height */
  display: flex;
  align-items: center;
  /* centre verticalement */
}

#about .about-wrap {
  width: 100%;
}

/* Mobile safety */
@media (max-width: 900px) {
  #about {
    align-items: flex-start;
  }

  #about .about-wrap {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* =====================================================
   CTA — FADE UP PREMIUM
===================================================== */

.reveal-cta {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-cta.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-cta .btn,
.reveal-cta button {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  transition-delay: 0.25s;
}

.reveal-cta.is-visible .btn,
.reveal-cta.is-visible button {
  opacity: 1;
  transform: translateY(0);
}

.reveal-cta::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.reveal-cta.is-visible::after {
  opacity: 1;
}