/* ============================================================
   CREATLAND — Bilan de compétences — CSS Global
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --blue:        #00AAEF;
  --blue-dark:   #0088C4;
  --blue-light:  #E0F5FF;
  --orange:      #FF6535;
  --orange-dark: #E5561F;
  --dark:        #1C2B3A;
  --gray:        #6B7A8D;
  --light:       #F5F8FC;
  --white:       #FFFFFF;
  --border:      #DDE5EF;
  --green:       #27AE60;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow:      0 4px 20px rgba(0,0,0,0.09);
  --shadow-blue: 0 8px 30px rgba(0,170,239,0.25);
  --shadow-cta:  0 6px 24px rgba(255,101,53,0.35);

  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   24px;
  --radius-full: 999px;

  --transition:  0.25s ease;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }

/* --- Typographie ------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.28; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { font-size: 1rem; line-height: 1.78; }
strong { font-weight: 600; }

/* --- Layout ----------------------------------------------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 28px 0;
}
section { padding: 84px 0; }

/* --- Titres section --------------------------------------- */
.section-title {
  text-align: center;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 52px;
}

/* --- Boutons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-cta {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(255,101,53,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-large {
  padding: 17px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* --- Badges ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.badge-qualiopi { background: #FFF3E0; color: #BF360C; }
.badge-cpf      { background: #E3F2FD; color: #1565C0; }
.badge-online   { background: #E8F5E9; color: #2E7D32; }

/* --- Header ----------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}
.logo img { height: 42px; }

/* Groupe gauche : logo + certifs + tagline */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-certifs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.header-certif-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 860px) { .header-certifs { display: none; } }

.header-tagline {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
  white-space: nowrap;
  opacity: 0.82;
  margin-left: 18px;
}
@media (max-width: 860px) { .header-tagline { display: none; } }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.nav a:not(.btn) {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
  padding: 4px 8px;
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr;
  gap: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { margin-bottom: 14px; filter: brightness(1.1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 320px; }
.footer-contact { margin-top: 12px; font-size: 0.9rem; }
.footer-contact a { color: var(--blue); font-weight: 600; }
.footer-contact a:hover { color: #fff; }
.footer-address { margin-top: 6px; font-size: 0.85rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  margin-bottom: 11px;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blue); }
.certif-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.certif-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
}
.certif-badge i { color: var(--blue); }
.footer-legal-info { font-size: 0.78rem; opacity: 0.5; margin-top: 14px; line-height: 1.6; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.83rem;
  opacity: 0.5;
}
.footer-bottom a:hover { color: var(--blue); opacity: 1; }

/* --- Highlight texte -------------------------------------- */
.highlight {
  color: var(--blue);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%; height: 6px;
  background: var(--blue-light);
  z-index: -1;
  border-radius: 3px;
}

/* --- Utilitaires ------------------------------------------ */
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mb-4  { margin-bottom: 1rem; }

/* --- Animations ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}
.fade-up { animation: fadeUp 0.6s ease both; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 18px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
