
/* ====================================
   CAMEROON AUTO EXPO 2026
   DESIGN PREMIUM GLOBAL
==================================== */

:root {
  --navy: #061a3a;
  --navy-2: #0b2c56;
  --green: #087443;
  --green-2: #20ae74;
  --gold: #f6b400;
  --paper: #f4f7fb;
  --text: #10213c;
  --muted: #617189;
  --line: #e2e9f2;
  --shadow: 0 20px 55px rgba(6, 26, 58, .10);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  line-height: 1.85;
}

a, button {
  transition: transform .25s ease,
              box-shadow .25s ease,
              background .25s ease,
              color .25s ease;
}

/* NAVIGATION */

header {
  box-shadow: 0 5px 24px rgba(6, 26, 58, .07);
}

.menu a:not(.cta):hover {
  color: var(--green);
}

.cta:hover,
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(6, 26, 58, .16);
}

/* GRANDE BANNIÈRE D'ACCUEIL */

.hero {
  position: relative;
  isolation: isolate;
}

.hero-title {
  letter-spacing: -.055em;
  line-height: 1.02;
}

.hero-actions {
  gap: 16px;
}

.hero-actions .cta {
  border-radius: 999px;
  padding: 17px 30px;
  font-weight: 800;
}

/* SECTIONS DU SITE */

section {
  position: relative;
}

.section-head {
  margin-bottom: 42px;
}

.section-head h2 {
  line-height: 1.12;
}

/* CARTES DES UNIVERS */

.universe-card,
.quick-card,
.benefit-card,
.program-card,
.price-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(6, 26, 58, .045);
  transition: transform .35s ease,
              box-shadow .35s ease,
              border-color .35s ease;
}

.universe-card:hover,
.quick-card:hover,
.benefit-card:hover,
.program-card:hover,
.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(8, 116, 67, .25);
  box-shadow: 0 24px 55px rgba(6, 26, 58, .14);
}

.universe-photo {
  overflow: hidden;
}

.universe-photo img {
  transition: transform .55s ease;
}

.universe-card:hover .universe-photo img {
  transform: scale(1.055);
}

/* BLOC DES INFORMATIONS CLÉS */

.quick-card {
  background: #fff;
}

.quick-card h3 {
  color: var(--navy);
}

/* VIDÉOS ET GALERIES */

video {
  max-width: 100%;
  border-radius: 22px;
}

.launch-gallery img {
  border-radius: 18px;
  transition: transform .35s ease,
              box-shadow .35s ease;
}

.launch-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ACTUALITÉS */

.grille .article,
.article {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(6, 26, 58, .07);
  transition: transform .3s ease,
              box-shadow .3s ease;
}

.grille .article:hover,
.article:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(6, 26, 58, .15);
}

.article img {
  max-width: 100%;
}

.article-contenu {
  padding: 24px;
}

/* PAGES DES ARTICLES */

body:has(main > .categorie) {
  background: linear-gradient(145deg, #edf3f9, #f8fafc);
}

body:has(main > .categorie) main {
  width: calc(100% - 36px);
  max-width: 1080px;
  margin: 40px auto 70px;
  padding: clamp(26px, 5vw, 65px);
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

body:has(main > .categorie) main h1 {
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
}

body:has(main > .categorie) main h2 {
  color: var(--navy-2);
  margin: 48px 0 20px;
  padding-left: 17px;
  border-left: 5px solid var(--green);
  font-size: clamp(23px, 3vw, 30px);
}

body:has(main > .categorie) main p,
body:has(main > .categorie) main li {
  font-size: 17px;
  line-height: 1.9;
}

body:has(main > .categorie) main img:not(.logo) {
  display: block;
  max-width: 760px;
  width: 100%;
  height: auto;
  margin: 36px auto;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(6, 26, 58, .15);
}

body:has(main > .categorie) main ul {
  padding: 26px 30px 26px 48px;
  background: #f0f7f5;
  border-radius: 18px;
}

body:has(main > .categorie) .retour {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

body:has(main > .categorie) .retour:hover {
  background: var(--navy);
  transform: translateY(-3px);
}

/* FORMULAIRES */

input,
select,
textarea {
  transition: border-color .25s ease,
              box-shadow .25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(8, 116, 67, .25);
  outline-offset: 2px;
}

/* ADAPTATION TÉLÉPHONE */

@media (max-width: 768px) {
  .hero-title {
    letter-spacing: -.035em;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .universe-card,
  .quick-card,
  .benefit-card,
  .program-card,
  .price-card {
    border-radius: 18px;
  }

  body:has(main > .categorie) main {
    width: calc(100% - 20px);
    margin: 16px auto 40px;
    padding: 25px 20px;
    border-radius: 18px;
  }

  body:has(main > .categorie) main p,
  body:has(main > .categorie) main li {
    font-size: 16px;
  }
}

/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* =====================================
   CAX 2026 - ACTUALITÉS PREMIUM
===================================== */

/* Fond plus élégant */
body:has(.grille) {
  background:
    radial-gradient(circle at 85% 15%,
      rgba(0, 130, 75, .08),
      transparent 35%),
    #f1f5f9;
}

/* Bannière Actualités */
body:has(.grille) header {
  background: linear-gradient(
    125deg,
    #061733 0%,
    #0c3159 65%,
    #07543f 100%
  );
}

/* Grille d'actualités */
.grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* Cartes */
.grille .article {
  background: white;
  border: 1px solid #e4eaf2;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(6, 26, 58, .07);
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.grille .article:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(6, 26, 58, .17);
}

/* Images et logos */
.grille .article img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 35px;
  background: linear-gradient(
    145deg,
    #ffffff,
    #f1f6fa
  );
  transition: transform .45s ease;
}

.grille .article:hover img {
  transform: scale(1.05);
}

/* Texte des cartes */
.grille .article h3 {
  color: #071b3d;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.5px;
}

.grille .article p {
  color: #60718a;
  font-size: 16px;
  line-height: 1.75;
}

/* Liens Lire la suite */
.grille .article a {
  color: #087443;
  font-weight: 800;
  text-decoration: none;
}

.grille .article a:hover {
  color: #061a3a;
}

/* Première actualité mise en avant */
.grille .article:first-child {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    #071b3d,
    #103e65
  );
  color: white;
}

.grille .article:first-child h3,
.grille .article:first-child p {
  color: white;
}

.grille .article:first-child a {
  color: #ffd25b;
}

.grille .article:first-child img {
  height: 300px;
  object-fit: cover;
  padding: 0;
}

/* Téléphones et tablettes */
@media (max-width: 900px) {
  .grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grille .article:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .grille {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .grille .article:first-child {
    grid-column: span 1;
  }

  .grille .article img {
    height: 200px;
  }
}

/* ===================================
   CAX 2026 - ARTICLES IMMERSIFS
=================================== */

/* Page plus large */
body:has(main > .categorie) {
  background: #edf2f7;
}

/* Grand espace de lecture */
body:has(main > .categorie) main {
  max-width: 1380px;
  width: calc(100% - 48px);
  margin: 35px auto 70px;
  padding: clamp(28px, 5vw, 75px);
  border-radius: 28px;
  background: white;
  box-shadow: 0 25px 70px rgba(6, 26, 58, .08);
}

/* Titres plus marqués */
body:has(main > .categorie) main h1 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -.045em;
  max-width: 1100px;
  margin-bottom: 35px;
}

body:has(main > .categorie) main h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-top: 65px;
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 6px solid #087443;
}

/* Paragraphes */
body:has(main > .categorie) main p {
  font-size: 18px;
  line-height: 1.95;
  max-width: 1000px;
}

/* Photos plus larges */
body:has(main > .categorie) main img:not(.logo) {
  display: block;
  width: 100% !important;
  max-width: 950px !important;
  height: auto !important;
  margin: 50px auto !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 55px rgba(6, 26, 58, .16);
}

/* Effet subtil sur les photos */
body:has(main > .categorie) main img:not(.logo):hover {
  transform: translateY(-5px);
}

/* Vidéos */
.cax-video {
  width: 100%;
  max-width: 1100px;
  display: block;
  margin: 55px auto;
  border-radius: 25px;
  box-shadow: 0 25px 60px rgba(6, 26, 58, .22);
}

/* Adaptation téléphone */
@media (max-width: 768px) {
  body:has(main > .categorie) main {
    width: calc(100% - 20px);
    padding: 25px 20px;
    margin: 15px auto 40px;
  }

  body:has(main > .categorie) main p {
    font-size: 16px;
  }
}
