/* ============================================================
   BILOG — Design System
   ============================================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Palette */
  --color-navy:       #1B2A4A;
  --color-navy-deep:  #111D35;
  --color-teal:       #0097A7;
  --color-teal-light: #E0F4F6;
  --color-coral:      #E8563A;
  --color-coral-hover:#D14428;
  --color-bg:         #F7F9FC;
  --color-white:      #FFFFFF;
  --color-text:       #1A1A2E;
  --color-text-light: #5A6378;
  --color-border:     #E2E6EE;
  --color-card-bg:    #FFFFFF;

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Type scale — base 17px minimum (jamais moins de 15px en --text-sm, 13px en --text-xs) */
  --text-xs:   13px;
  --text-sm:   15px;
  --text-base: 17px;
  --text-lg:   19px;
  --text-xl:   21px;
  --text-2xl:  26px;
  --text-3xl:  32px;
  --text-4xl:  38px;
  --text-5xl:  51px;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width:   1200px;
  --header-h:    72px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --shadow-card: 0 1px 3px rgba(27,42,74,0.06), 0 4px 12px rgba(27,42,74,0.04);
  --shadow-lift: 0 4px 16px rgba(27,42,74,0.10), 0 1px 4px rgba(27,42,74,0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.25s;
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--color-coral);
}


/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p + p { margin-top: var(--space-md); }

.text-light { color: var(--color-text-light); }
.text-teal  { color: var(--color-teal); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-4xl);
}

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

.section--tech {
  background-color: var(--color-teal-light);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 1.1rem 2.6rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-coral);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-coral-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

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

.btn--outline:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--navy:hover {
  background: var(--color-navy-deep);
  color: var(--color-white);
  transform: translateY(-1px);
}


/* --- Cards --- */
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}


/* --- Tags / Badges --- */
.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--color-teal-light);
  color: var(--color-teal);
  border-radius: var(--radius-sm);
}

.tag--sector {
  background: #EDE9FE;
  color: #6D28D9;
}

/* Variante pour le "nuage de tags" technologies de l'accueil : texte à
   17px minimum (pas de --text-sm/--text-xs sur du texte lisible), fond
   blanc + ombre pour ressortir sur le fond teal clair de .section--tech
   (un tag .tag classique, en teal clair, y serait invisible). */
.tag--tech {
  font-size: var(--text-base);
  font-weight: 500;
  padding: 0.5em 1.1em;
  border-radius: 100px;
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-card);
}


/* --- Hero --- */
.hero {
  padding: calc(var(--header-h) + var(--space-3xl)) 0 var(--space-4xl);
  background: var(--color-navy);
  color: var(--color-white);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
}

.hero .eyebrow {
  color: var(--color-teal);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}


/* --- Section headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-header p {
  color: var(--color-text-light);
  margin-top: var(--space-md);
  font-size: var(--text-lg);
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .container { padding-inline: var(--space-lg); }
  .section { padding-block: var(--space-3xl); }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}


/* --- Reveal on scroll (page d'accueil uniquement, voir main.js) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
