/*
 * LATRACTION — shared.css
 * Design tokens & composants partagés extraits du site existant
 * À importer en premier sur toutes les pages /outils/
 * =========================================================
 */

/* ─── 1. TOKENS ──────────────────────────────────────────── */
:root {
  /* Couleurs principales */
  --primary:        #2563eb;
  --primary-dark:   #1e40af;
  --secondary:      #10b981;
  --accent:         #f59e0b;

  /* Texte */
  --text-dark:      #1f2937;
  --text-light:     #6b7280;
  --text-white:     #ffffff;

  /* Fonds */
  --bg-white:       #ffffff;
  --bg-light:       #f9fafb;
  --bg-section:     #f3f4f6;

  /* Bordures */
  --border:         #e5e7eb;

  /* Ombres */
  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.10);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.10);

  /* Typographie */
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size:  16px;
  --line-height:1.6;

  /* Rayons */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  /* Espacements section */
  --section-py: 80px;

  /* Container */
  --container-max: 1200px;
  --container-px:  20px;
}

/* ─── 2. RESET & BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); transition: color .2s; }
a:hover { color: var(--primary-dark); }

/* ─── 3. LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ─── 4. NAVBAR ──────────────────────────────────────────── */
.navbar {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  min-width: 200px;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text { display: flex; flex-direction: column; }

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.logo-text .tagline {
  font-size: .8rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.nav-menu a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

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

/* ─── 5. BREADCRUMB ──────────────────────────────────────── */
.breadcrumb {
  padding: .75rem 0;
  font-size: .85rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb span { margin: 0 .35rem; }

/* ─── 6. BOUTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .875rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--border);
  transform: translateY(-1px);
}

/* ─── 7. SECTION HEADER ──────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: .75rem auto 0;
  border-radius: 2px;
}

/* ─── 8. CARDS ───────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.25);
}

/* ─── 9. FORMULAIRES ─────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ─── 10. FOOTER ─────────────────────────────────────────── */
.footer {
  background: #1d1d1f;
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer-section p,
.footer-section li {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
}

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

.footer-section a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}

.footer-section a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ─── 11. WHATSAPP FLOAT ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  transition: all .2s;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

.wa-float svg { width: 26px; height: 26px; fill: white !important; }

/* ─── 12. RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    gap: 1rem;
    z-index: 999;
  }
  .menu-toggle { display: flex; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-content { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
}
