/* ============================================================
   KINETHIX — common.css
   Design system : variables, navigation, boutons, sections,
   bandeaux, pied de page, sélecteur de langue, utilitaires.
   Chargé sur toutes les pages, en plus du fichier de la page.
   ============================================================ */


/* ============================================================
   POLICES — servies par le LocalCDN Kinethix
   Outfit v15 (titres) · DM Sans v17 (corps)
   Seules les graisses réellement utilisées sont déclarées.
   font-display: swap → le texte reste lisible pendant le chargement.
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/outfit/outfit-v15-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/outfit/outfit-v15-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/outfit/outfit-v15-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/outfit/outfit-v15-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/outfit/outfit-v15-latin-800.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/dm-sans/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/dm-sans/dm-sans-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('https://localcdn.kinethix.com/fonts/dm-sans/dm-sans-v17-latin-italic.woff2') format('woff2');
}

/* --- Variables --- */
:root {
  --blue:        #1878E8;
  --blue-dark:   #1060c0;
  --blue-light:  #e8f1fd;
  --yellow:      #FFD000;
  --yellow-bg:   rgba(255, 208, 0, 0.12);
  --dark:        #0a0a0a;
  --dark-2:      #111111;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --bg:          #ffffff;
  --bg-section:  #f4f6fa;
  --bg-card:     #ffffff;
  --border:      #e5e7eb;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(24,120,232,0.10);
  --shadow-lg:   0 8px 32px rgba(24,120,232,0.15);
  --transition:  0.2s ease;
  --font-title:  'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:   'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-width:   1180px;
  --nav-height:  68px;
}

/* --- Reset & Base --- */
*, *::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(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

/* --- Conteneur --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-logo-text span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-cta {
  margin-left: 8px;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}

.btn-accent {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 600;
}

.btn-accent:hover {
  background: #e6bb00;
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,208,0,0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 16px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-dark {
  background: var(--dark-2);
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.section-tag-yellow {
  background: var(--yellow-bg);
  color: #a07800;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-dark .section-title { color: #ffffff; }

/* Petit trait jaune sous le titre de section — repris du brief d'origine,
   jamais posé jusqu'ici. */
.section-header .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 16px auto 0;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.footer-bottom a:hover { color: var(--blue); }

.footer-logo img { height: 32px; width: auto; }

/* ============================================================
   COOKIE NOTICE
   ============================================================ */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 620px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-notice p { flex: 1; line-height: 1.5; }

.cookie-notice a { color: var(--blue); }

.cookie-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.cookie-close:hover { color: #ffffff; }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center  { text-align: center; }
.text-blue    { color: var(--blue); }
.text-yellow  { color: var(--yellow); }
.text-muted   { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; gap: 40px; }
  .hero-visual { width: 160px; height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 28px; }
  .cta-banner { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-notice { flex-direction: column; align-items: flex-start; bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* ============================================================
   SÉLECTEUR DE LANGUE
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.lang-current:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.lang-current:disabled {
  cursor: default;
  opacity: 0.75;
}

.lang-current img {
  border-radius: 2px;
  display: block;
}

.lang-code { font-weight: 600; }

.lang-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.lang-current[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  z-index: 200;
  overflow: hidden;
  animation: fadeDown 0.15s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}

.lang-option:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.lang-option img { border-radius: 2px; }

/* Bouton supprimer cookies */
.footer-cookies-del {
  font-size: 13px;
  color: rgba(255,255,255,0.4) !important;
  transition: color var(--transition);
}

.footer-cookies-del:hover {
  color: var(--blue) !important;
}

@media (max-width: 640px) {
  .nav-right { gap: 8px; }
  .lang-code { display: none; }
}

/* ============================================================
   BANDEAUX (absence / message)
   ============================================================ */

.bandeaux { position: relative; z-index: 60; }

.bandeau {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 0.92rem;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
}

.bandeau .container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.bandeau-icone { flex-shrink: 0; font-size: 1.05rem; line-height: 1; }
.bandeau-texte { flex: 1; }
.bandeau-texte a { text-decoration: underline; color: inherit; }

.bandeau-info {
  background: var(--blue-light);
  color: #0f3f7d;
  border-bottom-color: rgba(24, 120, 232, 0.25);
}

.bandeau-attention {
  background: var(--yellow-bg);
  color: #6b4e00;
  border-bottom-color: rgba(255, 208, 0, 0.45);
}

.bandeau-important {
  background: #fdecec;
  color: #8a1c1c;
  border-bottom-color: rgba(190, 40, 40, 0.28);
}

.bandeau-fermer {
  flex-shrink: 0;
  background: none;
  border: 0;
  color: inherit;
  opacity: 0.55;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}

.bandeau-fermer:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }

@media (max-width: 640px) {
  .bandeau { font-size: 0.86rem; padding: 9px 14px; }
}

/* ============================================================
   LIEN D'ÉVITEMENT (accessibilité clavier)
   ============================================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}

.skip-link:focus { left: 0; }
