/* ============================================================
   Damien Rousson — Projet de reprise d'entreprise
   Feuille de style — mobile first, aucune dépendance externe
   ============================================================ */

:root {
  --color-ink: #1b2537;
  --color-ink-soft: #46536b;
  --color-accent: #0f6bd7;
  --color-accent-dark: #0b54aa;
  --color-bg: #ffffff;
  --color-bg-alt: #f3f6fb;
  --color-line: #dde4ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 37, 55, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75em;
  font-weight: 700;
}

h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }

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

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
  gap: 0.5rem;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  text-decoration: none;
}

.main-nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.main-nav a:hover { color: var(--color-accent); }

.nav-cta {
  color: var(--color-accent) !important;
}

/* Menu burger (mobile, sans JavaScript) */

.nav-toggle { display: none; }

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.main-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
}

.main-nav a { padding: 0.55rem 0.25rem; }

.nav-toggle:checked ~ .main-nav { display: flex; }

@media (min-width: 800px) {
  .nav-toggle-label { display: none; }
  .main-nav {
    display: flex !important;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 0;
  }
}

/* ---------- Héro ---------- */

.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(15, 107, 215, 0.45), transparent 60%),
    linear-gradient(160deg, #16233c 0%, #1d3358 55%, #0f6bd7 130%);
  color: #fff;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 3fr 2fr; }
}

.hero-text { max-width: 640px; }

.hero-photo {
  justify-self: center;
  max-width: 340px;
  width: 100%;
}

@media (min-width: 860px) {
  .hero-photo { max-width: 420px; justify-self: end; }
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9cc4f5;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #d7e3f5;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 8vw, 5rem) 0; }

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

.section-intro {
  max-width: 680px;
  color: var(--color-ink-soft);
  font-size: 1.1rem;
  margin-bottom: 2.25rem;
}

.note {
  color: var(--color-ink-soft);
  font-size: 0.97rem;
  margin-top: 2rem;
}

/* ---------- Cartes ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon { font-size: 1.9rem; margin-bottom: 0.75rem; }

.card p { margin-bottom: 0; color: var(--color-ink-soft); }

/* ---------- Parcours ---------- */

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 820px) {
  .split { grid-template-columns: 3fr 2fr; }
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.facts li {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  box-shadow: var(--shadow);
}

.fact-figure {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-accent);
  min-width: 3rem;
}

.fact-label { color: var(--color-ink-soft); font-weight: 600; }

/* ---------- Critères ---------- */

.criteria-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
}

.criterion {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
}

.criterion h3 { margin-bottom: 0.4rem; }
.criterion p { margin-bottom: 0; color: var(--color-ink-soft); }

/* ---------- Photos de section ---------- */

.section-photo {
  margin: 2.5rem 0 0;
}

.section-photo img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.section-photo figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  text-align: center;
}

/* ---------- Instagram ---------- */

.insta-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 860px) {
  .insta-grid { grid-template-columns: 1fr 1fr; }
}

.insta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.insta-icon {
  color: var(--color-accent);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 107, 215, 0.12), rgba(15, 107, 215, 0.04));
  flex-shrink: 0;
}

.insta-card h3 { margin-bottom: 0.3rem; }
.insta-card p { color: var(--color-ink-soft); }

/* ---------- Calendly ---------- */

.calendly-inline-widget {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: #16233c;
  color: #b9c6da;
  padding: 2rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p { margin: 0; }

.site-footer a {
  color: #d7e3f5;
  text-decoration: none;
  margin-left: 1.25rem;
}
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
