/* =================================================================
   [MON NOM] — Landing page Consultant IA & Automatisation
   Direction artistique :
   - Palette chaleureuse et rassurante (crème, encre profonde),
     accent terracotta + secondaire bleu-canard pour la confiance.
   - Titres en Fraunces (serif distinctif), corps en Work Sans.
   - Animations d'apparition au scroll discrètes (classe .reveal).
   ================================================================= */

/* ---------- Variables ---------- */
:root {
  /* Couleurs */
  --cream: #faf6ef;        /* fond principal */
  --cream-2: #f2ebdf;      /* sections alternées */
  --ink: #1f2421;          /* texte principal (encre verte/sombre) */
  --ink-soft: #4a514c;     /* texte secondaire */
  --terracotta: #d65a31;   /* accent dominant */
  --terracotta-dark: #b9461f;
  --teal: #155e63;         /* accent secondaire (confiance) */
  --teal-dark: #0f4a4e;
  --card: #ffffff;
  --border: #e6ddcc;
  --shadow: 0 18px 40px -22px rgba(31, 36, 33, 0.4);

  /* Typo */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: clamp(1.2rem, 4vw, 2rem);
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* compense le header sticky lors des ancres */
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

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

.accent {
  color: var(--terracotta);
}

/* En-tête de section */
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.section__head--left {
  margin-inline: 0;
  text-align: left;
}
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}
.section__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}
.section__lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(214, 90, 49, 0.8);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}
.btn--block {
  width: 100%;
}

/* Focus visible clavier (accessibilité) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =================================================================
   1. HEADER
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px -16px rgba(31, 36, 33, 0.6);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.logo:hover {
  text-decoration: none;
}
.logo__tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 2px;
}

.nav__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav__menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav__menu a:hover {
  color: var(--terracotta);
  text-decoration: none;
}
.nav__cta-item a {
  color: #fff;
}
.nav__cta-item a:hover {
  color: #fff;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 60;
}
.nav__burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.nav__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* =================================================================
   2. HÉRO
   ================================================================= */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(21, 94, 99, 0.1), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(214, 90, 49, 0.1), transparent 60%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  letter-spacing: -0.01em;
}
.hero__subtitle {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Visuel héro : "noyau IA" entouré de cartes flottantes */
.hero__visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.orbit-core {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.orbit-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.orbit-card--1 { top: 2%;   left: -6%;  animation-delay: 0s; }
.orbit-card--2 { top: 22%;  right: -8%; animation-delay: 1s; }
.orbit-card--3 { bottom: 16%; left: -2%; animation-delay: 2s; }
.orbit-card--4 { bottom: 2%; right: 2%;  animation-delay: 3s; color: var(--terracotta); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* =================================================================
   3. LE PROBLÈME
   ================================================================= */
.problem {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.problem__quote {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.problem__quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.4;
}
.problem__quote strong {
  color: #ffb59a;
  font-weight: 600;
}

/* =================================================================
   4. SERVICES
   ================================================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}
.card__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.card__text {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Carte mise en avant : pleine largeur en tête de grille + style accentué */
.card--featured {
  background: linear-gradient(160deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-color: transparent;
  grid-column: 1 / -1;
}
.card--featured .card__title {
  color: #fff;
}
.card--featured .card__text {
  color: rgba(255, 255, 255, 0.9);
}
.card__badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* =================================================================
   4 bis. VITRINE — CE QUE JE PEUX AUTOMATISER
   ================================================================= */
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.showcase__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.showcase__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.showcase__icon {
  font-size: 1.9rem;
  display: block;
  margin-bottom: 0.7rem;
}
.showcase__item h3 {
  font-size: 1.18rem;
  margin-bottom: 0.45rem;
}
.showcase__item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* =================================================================
   5. POUR QUI ?
   ================================================================= */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.audience__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.audience__emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.6rem;
}
.audience__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.audience__item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* =================================================================
   6. PROCESS
   ================================================================= */
.process__steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.process__step {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.process__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}
.process__step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.process__step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* =================================================================
   7. À PROPOS
   ================================================================= */
.about__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about__visual {
  display: grid;
  place-items: center;
}
.about__photo {
  width: min(300px, 100%);
  height: auto;       /* annule l'attribut HTML height="400" qui cassait le ratio */
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%; /* photo de profil ronde */
  /* Cadre blanc + ombre douce (anneau accent retiré pour plus de discrétion) */
  border: 6px solid var(--card);
  box-shadow: var(--shadow);
}
.about__content p {
  margin-top: 1rem;
  color: var(--ink-soft);
}
.about__content strong {
  color: var(--ink);
}

/* =================================================================
   8. CONTACT
   ================================================================= */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__direct {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
  font-size: 1.05rem;
}
.contact__direct a {
  color: var(--ink);
  font-weight: 500;
}

.contact__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.field label span[aria-hidden] {
  color: var(--terracotta);
}
.field__optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
}
.field textarea {
  resize: vertical;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #c0392b;
  background: #fdf0ee;
}
.field__error {
  display: block;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  min-height: 1em;
}

.form__status {
  margin-top: 1rem;
  font-weight: 500;
  text-align: center;
}
.form__status.is-success {
  color: var(--teal);
}
.form__status.is-error {
  color: #c0392b;
}

/* =================================================================
   9. FOOTER
   ================================================================= */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer__brand {
  display: flex;
  flex-direction: column;
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.footer__role {
  font-size: 0.85rem;
  color: rgba(250, 246, 239, 0.7);
}
.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.footer__links a {
  color: var(--cream);
  font-size: 0.95rem;
}
.footer__copy {
  width: 100%;
  font-size: 0.85rem;
  color: rgba(250, 246, 239, 0.6);
  border-top: 1px solid rgba(250, 246, 239, 0.15);
  padding-top: 1.2rem;
}

/* =================================================================
   ANIMATIONS AU SCROLL (.reveal)
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =================================================================
   SKIP LINK (accessibilité clavier)
   ================================================================= */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  text-decoration: none;
}

/* =================================================================
   NAV — état actif (scrollspy)
   ================================================================= */
.nav__menu a.is-active {
  color: var(--terracotta);
}
/* on n'applique pas le surlignage au bouton CTA */
.nav__cta-item a.is-active {
  color: #fff;
}

/* =================================================================
   BANDEAU CTA INTERMÉDIAIRE
   ================================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-band__inner {
  text-align: center;
  max-width: 720px;
}
.cta-band__title {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.cta-band__text {
  margin: 1rem auto 1.8rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}
/* Sur ce fond terracotta, le bouton primaire passe en blanc pour contraster */
.cta-band .btn--primary {
  background: #fff;
  color: var(--terracotta-dark);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.45);
}
.cta-band .btn--primary:hover {
  background: var(--cream);
}

/* =================================================================
   À PROPOS — crédibilité + LinkedIn
   ================================================================= */
.about__cred {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}
.about__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
  font-weight: 600;
  color: var(--teal);
}
.about__linkedin:hover {
  color: var(--teal-dark);
  text-decoration: none;
}
.about__linkedin svg {
  flex-shrink: 0;
}

/* =================================================================
   PAGE MENTIONS LÉGALES
   ================================================================= */
.legal__inner {
  max-width: 760px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal p {
  color: var(--ink-soft);
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  /* Bulle héro : on abandonne le positionnement absolu (risque de chevauchement)
     au profit de chips alignées, lisibles et sans collision. */
  .hero__visual {
    order: -1;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  .orbit-core {
    display: none; /* le gros cercle "IA" n'apporte rien sur mobile */
  }
  .orbit-card {
    position: static;
    animation: none;
  }
  .hero__subtitle {
    max-width: none;
  }
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }
  .about__visual {
    order: -1;
  }

  /* Menu mobile */
  .nav__burger {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2rem;
    background: var(--cream);
    box-shadow: -10px 0 40px -20px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__menu.is-open {
    transform: translateX(0);
  }
  .nav__menu a {
    font-size: 1.15rem;
  }
}

/* Respect des préférences de mouvement réduit (accessibilité) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .orbit-card {
    animation: none;
  }
}
