/* --- PALETTE PASTEL CONTRASTÉE, FOND GRIS --- */
:root {
  --bg: #e5e6ea;
  /* fond gris clair */
  --bg-soft: #f2f3f7;
  --panel: #ffffff;
  --border: rgba(0, 0, 0, 0.12);

  --text: #252733;
  --muted: #6a6d78;

  --brand: #63a8ff;
  /* bleu pastel contrasté */
  --brand-2: #7ddf7a;
  /* vert pastel vif */
  --accent-yellow: #f6e05e;
  /* jaune pastel lisible */

  --radius: 16px;
  --shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

/* RESET DE BASE */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}

/* CONTENEUR GÉNÉRAL */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* ─────────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 246, 250, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text);
}

.logo .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* image de la caméra dans le mark */
.logo .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ou "contain" si tu veux garder des marges */
  display: block;
}

/* Liste de navigation */
.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.18s ease-out;
}

.nav ul li a:hover::after {
  width: 100%;
}

.nav a.btn {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Bouton burger (ton HTML ne l’a pas encore, mais on garde un style neutre) */
.nav-toggle {
  display: none;
  /* par défaut caché */
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  overflow: clip;
  background: radial-gradient(circle at top left, #fdfdfd 0, var(--bg-soft) 45%, var(--bg) 100%);
}

.hero .bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero.jpg') center/cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.15;
  /* léger rappel de l'image sans assombrir */
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 20% 10%, rgba(99, 168, 255, 0.35), transparent 55%),
    radial-gradient(60% 60% at 80% 40%, rgba(125, 223, 122, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(229, 230, 234, 0.9));
}

.hero .content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 96px 0;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin: 0 0 10px;
  color: #1f2027;
}

.hero p.tag {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
}

.lead {
  color: var(--muted);
  max-width: 70ch;
}

/* CTA principal */
.cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

/* ─────────────────────────────────────────────
   SECTIONS GÉNÉRALES
   ───────────────────────────────────────────── */
section {
  scroll-margin-top: 80px;
  padding: 72px 0;
}

h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 18px;
  color: #23242b;
}

/* Grilles réutilisables */
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

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

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

/* ─────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────── */
.service {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.service h3 {
  margin-top: 8px;
  margin-bottom: 6px;
}

/* ─────────────────────────────────────────────
   PORTFOLIO (si utilisé dans tes autres pages)
   ───────────────────────────────────────────── */
.portfolio {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

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

.thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #d9dbe2;
  border: 1px solid var(--border);
  cursor: pointer;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb .badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffffff;
}

/* ─────────────────────────────────────────────
   MODAL VIDÉO
   ───────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal .box {
  width: min(1000px, 92vw);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-weight: 900;
  cursor: pointer;
}

/* ─────────────────────────────────────────────
   FORMULAIRE CONTACT
   ───────────────────────────────────────────── */
form.card {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.row {
  display: grid;
  gap: 12px;
}

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

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f9fafb;
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* Boutons */
.btn {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
}

/* Notices (messages PHP) */
.muted {
  color: var(--muted);
}

.notice {
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
}

.notice.ok {
  background: rgba(125, 223, 122, 0.12);
  border-color: rgba(34, 197, 94, 0.5);
}

.notice.err {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.5);
}

/* ─────────────────────────────────────────────
   PIED DE PAGE
   ───────────────────────────────────────────── */
footer {
  padding: 36px 0;
  color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: #f3f4f7;
}

/* ─────────────────────────────────────────────
   RESPONSIVE : MENU VERTICAL SUR SMARTPHONE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: center;
    /* centre le logo ET le menu */
    justify-content: center;
    gap: 14px;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    /* centre la colonne */
    justify-content: center;
    gap: 12px;
    width: auto;
    /* plus de 100% */
    padding: 12px 20px;
    border-radius: 22px;
    margin: 0 auto;
    /* centre l’ensemble */
  }

  .nav ul li {
    width: 100%;
    text-align: center;
  }

  .nav ul li a {
    padding: 10px 0;
    width: 100%;
    text-align: center;
    border: none;
  }
}

/* Icône plus grande dans une carte .service */
.service>div:first-child {
  font-size: 50px;
  /* agrandit l’emoji */
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Effet visuel optionnel */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.service:hover>div:first-child {
  transform: scale(1.08);
}

/* HEADER AMÉLIORÉ — PLUS DE PRÉSENCE VISUELLE */
.nav {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85),
      rgba(240, 242, 248, 0.85));
  backdrop-filter: blur(14px) saturate(150%);
}

/* Amélioration de l’alignement du logo + plus d’espace */
.nav-inner {
  padding: 16px 0;
}

/* Mettre plus en valeur l'identité */
.logo {
  gap: 14px;
}

.logo span {
  font-size: 20px;
  /* plus lisible */
  font-weight: 800;
  /* plus premium */
  letter-spacing: 0.2px;
  color: #1b1c22;
}

/* Icone plus grande et mieux intégrée */
.logo .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.logo .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Amélioration des liens de navigation */
.nav ul li a {
  font-size: 18px;
  font-weight: 600;
  color: #2a2c36;
  opacity: 0.85;
  transition: opacity .15s, transform .15s;
}

.nav ul li a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ───────── HEADER STYLE APPLE / PASTEL PRO ───────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.98),
      rgba(243, 244, 248, 0.96));
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 22px 40px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Logo + nom plus « produit Apple » */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo pour vrais modif */
.logo .mark {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 0%,
      #ffffff,
      rgba(240, 249, 255, 0.3));
}

.logo .mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Titre type produit / marque */
.logo span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111827;
}

/* Conteneur des liens du menu */
.nav ul {
  display: flex;
  gap: 25px;
  background: rgba(255, 255, 255, 0.65);
  padding: 6px 20px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Liens du menu */
.nav ul li a {
  color: #3b4455;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 20px;
  transition: 0.25s ease;
}

.nav ul li a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Classe optionnelle pour mettre en avant la section active */
.nav ul li a.active {
  background: radial-gradient(circle at top left,
      rgba(99, 168, 255, 0.26),
      rgba(125, 223, 122, 0.24));
  color: #0f172a;
}

/* ─────────────────────────────────────────────
   MENU AUTO-HIDE AU SCROLL (SMARTPHONE)
   ───────────────────────────────────────────── */
@media (max-width: 768px) {

  .nav {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
  }

  /* Menu caché */
  .nav.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
  }

  /* Menu visible */
  .nav.nav-visible {
    transform: translateY(0);
  }
}