
:root {
  --green-dark: #064B35;
  --green: #087A4B;
  --green-light: #159766;
  --green-pale: #EAF4EE;
  --white: #FFFFFF;
  --background: #F7FAF8;
  --text: #263B32;
  --muted: #718078;
  --border: #DFEAE3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */

.header {
  min-height: 90px;
  padding: 10px 5%;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(6,75,53,.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border: none;
  background: transparent;
}

.brand-text strong {
  display: block;
  color: var(--green-dark);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-text small {
  display: block;
  color: #65766c;
  font-size: 10px;
  line-height: 1.4;
}

/* COMMANDES DE L'EN-TÊTE */

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-controls .language-select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 200;
  width: auto !important;
  min-width: 125px;
  flex-shrink: 0;
  background: #ffffff;
  color: #064B35;
  border: 1px solid #C9DCD0;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.header-controls .language-select:focus {
  border-color: #087A4B;
  box-shadow: 0 0 0 2px rgba(8,122,75,.12);
  outline: none;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 17px;
}

.navigation a {
  font-size: 12px;
  font-weight: 600;
  color: #364b40;
  white-space: nowrap;
  transition: .25s;
}

.navigation a:hover {
  color: var(--green);
}

.navigation .nav-button {
  background: var(--green-dark);
  color: white;
  padding: 11px 17px;
  border-radius: 4px;
}

.navigation .nav-button:hover {
  background: var(--green);
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: 28px;
  cursor: pointer;
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.09), transparent 30%),
    linear-gradient(115deg, #043B2B, #075F40 60%, #087A4B);
  color: white;
  overflow: hidden;
}

.hero-inner {
  min-height: 570px;
  padding: 70px 8%;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 55px;
  align-items: center;
  max-width: 1500px;
  margin: auto;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  color: #B9E3CA;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 65px);
  line-height: 1.14;
  font-weight: 600;
  margin: 25px 0;
}

.hero h1 span {
  display: block;
  color: #C6E8D2;
}

.hero-copy > p {
  color: #E1F0E7;
  font-size: 15px;
  max-width: 630px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.primary-button {
  background: white;
  color: var(--green-dark);
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 4px;
  transition: .25s;
}

.primary-button:hover {
  background: #DDF1E4;
  transform: translateY(-3px);
}

.secondary-button {
  border: 1px solid #B8D9C5;
  color: white;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.secondary-button:hover {
  background: rgba(255,255,255,.1);
}

.hero-note {
  margin-top: 28px;
  font-size: 11px;
  color: #D0E9D9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A8E4BD;
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  max-width: 430px;
  width: 100%;
  margin: auto;
}

.visual-frame {
  min-height: 390px;
  border: 1px solid rgba(255,255,255,.3);
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.15),
    rgba(255,255,255,.035)
  );
  border-radius: 7px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 70px rgba(0,0,0,.2);
  position: relative;
  overflow: hidden;
}

.visual-frame:before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
}

.visual-top,
.visual-bottom {
  position: relative;
  z-index: 2;
}

.visual-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: bold;
  color: #C9E8D5;
}

.visual-emblem {
  position: relative;
  display: grid;
  place-items: center;
  margin: 20px 0;
}

.emblem-ring {
  width: 195px;
  height: 195px;
  border: 1px solid #B8E0C7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 17px rgba(255,255,255,.035),
    0 0 0 35px rgba(255,255,255,.025);
}

.emblem-book {
  font-size: 75px;
  color: white;
  text-shadow: 0 10px 30px #002C20;
}

.visual-bottom {
  margin-top: 10px;
  padding-bottom: 5px;
}

.visual-bottom strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.visual-bottom span {
  display: block;
  font-size: 12px;
  color: #CFE7D7;
}

.visual-caption {
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  background: white;
  color: var(--green-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border-radius: 4px;
}

.caption-number {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.visual-caption span:last-child {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* TRUST STRIP */

.trust-strip {
  background: white;
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 25px 6%;
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-item strong {
  font-size: 26px;
  color: var(--green);
  font-weight: 800;
}

.trust-item span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* SECTIONS */

.section {
  padding: 90px 8%;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 45px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 800;
}

.section h2 {
  font-family: Georgia, serif;
  color: var(--green-dark);
  font-size: clamp(30px,4vw,43px);
  line-height: 1.25;
  font-weight: 600;
  margin: 15px 0;
}

.section-heading p {
  color: var(--muted);
  max-width: 670px;
  margin: auto;
  font-size: 14px;
}

/* ABOUT */

.about {
  background: white;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-statement {
  background: var(--green-pale);
  border-left: 5px solid var(--green);
  padding: 38px;
}

.statement-mark {
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: .8;
  color: #9BC8AA;
}

.about-statement h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.4;
  color: var(--green-dark);
  margin: 15px 0 25px;
}

.statement-line {
  height: 2px;
  width: 55px;
  background: var(--green);
  margin-bottom: 15px;
}

.statement-caption {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.about-description p {
  font-size: 14px;
  color: #64746A;
  margin-bottom: 20px;
}

/* FORMATION */

.formation-section {
  background: var(--background);
}

.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.formation-card {
  background: white;
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(6,75,53,.045);
}

.formation-card.featured {
  border-top: 4px solid var(--green);
}

.formation-number {
  font-size: 45px;
  font-weight: 800;
  color: #DDECE1;
  line-height: 1;
  margin-bottom: 25px;
}

.formation-tag {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 800;
}

.formation-card h3 {
  font-family: Georgia, serif;
  color: var(--green-dark);
  font-size: 23px;
  margin: 13px 0;
}

.formation-card p {
  font-size: 14px;
  color: var(--muted);
  min-height: 100px;
}

.formation-footer {
  border-top: 1px solid var(--border);
  margin-top: 25px;
  padding-top: 18px;
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 1px;
}

/* PLATFORM */

.platform-section {
  background: white;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 17px;
  align-items: stretch;
}

.platform-card {
  padding: 27px 21px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  display: flex;
  flex-direction: column;
  transition: .25s;
  scroll-margin-top: 115px;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: #8FC4A3;
  box-shadow: 0 15px 35px rgba(6,75,53,.09);
}

.platform-icon {
  width: 43px;
  height: 43px;
  background: var(--green-pale);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  border-radius: 4px;
  margin-bottom: 20px;
}

.platform-card h3 {
  font-family: Georgia, serif;
  color: var(--green-dark);
  font-size: 18px;
  margin-bottom: 12px;
}

.platform-card p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  margin-bottom: 20px;
}

.access-label {
  display: block;
  border-top: 1px solid var(--border);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--green);
}

.ai-platform {
  background: #F2F8F4;
  border-color: #D6E9DC;
}

.ai-link {
  display: inline-block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.ai-link:hover {
  color: var(--green-light);
  text-decoration: underline;
}

.platform-notice {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
}

/* ADMISSION */

.admission-section {
  background: linear-gradient(110deg,#043B2B,#087A4B);
  padding: 80px 8%;
  color: white;
}

.admission-content {
  max-width: 850px;
  margin: auto;
  text-align: center;
}

.light-label {
  color: #C0E5CC;
}

.admission-content h2 {
  font-family: Georgia, serif;
  font-size: clamp(30px,4vw,47px);
  line-height: 1.2;
  margin: 18px 0;
}

.admission-content p {
  color: #DDEFE3;
  max-width: 670px;
  margin: 0 auto 28px;
  font-size: 14px;
}

.admission-button {
  display: inline-block;
  background: white;
  color: var(--green-dark);
  padding: 15px 24px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  transition: .25s;
}

.admission-button:hover {
  background: #E3F3E8;
  transform: translateY(-3px);
}

.admission-content small {
  display: block;
  color: #D0E9D9;
  margin-top: 18px;
  font-size: 11px;
}

/* CONTACT */

.contact-section {
  background: var(--background);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-layout > div:first-child p {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  padding: 35px;
  text-align: center;
  border-radius: 5px;
}

.contact-card h3 {
  font-family: Georgia, serif;
  color: var(--green-dark);
  font-size: 21px;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  font-size: 13px;
}

.contact-card span {
  display: block;
  font-size: 11px;
  color: #8A988F;
  margin-top: 15px;
}

/* FOOTER */

.footer {
  background: #033A29;
  color: white;
  padding: 45px 8% 20px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.footer-brand strong {
  display: block;
  color: white;
  font-size: 21px;
}

.footer-brand span {
  display: block;
  font-size: 10px;
  color: #C8DED0;
  line-height: 1.5;
}

.footer-main > p {
  color: #C8DED0;
  font-size: 12px;
}

.footer-main > a {
  color: white;
  border: 1px solid #A5D0B3;
  padding: 10px 17px;
  font-size: 12px;
  border-radius: 4px;
}

.footer-main > a:hover {
  background: var(--green);
}

.footer-bottom {
  border-top: 1px solid #ffffff25;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #AFC9B9;
  font-size: 10px;
}

/* RESPONSIVE */

@media(max-width:1100px) {
  .navigation {
    gap: 10px;
  }

  .navigation a {
    font-size: 10px;
  }

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

  .hero-inner {
    gap: 30px;
  }
}

@media(max-width:850px) {
  .header {
    min-height: 78px;
    padding: 8px 5%;
  }

  .brand img {
    width: 53px;
    height: 53px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .menu-toggle {
    display: block;
  }

  .header-controls {
    margin-left: auto;
    margin-right: 0;
  }

  .header-controls .language-select {
    min-width: 105px;
    padding: 9px 6px;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: white;
    padding: 18px 6%;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 20px #064B3515;
    gap: 5px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .navigation.open {
    display: flex;
  }

  .navigation a {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }

  .navigation .nav-button {
    text-align: center;
    margin-top: 8px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 55px 7%;
  }

  .hero-visual {
    max-width: 450px;
    margin: 20px auto 0;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .trust-strip {
    gap: 30px;
  }
}

@media(max-width:600px) {
  .section {
    padding: 60px 6%;
  }

  .hero-inner {
    padding: 55px 6%;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    text-align: center;
  }

  .visual-frame {
    min-height: 365px;
    padding: 20px;
  }

  .visual-frame:before {
    width: 250px;
    height: 250px;
  }

  .emblem-ring {
    width: 165px;
    height: 165px;
  }

  .visual-bottom strong {
    font-size: 20px;
  }

  .visual-caption {
    margin-top: 15px;
    padding: 11px 15px;
  }

  .caption-number {
    font-size: 23px;
  }

  .visual-caption span:last-child {
    font-size: 8px;
  }

  .trust-strip {
    flex-direction: column;
    gap: 12px;
    padding: 22px 8%;
  }

  .trust-item strong {
    width: 38px;
  }

  .formation-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .formation-card {
    padding: 26px;
  }

  .formation-card p {
    min-height: auto;
  }

  .about-statement {
    padding: 25px;
  }

  .about-statement h3 {
    font-size: 22px;
  }

  .admission-section {
    padding: 60px 6%;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* DROITE A GAUCHE : ARABE */

html[dir="rtl"] .navigation {
  direction: rtl;
}

html[dir="rtl"] .header-controls {
  direction: ltr;
}

html[dir="rtl"] .about-statement {
  border-left: none;
  border-right: 5px solid var(--green);
}

/* =====================================================
   CPRIT — ACTUALITÉS, MESSAGE DU DG, PUBLICATIONS
   ET GALERIE PHOTOS
===================================================== */

.news-section,
.publications-section,
.gallery-section,
.director-section {
  padding: 75px 8%;
}

.news-section,
.gallery-section {
  background: white;
}

.publications-section,
.director-section {
  background: var(--background);
}

/* CARTES D'ACTUALITÉS */

.news-grid,
.publications-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 1150px;
  margin: auto;
}

.news-card,
.publication-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6,75,53,.06);
}

.news-card-content,
.publication-content {
  padding: 28px;
}

.news-date {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.news-card h3,
.publication-card h3 {
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 12px 0;
}

.news-card p,
.publication-card p {
  color: var(--muted);
  font-size: 14px;
}

.news-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

/* MESSAGE DU DIRECTEUR GÉNÉRAL */

.director-card {
  max-width: 1050px;
  margin: auto;
  background: white;
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 12px 35px rgba(6,75,53,.06);
}

.director-card h3 {
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: 27px;
  margin-bottom: 8px;
}

.director-card .director-role {
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 25px;
}

.director-card p {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 15px;
}

.director-signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.director-signature strong {
  display: block;
  color: var(--green-dark);
  font-size: 17px;
}

.director-signature span {
  color: var(--muted);
  font-size: 12px;
}

/* GALERIE PHOTOS */

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

.gallery-item {
  overflow: hidden;
  border-radius: 7px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 8px 25px rgba(6,75,53,.07);
}

.gallery-item img {
  width: 100%;
  height: 270px;
  display: block;
  object-fit: cover;
  transition: transform .35s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 15px 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

/* CONTACT OFFICIEL */

.contact-details {
  margin-top: 22px;
  text-align: left;
}

.contact-details p {
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.contact-details strong {
  color: var(--green-dark);
}

/* ARABE */

html[dir="rtl"] .director-card {
  border-left: 1px solid var(--border);
  border-right: 5px solid var(--green);
}

html[dir="rtl"] .contact-details {
  text-align: right;
}

/* MOBILE */

@media(max-width:700px) {
  .news-section,
  .publications-section,
  .gallery-section,
  .director-section {
    padding: 55px 6%;
  }

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

  .director-card {
    padding: 25px;
  }

  .director-card h3 {
    font-size: 23px;
  }

  .gallery-item img {
    height: 230px;
  }
}

/* =====================================================
   CPRIT — REFONTE VISUELLE
   Référence : maquette validée par l'utilisateur
   Fonctionnalités existantes préservées
===================================================== */

:root {
  --green-dark: #064B35;
  --green: #087A4B;
  --green-light: #159766;
  --gold: #D5AE48;
  --background: #F7FAF8;
}

/* EN-TÊTE INSTITUTIONNEL */

.header {
  min-height: 0;
  padding: 12px 4%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.07);
}

.brand {
  gap: 12px;
}

.brand img {
  width: 68px;
  height: 68px;
}

.brand-text strong {
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: .5px;
}

.brand-text small {
  font-size: 11px;
  line-height: 1.35;
}

.header-controls {
  gap: 8px;
}

/* BARRE DE NAVIGATION VERTE */

.navigation {
  order: 5;
  flex: 0 0 calc(100% + 8.4%);
  width: calc(100% + 8.4%);
  margin: 0 -4.2% -12px;
  padding: 11px 3%;
  justify-content: center;
  gap: 19px;
  background: var(--green-dark);
}

.navigation a {
  color: white;
  font-size: 11px;
  font-weight: 600;
  transition: background .2s ease;
}

.navigation a:hover {
  color: #F6D77C;
}

.navigation .nav-button {
  background: var(--green-light);
  border-radius: 20px;
  padding: 8px 14px;
}

/* ACCUEIL : GRANDE PHOTO DU CENTRE */

.hero {
  position: relative;
  min-height: 440px;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.94) 0%,
      rgba(255,255,255,.83) 43%,
      rgba(255,255,255,.12) 100%
    ),
    url("assets/images/cprit-principal.jpg") center 48% / cover no-repeat;
  color: var(--green-dark);
}

.hero-inner {
  min-height: 440px;
  max-width: 1450px;
  padding: 55px 6%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 590px;
  width: 55%;
}

.eyebrow {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 5px;
  background: var(--green);
  color: white;
  letter-spacing: 1px;
  font-size: 11px;
}

.hero h1 {
  color: var(--green-dark);
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 53px);
  line-height: 1.12;
  margin: 17px 0;
  font-weight: 700;
}

.hero h1 span {
  color: var(--green);
}

.hero-copy > p {
  color: #29483A;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  max-width: 480px;
}

.hero-actions {
  gap: 10px;
}

.primary-button {
  background: var(--green);
  color: white;
  border-radius: 25px;
  padding: 12px 21px;
  box-shadow: 0 5px 15px rgba(8,122,75,.18);
}

.primary-button:hover {
  background: var(--green-dark);
  color: white;
}

.secondary-button {
  color: var(--green-dark);
  border: 1px solid var(--green);
  background: rgba(255,255,255,.85);
  border-radius: 25px;
}

.hero-note {
  color: var(--green-dark);
  font-weight: 600;
}

.note-dot {
  background: var(--gold);
}

/* ANCIEN VISUEL DÉCORATIF */

.hero-visual {
  display: none;
}

/* BANDEAU DES ATOUTS */

.trust-strip {
  padding: 20px 5%;
  gap: clamp(20px, 6vw, 85px);
  box-shadow: 0 4px 16px rgba(0,0,0,.035);
}

.trust-item strong {
  color: var(--green);
}

.trust-item span {
  color: #52665A;
}

/* SECTIONS */

.section {
  padding: 68px 7%;
}

.section-heading {
  margin-bottom: 32px;
}

.section h2 {
  color: var(--green-dark);
  font-size: clamp(27px, 3vw, 38px);
}

.section-label {
  color: var(--green);
  background: #EAF4EE;
  padding: 5px 11px;
  border-radius: 4px;
  letter-spacing: 1.5px;
}

.section-heading p {
  line-height: 1.7;
}

/* CARTES PLUS MODERNES */

.formation-card,
.platform-card,
.contact-card,
.news-card,
.publication-card,
.gallery-item {
  border: 1px solid #E1EAE3;
  border-radius: 12px;
  box-shadow: 0 7px 24px rgba(6,75,53,.055);
  transition: transform .25s, box-shadow .25s;
}

.formation-card:hover,
.platform-card:hover,
.news-card:hover,
.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 30px rgba(6,75,53,.11);
}

.formation-card {
  padding: 30px;
}

.formation-card.featured {
  border-top: 4px solid var(--gold);
}

.platform-card {
  padding: 25px;
}

.platform-icon {
  border-radius: 10px;
  background: #E8F4EC;
  color: var(--green);
}

.ai-platform {
  background: #EFF8F2;
  border: 1px solid #BFDCC8;
}

/* GALERIE */

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  height: 280px;
  object-fit: cover;
}

/* MESSAGE DU DIRECTEUR */

.director-card {
  border-radius: 12px;
  border-left: 5px solid var(--gold);
  box-shadow: 0 10px 30px rgba(6,75,53,.07);
}

/* ADMISSION */

.admission-section {
  background:
    linear-gradient(110deg, #043B2B, #087A4B);
}

.admission-button {
  border-radius: 25px;
}

/* CONTACT */

.contact-card {
  border-radius: 12px;
}

/* PIED DE PAGE */

.footer {
  background: #033A29;
  padding-top: 40px;
}

/* ASSISTANT : NE PAS MODIFIER SON POSITIONNEMENT
   ni ses dimensions ou ses fonctions */

/* RESPONSIVE TABLETTE */

@media (max-width: 1100px) {
  .navigation {
    gap: 10px;
  }

  .navigation a {
    font-size: 10px;
  }

  .hero-copy {
    width: 65%;
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 850px) {
  .header {
    padding: 9px 4%;
    gap: 8px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 19px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .header-controls {
    gap: 6px;
  }

  .menu-toggle {
    display: block;
    font-size: 25px;
  }

  .navigation {
    order: initial;
    flex: initial;
    width: 100%;
    margin: 0;
    padding: 15px 5%;
    top: 100%;
    background: white;
    border-top: 2px solid var(--green);
    border-radius: 0 0 10px 10px;
    gap: 3px;
  }

  .navigation a {
    color: var(--green-dark);
    font-size: 13px;
    padding: 11px;
  }

  .navigation a:hover {
    background: #EAF4EE;
    color: var(--green);
  }

  .navigation .nav-button {
    color: white;
    background: var(--green);
  }

  .hero {
    min-height: 410px;
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,.94),
        rgba(255,255,255,.77)
      ),
      url("assets/images/cprit-principal.jpg") center / cover no-repeat;
  }

  .hero-inner {
    min-height: 410px;
    padding: 42px 6%;
  }

  .hero-copy {
    width: 100%;
    max-width: 560px;
  }

  .hero h1 {
    font-size: clamp(30px, 7vw, 42px);
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions a {
    text-align: center;
  }

  .trust-strip {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 18px;
  }
}

/* PETITS ÉCRANS */

@media (max-width: 480px) {
  .brand {
    gap: 7px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    font-size: 8px;
  }

  .header-controls .language-select {
    min-width: 75px;
    max-width: 85px;
    font-size: 11px;
    padding: 8px 4px;
  }

  .hero {
    min-height: 390px;
  }

  .hero-inner {
    min-height: 390px;
    padding: 35px 5%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-copy > p {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions a {
    width: fit-content;
  }

  .section {
    padding: 48px 5%;
  }

  .trust-strip {
    align-items: flex-start;
  }

  .trust-item strong {
    font-size: 22px;
  }
}

/* ARABE : ALIGNEMENT RTL */

html[dir="rtl"] .hero {
  background:
    linear-gradient(
      270deg,
      rgba(255,255,255,.94),
      rgba(255,255,255,.77),
      rgba(255,255,255,.12)
    ),
    url("assets/images/cprit-principal.jpg") center / cover no-repeat;
}

html[dir="rtl"] .hero-copy {
  text-align: right;
}

html[dir="rtl"] .hero-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .navigation {
  direction: rtl;
}

html[dir="rtl"] .director-card {
  border-left: 1px solid var(--border);
  border-right: 5px solid var(--gold);
}

/* CPRIT — CENTRAGE DU BLOC DOMAINES D'APPRENTISSAGE */

.formation-grid:has(img) {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.formation-grid:has(img) > .formation-card {
  width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {
  .formation-grid:has(img) {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
    padding-right: 0;
  }
}



