/* =================================
   UNIVERSITÉ DES SEMAILLES 2025
   Style épuré et minimaliste
   Inspiré de Diplomeo (corrigé & unifié)
   ================================= */

/* ========== VARIABLES CSS ========== */
:root {
  /* Couleurs */
  --primary: #1B8D9B;
  --secondary: #7EB644;
  --accent: #C9B534;
  --danger: #E43B3B;
  --dark: #1a1a1a;

  /* Grays élégants */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

  /* Helpers UI */
  --anthracite: #0f172a;
  --gold: #E6C453;
}

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

html { line-height: 1.6; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-4); line-height: 1.7; }

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-6); } }

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-primary);
  font-size: 0.95rem; font-weight: 500; line-height: 1.4;
  border-radius: var(--radius-md);
  text-decoration: none; transition: all .2s ease; cursor: pointer;
}
.btn-primary { color:#fff; background: var(--primary); border:2px solid var(--primary); }
.btn-primary:hover { background:#156B75; border-color:#156B75; color:#fff; transform: translateY(-1px); }
.btn-secondary { color:#fff; background: var(--secondary); border:2px solid var(--secondary); }
.btn-secondary:hover { background:#6BA035; border-color:#6BA035; color:#fff; transform: translateY(-1px); }
.btn-outline { color: var(--primary); background: transparent; border:2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color:#fff; transform: translateY(-1px); }

/* CTA outline premium (Intervenants) */
.btn-hero-outline{
  --btnc: var(--primary);
  display:inline-flex; align-items:center; justify-content:center; gap:.35rem;
  border:2px solid var(--btnc); color:var(--btnc); background:transparent;
  border-radius:999px; padding:.6rem 1.1rem; font-weight:600; text-decoration:none;
  transition:background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn-hero-outline:hover{ background:var(--btnc); color:#fff; box-shadow:0 10px 22px rgba(27,141,155,.25); transform: translateY(-1px); }
.btn-hero-outline:active{ transform: translateY(0); box-shadow:0 6px 14px rgba(27,141,155,.18); }
.btn-hero-outline .btn-hero-arrow{ transition: transform .2s ease; }
.btn-hero-outline:hover .btn-hero-arrow{ transform: translateX(3px); }

/* ========== HERO SECTION (Diplomeo) ========== */
.hero-diplomeo {
  background: var(--primary);
  min-height: 56vh !important; /* compact */
  padding: 2rem 0 !important;
  display: flex; align-items: center;
}
@media (max-width: 991px) {
  .hero-diplomeo { padding: 3rem 0; min-height: 52vh; }
}
@media (max-width: 576px) {
  .hero-diplomeo { padding: 2rem 0; }
}

.hero-title-diplomeo {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
  color: #2C2C2C; /* tu peux passer à #fff si tu veux plus de contraste */
  margin-bottom: 1.5rem;
}
.hero-title-small { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; color: #666; display:block; margin-top:.5rem; }
.hero-subtitle-diplomeo {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6; color: #fff; font-weight: 400;
  margin-bottom: 2rem; max-width: 500px;
}
.hero-stats-diplomeo { display:flex; align-items:center; margin-bottom:2rem; }
@media (max-width: 991px) {
  .hero-stats-diplomeo { flex-direction: column; align-items:flex-start; gap:.5rem; }
}
.hero-image-diplomeo { position: relative; }
.image-placeholder-diplomeo {
  background:#f0f0f0; border-radius:1rem; display:flex; align-items:center; justify-content:center;
  min-height:400px; border:2px dashed #ddd; transition: all .3s ease;
}
.image-placeholder-diplomeo:hover { border-color: var(--secondary); background: rgba(126,182,68,.05); }
@media (max-width: 767px) { .hero-image-diplomeo { display:none; } }
@media (max-width: 576px) { .btn-diplomeo { width:100%; justify-content:center; } }

/* Bouton Diplomeo (CTA primaire) */
.btn-diplomeo{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.875rem 2rem; background:#60B66B; color:#fff; border:none; border-radius:50px;
  font-size:1rem; font-weight:600; text-decoration:none; transition: all .3s ease;
  box-shadow: 0 4px 15px rgba(96,182,107,.3);
}
.btn-diplomeo:hover{
  background:#4A9F55; color:#fff; transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(96,182,107,.4);
}

/* ========== COUNTDOWN BAR (or élégante) ========== */
/* Remplace l’ancienne .countdown-section/.countdown-grid par cette barre */
.bg-gold{
  background: linear-gradient(90deg, #F5E27A 0%, #E6C453 45%, #E0B94A 100%);
}
.text-anthracite{ color: var(--anthracite); }

.countdown-bar .container{ max-width: 1000px; }
.countdown-line{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap: 1rem 1.25rem;
}
.countdown-lead{
  display:flex; align-items:center;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700; white-space: nowrap;
}
.countdown-boxes{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem;
}
.countdown-box{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  min-width: 98px;
  padding: .55rem .8rem;
  box-shadow: 0 6px 16px rgba(16,24,40,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.countdown-box:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16,24,40,.14); }
.countdown-number{
  font-weight: 800; color: var(--primary); line-height: 1;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.countdown-label{
  font-size: .82rem; letter-spacing: .02em; color: #334155;
}

/* Mobile : 2 lignes équilibrées (2 + 2), secondes visibles */
@media (max-width: 576px){
  .countdown-line{ flex-direction: column; }
  .countdown-boxes{ flex-wrap: wrap; gap: .6rem .8rem; max-width: 360px; }
  .countdown-box{ min-width: calc(50% - .8rem); padding: .5rem .65rem; }
  .countdown-number{ font-size: 1.4rem; }
  .countdown-label{ font-size: .78rem; }
}
@media (max-width: 360px){
  .countdown-box{ min-width: calc(50% - .6rem); }
  .countdown-number{ font-size: 1.32rem; }
}

/* ========== SECTIONS HEADER/TITLES ========== */
.section-header { text-align: center; margin-bottom: var(--space-16); }
.section-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 600; color: var(--dark); margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--gray-600);
  max-width: 600px; margin: 0 auto;
}

/* ========== THÉMATIQUES ========== */
.themes-section { padding: var(--space-20) 0; }
.themes-grid { display:grid; grid-template-columns:1fr; gap: var(--space-8); }
@media (min-width: 768px){ .themes-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .themes-grid { grid-template-columns: repeat(3,1fr); } }

.theme-card{
  background:#fff; border-radius: var(--radius-xl); overflow:hidden;
  box-shadow: var(--shadow-sm); border:1px solid var(--gray-200);
  transition: transform .2s ease, box-shadow .2s ease;
  
}
.theme-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.theme-image{ position:relative; width:100%; height:220px; overflow:hidden; }
.theme-image img{ width:100%; height:100%; object-fit:cover; transition: transform .35s ease; }
.theme-card:hover .theme-image img{ transform: scale(1.03); }
.theme-overlay{ position:absolute; top: var(--space-4); right: var(--space-4); }
.theme-day{
  background: rgba(255,255,255,.95); color: var(--primary);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-size:.875rem; font-weight:600;
}
.theme-content{ padding: var(--space-6); }
.theme-title{ font-size:1.25rem; font-weight:600; color: var(--dark); margin-bottom: var(--space-3); }
.theme-description{ color: var(--gray-600); margin-bottom: var(--space-4); line-height:1.6; }
.theme-meta{ display:flex; flex-wrap:wrap; gap: var(--space-2); }
.theme-price, .theme-status, .theme-schedule{
  font-size:.875rem; font-weight:500; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm);
}
.theme-price { background: var(--secondary); color:#fff; }
.theme-status, .theme-schedule { background: var(--gray-100); color: var(--gray-700); }

/* ========== INTERVENANTS ========== */
.soft-bg{ background: linear-gradient(180deg, #fafafa 0%, #f7fbfc 100%); }
.speakers-section{ /* class util si besoin */ }
.speaker-card{
  background:#fff; border:1px solid #eef0f2; border-radius:14px; text-align:center;
  padding:1.25rem 1rem; height:100%;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow:0 8px 18px rgba(16,24,40,.06);
}
.speaker-card:hover{ transform: translateY(-4px); box-shadow:0 14px 30px rgba(16,24,40,.12); border-color:#dfe3e8; }
.speaker-photo{
  width:96px; height:96px; object-fit:cover; border-radius:50%;
  margin:0 auto 10px; border:3px solid #fff; box-shadow:0 6px 14px rgba(0,0,0,.08);
}
.speaker-name{ font-weight:700; margin-bottom:.25rem; color:#0f172a; }
.speaker-role{ color:#475569; font-size:.95rem; }

/* ========== HIGHLIGHTS ========== */
.highlights-section{ background: var(--gray-50); padding: var(--space-16) 0; }
.highlights-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: var(--space-6); }
@media (min-width:640px){ .highlights-grid{ grid-template-columns: repeat(4,1fr); } }
.highlight-card{
  text-align:center; padding: var(--space-6); background:#fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.highlight-number{
  font-family: var(--font-display); font-size:2.5rem; font-weight:700;
  color: var(--primary); line-height:1; margin-bottom: var(--space-2);
}
.highlight-label{ font-size:.875rem; color: var(--gray-600); line-height:1.4; }

/* ========== CTA SECTION ========== */
.cta-section{
  background: var(--dark); color:#fff; padding: var(--space-20) 0; text-align:center;
}
.cta-content{ max-width:600px; margin:0 auto; }
.cta-title{ font-size: clamp(1.875rem, 3vw, 2.5rem); font-weight:600; margin-bottom: var(--space-4); }
.cta-description{ font-size:1.125rem; opacity:.8; margin-bottom: var(--space-8); line-height:1.6; }
.cta-actions{ display:flex; flex-direction:column; gap: var(--space-4); align-items:center; }
@media (min-width:640px){ .cta-actions{ flex-direction:row; justify-content:center; } }
.cta-actions .btn-outline{ color:#fff; border-color:#fff; }
.cta-actions .btn-outline:hover{ background:#fff; color: var(--dark); }

/* ========== PARTENAIRES (pro & mobile-first) ========== */
.partners-section{ background:#fff; padding: var(--space-16) 0; }
.partners-grid{
  display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:16px;
}
@media (max-width:992px){ .partners-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width:576px){ .partners-grid{ grid-template-columns: repeat(2,1fr); } }

.partner-item{
  background:#fff; border:1px solid #eef0f2; border-radius:12px;
  display:grid; place-items:center; height:86px; padding:12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  box-shadow: 0 6px 14px rgba(16,24,40,.06);
}
.partner-item:hover{ transform: translateY(-3px); box-shadow:0 12px 24px rgba(16,24,40,.12); border-color:#dfe3e8; }
.partner-item img{ max-height:46px; width:auto; filter: grayscale(30%); }
.partner-item:hover img{ filter: grayscale(0%); }

.partner-placeholder{
  background: linear-gradient(180deg, #fafafa, #f3f6f8);
  color:#64748b; font-size:.9rem; font-weight:600;
}
.partner-placeholder span{ opacity:.9; }

/* ========== RESPONSIVE GLOBALS ========== */
@media (max-width: 991px) {
  .image-placeholder-diplomeo { min-height: 300px; margin-top: 2rem; }
}
@media (max-width: 767px) {
  .themes-grid { gap: var(--space-6); }
  .theme-image { height: 180px; }
  .theme-content { padding: var(--space-4); }
}

/* ========== UTILITIES ========== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--gray-600); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

/* ========== ACCESSIBILITY / PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.btn-primary:focus, .btn-secondary:focus, .btn-outline:focus, .btn-diplomeo:focus {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
@media (prefers-contrast: high) {
  :root {
    --primary:#0F5A63; --secondary:#4A7C2A; --dark:#000; --gray-600:#000;
  }
}

/* ========== PRINT ========== */
@media print {
  .hero-diplomeo, .countdown-bar, .cta-section { background:#fff !important; color:#000 !important; }
  .btn-primary, .btn-secondary, .btn-outline, .btn-diplomeo {
    border:1px solid #000 !important; background:#fff !important; color:#000 !important;
  }
}

/* ========== FOOTER ========== */
footer { background-color: #2C2C2C !important; color: #fff !important; }

/* Fond noir pour la barre countdown */
.bg-black { background: #000; }

/* "Plus que" en blanc (icône comprise) */
.countdown-lead { color: #fff; }
.countdown-lead i { color: currentColor; } /* l’icône prend le blanc */

/* On garde les boîtes blanches lisibles sur fond noir */
.countdown-box{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.08);
}

/* Optionnel: léger séparateur visuel quand fond est noir */
.countdown-bar .container { border-top: 0; border-bottom: 0; }

/* CTA mobile fixe */
.cta-mobile-fixed {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg,var(--prog-primary),#156B75);
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 1rem;
  z-index: 1200;
  box-shadow: 0 -4px 12px rgba(0,0,0,.25);
}
.cta-mobile-fixed i {
  margin-right: .5rem;
}
.cta-mobile-fixed:hover {
  background: linear-gradient(135deg,#156B75,#0d4d55);
  color: #fff;
  text-decoration: none;
}

/* Active seulement sur mobile */
@media (max-width: 768px) {
  .cta-mobile-fixed { display: block; }
  
}




/* Mobile: empile, espace, largeur 100%, et réduit la taille du gros bouton */
@media (max-width: 575.98px) {
  .actions-pay {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .75rem !important;          /* espace entre les boutons */
  }
  .actions-pay .btn {
    width: 100% !important;          /* pleine largeur */
  }
  .actions-pay .btn-lg {
    font-size: 1rem !important;      /* réduit le texte */
    padding: .55rem 1rem !important; /* réduit la hauteur */
    line-height: 1.2 !important;
  }
}

