/* ============================================================
   style.css — Création Conseil / Jonathan Martel
   Site vitrine one-page, HTML/CSS/JS vanilla
   Optik 360 — 2026
   ============================================================ */


/* ── VARIABLES GLOBALES ──────────────────────────────────── */

:root {
  /* Palette */
  --cream:  #F3EFE8;    /* fond sections alternées */
  --cream2: #FAF8F3;    /* fond principal */
  --ink:    #1A1714;    /* texte principal / fond sombre */
  --blue:   #4A8EC5;    /* couleur accent */
  --blue-d: #2D6FA0;    /* accent foncé (hover) */
  --gray:   #7A756F;    /* texte secondaire */
  --div:    #D6D1C8;    /* bordures et séparateurs */

  /* Typographie */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --sans:   'Jost', sans-serif;
}


/* ── RESET & BASE ────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream2);
  color: var(--ink);
  overflow-x: hidden;
}


/* ── NAVIGATION ──────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  background: rgba(243, 239, 232, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--div);
  transition: padding 0.3s;
}

/* Logo — partie gauche de la nav */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  cursor: default;
}

.logo-main {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.logo-jo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-plus {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--blue);
  margin: 0 0.1rem;
}

.logo-mac {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--gray);
}

.logo-sub {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0;
}

/* Partie droite de la nav */
.nav-r {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* Sélecteur de langue FR / EN */
.lang {
  display: flex;
  border: 1px solid var(--div);
  border-radius: 1px;
  overflow: hidden;
}

.lang button {
  padding: 0.38rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.2s;
}

/* Langue active */
.lang button.on {
  background: var(--ink);
  color: var(--cream2);
}


/* ── HERO ────────────────────────────────────────────────── */

#hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
  overflow: hidden;
}

/* Colonne gauche — texte */
.hero-l {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  padding-top: calc(4rem + 5rem); /* 4rem padding + 5rem pour la nav fixe */
  position: relative;
}

.hero-over {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-over::before {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
}

h1.hero-h {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h1.hero-h em {
  font-style: normal;
  font-weight: 600;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero-body {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--ink);
  max-width: 460px;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}


/* Colonne droite — photo */
.hero-r {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-r img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Dégradé gauche pour fondre la photo dans le fond */
.hero-r::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream2) 0%, transparent 12%);
  pointer-events: none;
}


/* ── BOUTONS ─────────────────────────────────────────────── */

/* Bouton principal — fond sombre */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: var(--ink);
  color: var(--cream2);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s;
}

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

/* Variante inversée — utilisée sur fond sombre (section contact) */
.btn.inv {
  background: transparent;
  color: var(--cream2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn.inv:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Lien téléphone discret */
.tel-link {
  font-size: 0.82rem;
  color: var(--gray);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.tel-link:hover {
  color: var(--blue);
}


/* ── SECTIONS — ÉLÉMENTS PARTAGÉS ───────────────────────── */

section {
  padding: 5.5rem 4rem;
}

.inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Label de section — ex: "+ SERVICES" */
.s-label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.s-label::before {
  content: '+';
  font-size: 1.15rem;
  font-weight: 300;
}

/* Titre de section */
.s-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 2.75rem;
}

.s-title em {
  font-style: italic;
  font-weight: 300;
}

.divider {
  width: 2.5rem;
  height: 1px;
  background: var(--blue);
  margin: 2rem 0;
}


/* ── SECTION EXPERTISE ───────────────────────────────────── */

#expertise {
  background: var(--cream);
  border-top: 1px solid var(--div);
  border-bottom: 1px solid var(--div);
}

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

.exp-text {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--ink);
  font-weight: 300;
}

/* Grille des 4 piliers */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pillar {
  padding: 1.35rem;
  border: 1px solid var(--div);
  background: var(--cream2);
}

.p-icon {
  font-size: 1.55rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.p-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.p-text {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
}


/* ── SECTION SERVICES ────────────────────────────────────── */

#services {
  background: var(--cream2);
}

/* Grille 2×2 avec bordures intérieures */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--div);
}

.svc {
  padding: 2.5rem;
  border-right: 1px solid var(--div);
  border-bottom: 1px solid var(--div);
  position: relative;
  transition: background 0.2s;
}

.svc:hover {
  background: rgba(74, 142, 197, 0.06);
}

/* Supprimer la bordure droite des éléments pairs (colonne droite) */
.svc:nth-child(2n) {
  border-right: none;
}

/* Supprimer la bordure basse de la dernière rangée */
.svc:nth-child(3),
.svc:nth-child(4) {
  border-bottom: none;
}

/* Icône "+" en haut à droite de chaque service */
.svc-plus {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  font-size: 1.4rem;
  color: var(--div);
  font-weight: 100;
  transition: color 0.2s;
}

.svc:hover .svc-plus {
  color: var(--blue);
}

.svc-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.svc-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.svc-desc {
  font-size: 0.93rem;
  color: var(--gray);
  line-height: 1.62;
  font-weight: 300;
}


/* ── SECTION CONTEXTES ───────────────────────────────────── */

#contexts {
  background: var(--cream);
  border-top: 1px solid var(--div);
}

.ctx-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.ctx-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ctx-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 300;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--div);
}

.ctx-list li:first-child {
  border-top: 1px solid var(--div);
}

.ctx-list li::before {
  content: '+';
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-top: 0.15rem;
}


/* ── SECTION APPROCHE ────────────────────────────────────── */

/* Fond sombre — inverser les couleurs de texte */
#approach {
  background: var(--ink);
  color: var(--cream2);
}

#approach .s-label {
  color: rgba(74, 142, 197, 0.85);
}

#approach .s-title {
  color: var(--cream2);
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.app-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.app-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
}

/* Bordure subtile sur la photo */
.app-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  z-index: 1;
  pointer-events: none;
}

.app-text {
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(243, 239, 232, 0.82);
  font-weight: 300;
  margin-bottom: 1.75rem;
}

/* Citation mise en valeur avec bordure gauche bleue */
.app-quote {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--cream2);
  line-height: 1.65;
  border-left: 2px solid var(--blue);
  padding-left: 1.5rem;
}


/* ── SECTION PARCOURS ────────────────────────────────────── */

#background {
  background: var(--cream2);
  border-bottom: 1px solid var(--div);
}

.bg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.bg-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 300;
}

/* Chiffres clés */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-n {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.stat-l {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 300;
  margin-top: 0.2rem;
}

/* Timeline verticale */
.timeline {
  display: flex;
  flex-direction: column;
}

.tl-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

/* Ligne verticale entre les points de la timeline */
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.44rem;
  top: 1.1rem;
  bottom: 0;
  width: 1px;
  background: var(--div);
}

.tl-dot {
  width: 0.95rem;
  height: 0.95rem;
  border: 1px solid var(--blue);
  background: var(--cream2);
  flex-shrink: 0;
  margin-top: 0.2rem;
  position: relative;
  z-index: 1;
}

.tl-role {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.tl-org {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 400;
}


/* ── SECTION DIFFÉRENCIATION ─────────────────────────────── */

#diff {
  background: var(--cream);
  border-top: 1px solid var(--div);
  border-bottom: 1px solid var(--div);
}

.diff-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.diff-pts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diff-pt {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: var(--cream2);
  border: 1px solid var(--div);
}

.diff-ic {
  color: var(--blue);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.diff-t {
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--ink);
  font-weight: 300;
}


/* ── SECTION CONTACT ─────────────────────────────────────── */

#contact {
  background: var(--cream2);
}

.ctt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.ctt-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 300;
  margin-bottom: 2rem;
}

.ctt-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ctt-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.ctt-lbl {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  width: 60px;
  flex-shrink: 0;
}

.ctt-item a {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--div);
  transition: color 0.2s, border-color 0.2s;
}

.ctt-item a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* Encart CTA sombre (côté droit) */
.ctt-box {
  background: var(--ink);
  color: var(--cream2);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.ctt-box .s-label {
  color: rgba(74, 142, 197, 0.8);
}

.ctt-box-title {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream2);
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.ctt-box-body {
  font-size: 0.97rem;
  color: rgba(243, 239, 232, 0.72);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Décoration "+" en filigrane dans l'encart */
.ctt-deco {
  position: absolute;
  bottom: -4rem;
  right: -2rem;
  font-size: 20rem;
  font-weight: 100;
  color: var(--blue);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}


/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  background: var(--cream);
  border-top: 1px solid var(--div);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo dans le footer */
.ft-logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

/* Nom de marque à côté du logo */
.ft-brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.ft-linkedin {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.ft-linkedin:hover {
  opacity: 1;
}

.ft-copy {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 300;
}


/* ── ANIMATIONS ──────────────────────────────────────────── */

/* Entrée du hero au chargement — chaque enfant fade depuis le bas */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-l > * {
  animation: fadeUp 0.7s ease both;
}

.hero-l > *:nth-child(1) { animation-delay: 0.10s; }
.hero-l > *:nth-child(2) { animation-delay: 0.25s; }
.hero-l > *:nth-child(3) { animation-delay: 0.38s; }
.hero-l > *:nth-child(4) { animation-delay: 0.50s; }
.hero-l > *:nth-child(5) { animation-delay: 0.60s; }

.hero-r {
  animation: fadeUp 0.9s ease 0.25s both;
}

/* Éléments révélés au scroll via IntersectionObserver (script.js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.vis {
  opacity: 1;
  transform: none;
}


/* ── RESPONSIVE — 13" MacBook (~1280 × 800px) ───────────── */

@media (max-width: 1300px) {
  nav {
    padding: 1rem 2.5rem;
  }

  .hero-l {
    padding: 2.5rem 2.5rem 2rem;
    padding-top: calc(2.5rem + 4rem);
  }

  h1.hero-h {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.75rem;
  }

  .hero-over { margin-bottom: 0.75rem; }
  .hero-tag  { margin-bottom: 1rem; }

  .hero-body {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  section {
    padding: 5rem 2.5rem;
  }
}


/* ── RESPONSIVE — Viewport court (Chrome avec barres d'outils) */

@media (max-height: 780px) {
  .hero-l {
    justify-content: flex-start;
    padding-top: calc(1.5rem + 4rem);
    padding-bottom: 1.5rem;
  }

  h1.hero-h {
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    margin-bottom: 0.65rem;
  }

  .hero-over { margin-bottom: 0.65rem; }
  .hero-tag  { margin-bottom: 0.9rem; }

  .hero-body {
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
  }
}

@media (max-height: 680px) {
  .hero-l {
    padding-top: calc(1rem + 3.5rem);
  }

  h1.hero-h {
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    margin-bottom: 0.5rem;
  }

  .hero-over { margin-bottom: 0.5rem; }
  .hero-tag  { margin-bottom: 0.7rem; }
  .hero-body { margin-bottom: 0.9rem; }
}


/* ── RESPONSIVE — Mobile / Tablette (<860px) ────────────── */

@media (max-width: 860px) {
  nav {
    padding: 1.1rem 1.5rem;
  }

  /* Masquer le lien nav sur mobile */
  .nav-link {
    display: none;
  }

  section {
    padding: 4rem 1.5rem;
  }

  /* Hero en colonne — photo au dessus, texte en dessous */
  #hero {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 55vw auto;
  }

  .hero-r {
    order: -1;
    height: 55vw;
  }

  .hero-r img {
    position: absolute;
  }

  .hero-l {
    padding: 2rem 1.5rem 3rem;
    padding-top: 4rem;
  }


  /* Passer toutes les grilles 2 colonnes en 1 colonne */
  .exp-grid,
  .app-layout,
  .bg-layout,
  .diff-layout,
  .ctt-layout {
    grid-template-columns: 1fr;
  }

  .ctx-layout {
    grid-template-columns: 1fr;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }

  /* Réinitialiser les bordures de la grille services en mobile */
  .svc:nth-child(2n) {
    border-right: none;
  }

  .svc:nth-child(3),
  .svc:nth-child(4) {
    border-bottom: 1px solid var(--div);
  }

  .svc:last-child {
    border-bottom: none;
  }

  .pillars {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem;
  }
}
