*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --apec-blue: #232558;
  --apec-blue-dark: #1a1b42;
  --apec-blue-mid: #3b4086;
  --apec-blue-midlight: #B0B5D1;
  --apec-blue-light: #eaedf6;
  --apec-blue-xlight: #f4f5fb;
  --apec-yellow: #FDC300;
  --apec-yellow-dark: #e0aa00;
  --apec-yellow-light: #fff8d6;
  --apec-gray: #F5F5F0;
  --apec-gray-mid: #e0e0d8;
  --apec-text: #232558;
  --apec-text-body: #3D3D3D;
  --apec-text-muted: #6b6b80;
  --apec-white: #FFFFFF;
  --apec-border: #D8D8D0;
  --font: 'Nunito Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(35, 37, 88, .08);
  --shadow-md: 0 4px 20px rgba(35, 37, 88, .12);
  --transition: all .22s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  /* scroll padding = menu size *****/
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--apec-text-body);
  background: var(--apec-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.main-content {
  min-height: calc(100dvh - 255px);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  border-radius: 50%;
  z-index: 1000;
  background-color: var(--apec-yellow);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}

.back-to-top:hover {
  transform: scale(1.1);
}

.back-to-top img {
  width:24px;
  margin-bottom:3px;
  margin-right:1px;
  display: block;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  color: var(--apec-blue);
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(26px, 4vw, 42px);
  text-align: center;
}

h2 {
  font-size: clamp(20px, 3vw, 30px);
  margin-bottom: 30px;
}

h3 {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 700;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--apec-text-body);
}

a {
  text-decoration: none;
  color: var(--apec-blue);
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--apec-yellow-dark);
  margin-bottom: 10px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

section.alt-bg {
  background: var(--apec-gray);
}

section.blue-bg {
  background: var(--apec-blue);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--apec-yellow);
  color: var(--apec-blue);
}

.btn-primary:hover {
  background: var(--apec-yellow-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--apec-white);
  border: 2px solid rgba(255, 255, 255, .5);
}

.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}

.btn-outline-blue {
  background: var(--apec-blue);
  color: #fff;
  border: 2px solid var(--apec-blue);
}

.mailto, .photo-mention-legale {
  text-decoration: underline;
  font-weight: bold;
}

.btn-outline-blue:hover {
  background: transparent;
  color: var(--apec-blue);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--apec-white);
  border-bottom: 1px solid var(--apec-border);
  box-shadow: 0 2px 12px rgba(35, 37, 88, .06);
}

.header-accueil-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#burger {
  display: none;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  width: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-divider {
  width: 1px;
  height: 32px;
  background: var(--apec-border);
}

.logo-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--apec-blue);
  line-height: 1.3;
}

nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--apec-blue);
  padding: 7px 12px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

nav a:hover {
  background: var(--apec-blue-light);
}

/* HERO */
.hero {
  background: var(--apec-blue);
  padding: 72px 0 0;
  overflow: hidden;
  position: relative;
  padding-bottom: 0
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 195, 0, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 195, 0, .15);
  border: 1px solid rgba(253, 195, 0, .35);
  color: var(--apec-yellow);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
}

h1 span {
  color: var(--apec-yellow);
}

.hero-desc {
  color: rgba(255, 255, 255, .75);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-boutons {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  align-content: center;
}

.hero-boutons a {
  width: 330px;
  justify-content: center;
}

.to-the-left {
  justify-self: start;
}

.to-the-right {
  justify-self: end;
}

/* EN 1 MINUTE */
.comprendre-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.comprendre-card {
  background: var(--apec-white);
  border: 1px solid var(--apec-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.comprendre-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--apec-yellow);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}

.comprendre-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.comprendre-card:hover::after {
  transform: scaleX(1);
}

.comprendre-card-header {
  margin-bottom: 10px;
}

.cc-icon {
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--apec-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cc-question {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--apec-text-muted);
  margin-bottom: 8px;
  text-align: center;
  height: 40px;
}

.cc-answer {
  font-size: 12px;
  color: var(--apec-blue); 
  line-height: 1.6;
  font-weight: 600;
  margin-left: 16px;
  text-align: justify;
}

.cc-tag {
  display: inline-block;
  margin-top: 12px;
  background: var(--apec-yellow-light);
  color: var(--apec-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
  border: 1px solid rgba(253, 195, 0, .4);
}

  .infographie {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }

/* MISSIONS */
.missions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  text-align: justify;
}

.mission-card {
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.mission-card.m1 {
  background: var(--apec-blue-midlight);
  border: 2px solid var(--apec-blue);
}

.mission-card.m2 {
  background: var(--apec-yellow-light);
  border: 2px solid var(--apec-yellow);
}

.mission-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;  
  min-height: 80px;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 20px 14px;
  border-radius: 40px;
  justify-content: center;
  text-align: center;
}

.mission-card.m1 .mission-year {
  color: #fff;
  background: var(--apec-blue);
  border: 1px solid var(--apec-blue);
}

.mission-card.m2 .mission-year {
  color: var(--apec-blue);
  background: var(--apec-yellow);
  border: 1px solid var(--apec-blue);
}
/*
.mission-card .chapo {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
}*/

.chapo1 {
  min-height: 92px;
}

.chapo2 {
  min-height: 60px;
}

.mission-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
  text-align: justify;
}

.mission-card.m1 h3 {
  color: var(--apec-blue);
}

.mission-card.m2 h3 {
  color: var(--apec-blue);
}

.mission-hr  {
  width: 30%;
  margin: 20px auto 20px 0; 
  border: none;
}

.mission-card.m1 .mission-hr {
  border-top: 2px solid var(--apec-yellow);
}

.mission-card.m2 .mission-hr {
  border-top: 2px solid var(--apec-blue);
}

.justify {
  text-align: justify;
}

.no-justify {
  text-align: left;
}

.mission-body {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--apec-blue); 
  min-height: 120px;
}

.mission-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.mission-benefit-inline {
  display: inline;
  text-align: justify;
}

.mission-benefit-strong {
  display: inline;
  text-decoration: underline;
}

.mission-card.m1 .mission-benefit {
  color: var(--apec-blue);
}

.mission-card.m2 .mission-benefit {
  color: var(--apec-blue);
}

.mission-benefit::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-size: contain;
  background-repeat: no-repeat;
}

.mission-card.m1 .mission-benefit::before {
    background-image: url("../images/checked-blue.svg");
}

.mission-card.m2 .mission-benefit::before {
    background-image: url("../images/checked-yellow.svg");
}

/* SAISIE */
.saisie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}


/* PROCESSUS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 45px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: repeating-linear-gradient(to right, var(--apec-yellow) 0, var(--apec-yellow) 8px, transparent 8px, transparent 16px);
}

.ps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  position: relative;
}

.ps-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--apec-blue);
  color: var(--apec-yellow);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--apec-white);
  box-shadow: 0 0 0 3px var(--apec-blue);
}

.ps-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--apec-blue);
  margin-bottom: 8px;
}

.ps-text {
  font-size: 13px;
  color: var(--apec-text-muted);
  line-height: 1.6;
}

.ps-tag {
  display: inline-block;
  margin-top: 10px;
  background: var(--apec-blue-light);
  color: var(--apec-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
}

/* VIDEO */
.spinner-points {
  position: relative;
  width: 48px;
  height: 48px;
  animation: spin 3s linear infinite;
}

.spinner-points span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--apec-yellow-dark);
  border-radius: 50%;
}

/* Points placés autour du cercle */
.spinner-points span:nth-child(1) { top: 0px;  left: 20px; }
.spinner-points span:nth-child(2) { top: 6px;  left: 34px; }
.spinner-points span:nth-child(3) { top: 20px; left: 40px; }
.spinner-points span:nth-child(4) { top: 34px; left: 34px; }
.spinner-points span:nth-child(5) { top: 40px; left: 20px; }
.spinner-points span:nth-child(6) { top: 34px; left: 6px; }
.spinner-points span:nth-child(7) { top: 20px; left: 0px; }
.spinner-points span:nth-child(8) { top: 6px;  left: 6px; }

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.video-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--apec-blue);
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 48px;
}

.video-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(253, 195, 0, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.video-duration {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 40px;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  background: var(--apec-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border: none;
}

.video-play-btn:hover {
  transform: scale(1.08);
}

.video-title {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.video-sub {
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

video {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  border-radius: 12px;
  outline: none;
}

/* HISTORY */
.history-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 48px;
  position: relative;
  padding-top: 40px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: -1%;
  left: 0%;
  right: 0%;
  height: 2px;
  background: var(--apec-border);
}

.hist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  position: relative;
  border: 1px solid;
  border-radius: 12px;
}

.hist-item::before {
  content: '';
  position: absolute;
  top: -49px;
  width: 12px;
  height: 12px;
  background: var(--apec-blue);
  border-radius: 50%;
  border: 3px solid var(--apec-white);
  box-shadow: 0 0 0 2px var(--apec-blue);
}

.hist-item.key::before {
  background: var(--apec-yellow);
  box-shadow: 0 0 0 2px var(--apec-yellow);
}

.hist-year {
  font-size: 18px;
  font-weight: 800;
  color: var(--apec-blue);
  margin-bottom: 8px;
}

.hist-hr {
  border: none;
  width: 20%;
  margin: 10px auto;
}

.hist-hr {
  border-top: 2px solid var(--apec-blue);
}

.hist-item.key .hist-hr {
  border-top: 2px solid var(--apec-yellow);
}

.hist-year p {
  font-size: 12px;
}

.hist-item.key .hist-year {
  color: var(--apec-yellow-dark);
}

.hist-text {
  font-size: 12px;
  color: var(--apec-text-muted);
  line-height: 1.6;
  text-align: justify;
}


/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--apec-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--apec-yellow);
  box-shadow: 0 2px 12px rgba(253, 195, 0, .15);
}

.faq-btn {
  width: 100%;
  background: var(--apec-white);
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  font-family: var(--font);
  transition: background .2s;
}

.faq-item.open .faq-btn {
  background: var(--apec-blue);
}

.faq-btn:hover {
  background: var(--apec-blue-xlight);
}

.faq-item.open .faq-btn:hover {
  background: var(--apec-blue);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--apec-blue);
  text-align: left;
  line-height: 1.4;
}

.faq-item.open .faq-q {
  color: #fff;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--apec-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s ease;
  font-size: 16px;
  font-weight: 700;
  color: var(--apec-blue);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 16px 22px 20px;
  font-size: 14px;
  color: var(--apec-text-body);
  line-height: 1.75;
  background: var(--apec-white);
  border-top: 1px solid var(--apec-border);
}

.faq-item.open .faq-answer {
  display: block;
}

/* RESSOURCES */
.ressources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.ressource-card {
  background: var(--apec-white);
  border: 1px solid var(--apec-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.ressource-card:hover {
  border-color: var(--apec-blue);
  box-shadow: var(--shadow-sm);
}

.res-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--apec-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.res-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--apec-blue);
  margin-bottom: 2px;
}

.res-type {
  font-size: 12px;
  color: var(--apec-text-muted);
}

.res-arrow {
  margin-left: auto;
  color: var(--apec-text-muted);
  flex-shrink: 0;
}

/* CTA BANNER */
.cta-banner {
  background: var(--apec-yellow);
  border-radius: var(--radius-xl);
  padding: 30px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta-banner h2 {
  color: var(--apec-blue);
  font-size: 26px;
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(35, 37, 88, .75);
  font-size: 16px;
  max-width: 580px;
}

.cta-banner-separator-div {
  display: flex;
  align-items: center;
}

.cta-banner-demande {
  flex:2;
}

#banner-demande-choice {
  margin: 20px 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 16px;
  justify-content: start;
}

#banner-demande-choice div {
  justify-self: start;
  text-align: left;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: auto;
  flex:1;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin: 0 auto 8px;
}

.section-header.left {
  text-align: left;
  margin: 0 0 8px;
  max-width: none;
}

.section-header p {
  font-size: 16px;
  color: var(--apec-text-muted);
  margin-top: 12px;
}

.yellow-accent {
  display: inline-block;
  position: relative;
}

.yellow-accent::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--apec-yellow);
  z-index: -1;
  border-radius: 2px;
}

/* =====================================================
   PAGES INTÉRIEURES — AGRÉMENTS & INSTRUCTIONS
===================================================== */
.inner-page {
  display: none;
}

.inner-page.active {
  display: block;
}

.main-content.page-active .home-page {
  display: none;
}

.main-content.page-active .inner-page.active {
  display: block;
}

.page-hero {
  background: var(--apec-blue);
  padding: 48px 0;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.breadcrumb a {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--apec-yellow);
}

.breadcrumb span {
  color: rgba(255, 255, 255, .3);
  font-size: 13px;
}

.breadcrumb-current {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
}

/* DATA TABLE */
.data-section {
  padding: 48px 0;
}

.data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.data-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--apec-white);
  border: 1.5px solid var(--apec-border);
  border-radius: 8px;
  padding: 9px 14px;
  flex: 1;
  max-width: 360px;
  transition: var(--transition);
}

.data-search:focus-within {
  border-color: var(--apec-blue);
  box-shadow: 0 0 0 3px rgba(35, 37, 88, .08);
}

.data-search input {
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--apec-text-body);
  background: transparent;
  width: 100%;
}

.data-search input::placeholder {
  color: var(--apec-text-muted);
}

.data-count {
  font-size: 13px;
  color: var(--apec-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.data-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--apec-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--apec-white);
}

thead th {
  background: var(--apec-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
}

thead th:first-child {
  width: 110px;
}

thead th.sortable {
  cursor: pointer;
  user-select: none;
}

thead th.sortable:hover {
  background: var(--apec-blue-mid);
}

thead th .sort-icon {
  margin-left: 6px;
  opacity: .5;
  font-size: 10px;
}

thead th.active .sort-icon {
  opacity: 1;
}

#agrementConventionCollective {
  width: 600px;
}

tbody tr {
  border-bottom: 1px solid var(--apec-gray);
  transition: background .15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--apec-blue-xlight);
}

tbody td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--apec-text-body);
  vertical-align: middle;
}

tbody td:first-child {
  font-weight: 800;
  color: var(--apec-blue);
  font-size: 15px;
  letter-spacing: .3px;
}

/* STATUS BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 40px;
}

.badge-green {
  background: #eaf3de;
  color: #3b6d11;
  border: 1px solid #c0dd97;
}

.badge-blue {
  background: var(--apec-blue-light);
  color: var(--apec-blue);
  border: 1px solid #b5c8e8;
}

.badge-amber {
  background: #faeeda;
  color: #854f0b;
  border: 1px solid #f0c870;
}

.badge-gray {
  background: var(--apec-gray);
  color: var(--apec-text-muted);
  border: 1px solid var(--apec-border);
}

.badge-pdf img {
  width: 30px;
}

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--apec-border);
  background: var(--apec-white);
  color: var(--apec-text-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--font);
}

.span-pagination {
  padding:0 4px;
  color:#6b6b80;
}

.page-btn:hover {
  border-color: var(--apec-blue);
  color: var(--apec-blue);
}

.page-btn.active {
  background: var(--apec-blue);
  color: #fff;
  border-color: var(--apec-blue);
}

/* INFO BANNER */
.info-banner {
  background: var(--apec-yellow-light);
  border: 1px solid rgba(253, 195, 0, .5);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.info-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-banner-text {
  font-size: 13px;
  color: var(--apec-blue);
  line-height: 1.6;
}

.info-banner-text strong {
  font-weight: 700;
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--apec-white);
  border: 1px solid var(--apec-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.stat-card-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--apec-blue);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 12px;
  color: var(--apec-text-muted);
  font-weight: 600;
}

.stat-card.yellow .stat-card-num {
  color: var(--apec-yellow-dark);
}

.under-construction {
  color: var(--apec-yellow-dark);
  font-size: 32px;
  margin-top: 32px;
}

/* FOOTER */
footer {
  background: var(--apec-blue);
  padding: 48px 0 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 24px;
}

.footer-logo-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--apec-yellow);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--apec-yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0);
}

.footer-bottom img {
  width: 50px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
}

.footer-legal a:hover {
  color: rgba(245, 240, 240, 0.6);
}

.footer-logo-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 1);
  gap: 20px;
}


/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.mgb32 {
  margin-bottom: 32px
}

/* popin */
.popin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-sizing: revert;
  margin: revert;
  padding: revert;
}

.popin-overlay * ,
.popin-overlay::before,
.popin-overlay::after,
.popin-overlay *::before,
.popin-overlay *::after {
  box-sizing: revert;
  margin: revert;
  padding: revert;
}

.popin-overlay {
  text-align: justify;
}

.popin-overlay h2 {
  text-align: center;
}

.popin-overlay.active {
  display: flex;
}

body.popin-open {
  overflow: hidden;
}

.popin {
  background: white;
  padding: 0px 20px 20px;
  border-radius: 10px;
  width: 640px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  max-height: calc(100dvh - 32px);
}

.politique-confidentialite-popin, .gestion-cookie-popin {
  height: 640px;
}

.popin-header {
  position: sticky;
  border-bottom: 1px solid #ddd;
}

.popin-body {
  overflow-y: auto;
  max-height: 90%;
}

.popin-close {
  position: absolute;
 /* top: 10px;*/
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.popin-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #2563eb;
  color: white;
}

/* fin popin */

/* RESPONSIVE */
@media(max-width:1100px) {
  .header-container {
    flex-direction: column; 
  }

  .header-accueil-burger {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  #burger {
    display: block;
  }

  nav {
    flex-direction: column;
    display: none;
  }

  .display {
    display: flex;
  }

 .cta-banner-separator-div {
    flex-direction: column;
  }

  .cta-banner-actions {
    margin: auto;
  }

  .logo-divider {
    display: none;
  } 

  html {
    /* scroll padding = menu size *****/
    scroll-padding-top: 330px;
  }

  #header-container {
    padding-top: 20px;
  }

   #header-container.open {
    height: 330px;
  }
}

@media(max-width:900px) {

  .hero-boutons a {
    width: auto;
    min-height: 120px;
  }
  .hero-visual {
    display: none
  }

  .comprendre-grid {
    grid-template-columns: 1fr 1fr
  }

  .missions-grid {
    grid-template-columns: 1fr
  }

  .process-steps {
    grid-template-columns: 1fr 1fr
  }

  .process-steps::before {
    display: none
  }

  .history-timeline {
    grid-template-columns: 1fr 1fr
  }

  .history-timeline::before {
    display: none
  }

  .hist-item::before {
    top: -9px;
  }

  .saisie-grid {
    grid-template-columns: 1fr
  }

  .ressources-grid {
    grid-template-columns: 1fr
  }

  .cta-banner {
    grid-template-columns: 1fr
  }

  .cta-banner-actions {
    align-items: flex-start
  }

  .footer-main {
    grid-template-columns: 1fr 1fr
  }

  .stats-row {
    grid-template-columns: 1fr
  }
}

@media(max-width:600px) {
  section {
    padding: 48px 0
  }

  .hist-year {
    min-height: 140px;
  }

  .comprendre-grid {
    grid-template-columns: 1fr
  }

  .cta-banner {
    padding: 32px 24px
  }

  .footer-main {
    grid-template-columns: 1fr
  }

  .hero {
    padding: 48px 0 0
  }

  .data-table-wrap {
    overflow-x: auto;
  }

  table {
    font-size: 13px;
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
  }

  thead th,
  tbody td {
    padding: 10px 12px
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  iframe {
    width: 100%;
  }

  .footer-legal {
    flex-direction: column;
  }
}

@font-face {
  font-family: "Montserrat-SemiBold";
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"), url("../fonts/Montserrat-SemiBold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat-Regular";
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2"), url("../fonts/Montserrat-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Thin";
  src: url("../fonts/Roboto-Thin.woff2") format("woff2"), url("../fonts/Roboto-Thin.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Regular";
  src: url("../fonts/Roboto-Regular.woff2") format("woff2"), url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Medium";
  src: url("../fonts/Roboto-Medium.woff2") format("woff2"), url("../fonts/Roboto-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Roboto-Bold";
  src: url("../fonts/Roboto-Bold.woff2") format("woff2"), url("../fonts/Roboto-Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/****** Gallery ******/
.gallery-grid .gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background: #ddd;
}

.gallery-grid .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid .gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-grid .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 80, 180, 0.85),
      rgba(0, 140, 255, 0.45));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--apec-white);
  margin: 0 auto;
  text-align: center;
}

.gallery-overlay p {
  font-size: 0.95rem;
  opacity: 0.95;
  color: var(--apec-white);
  margin: 0 auto;
  text-align: center;
}

.gallery-overlay hr {
  color: var(--apec-white);
  width: 30%;
  margin: 0 auto;
}


.gallery-shine {
  position: absolute;
  top: -100%;
  left: -120%;
  width: 60%;
  height: 250%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.28) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.gallery-card:hover .gallery-shine {
  left: 140%;
}