/* ═══════════════════════════════════════════
   CODEPP — style.css
   ═══════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  /* Couleurs */
  --blue:        #1D4ED8;
  --blue-dark:   #1a44c4;
  --blue-glow:   rgba(29, 78, 216, 0.15);
  --gold:        #FFCB47;
  --snow:        #F9F9F9;
  --text:        #1E1E1E;
  --secondary:   #393D3F;
  --white:       #ffffff;
  --border:      #e4e4e4;

  /* Espacements */
  --space-lg:   52px;
  --space-xl:   80px;
  --space-2xl:  100px;

  /* Arrondis */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-pill: 100px;

  /* Layout */
  --nav-h:        70px;
  --max-content:  1100px;
  --max-narrow:   760px;
  --max-contact:  980px;

  /* Typographies */
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Couleurs fonctionnelles */
  --color-error:   #f87171;
  --color-success: #15803d;

  /* Ombres récurrentes */
  --shadow-blue-sm:    0 4px 18px rgba(29, 78, 216, 0.22);
  --shadow-blue-md:    0 6px 24px rgba(29, 78, 216, 0.34);
  --shadow-gold-sm:    0 4px 18px rgba(255, 203, 71, 0.22);
  --shadow-gold-md:    0 6px 24px rgba(255, 203, 71, 0.34);
  --shadow-success-sm: 0 4px 18px rgba(21, 128, 61, 0.22);

  /* Teinte bleue légère (fonds interactifs) */
  --blue-tint: rgba(29, 78, 216, 0.08);

  /* Layouts additionnels */
  --max-apropos: 1060px;

  /* Transitions */
  --ease: 0.2s ease;
}


/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
ul { list-style: none; }

body {
  font-family: var(--font-sans);
  background: var(--snow);
  color: var(--secondary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s ease var(--reveal-delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-lg);
  transition: box-shadow var(--ease);
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-weight: 800; font-size: 18px;
  color: var(--blue); letter-spacing: -0.5px;
}

.nav-phone {
  display: flex; align-items: center; gap: 9px;
  background: var(--blue); color: white;
  text-decoration: none; white-space: nowrap;
  padding: 11px 22px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  transition: filter var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: var(--shadow-blue-sm);
}
.nav-phone:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue-md);
}


/* ─── HERO ─── */
#accueil {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) var(--space-lg) 72px;
  position: relative;
  overflow: hidden;
}

/* Halo bleu desktop */
#accueil::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 65% 70% at 75% 50%, rgba(29, 78, 216, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-content); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center;
  position: relative; z-index: 1;
}

.hero-tag { margin-bottom: 24px; }

.hero-h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800; color: var(--text);
  line-height: 1.12; letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400; color: var(--secondary);
  opacity: 0.7; line-height: 1.75;
  margin-bottom: 40px;
  max-width: 48ch;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* Visual desktop */
.hero-visual {
  display: flex; align-items: center; justify-content: center;
}
.hero-icon-bg {
  width: clamp(240px, 36vw, 440px); height: auto;
  opacity: 0.1; user-select: none; pointer-events: none;
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.10; transform: scale(1); }
  50%       { opacity: 0.15; transform: scale(1.04); }
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  color: var(--secondary); opacity: 0.25;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ─── Boutons ─── */
.btn {
  display: inline-flex; align-items: center;
  padding: 14px 30px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: transform var(--ease), filter var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-blue {
  background: var(--blue); color: var(--white);
  box-shadow: var(--shadow-blue-sm);
}
.btn-blue:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-blue-md);
}

.btn-gold {
  background: var(--gold); color: var(--text); font-weight: 700;
  box-shadow: var(--shadow-gold-sm);
}
.btn-gold:hover {
  filter: brightness(1.04);
  box-shadow: var(--shadow-gold-md);
}


/* ─── Section — éléments partagés ─── */
.section-label,
.process-title,
.hero-tag,
.ap-role {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 2px;
  color: var(--blue); font-weight: 800;
  text-transform: uppercase; opacity: 0.9;
}
.section-label { margin-bottom: 12px; }
.process-title  { margin-bottom: 20px; }

.section-title {
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 800; color: var(--text);
  letter-spacing: -1px; line-height: 1.15;
}


/* ─── SERVICES ─── */
#services {
  background: var(--white);
  padding: var(--space-2xl) var(--space-lg);
}

.services-wrap { max-width: var(--max-narrow); margin: 0 auto; }
.services-header { margin-bottom: 56px; }
.services-list { display: flex; flex-direction: column; }

.s-item { border-top: 1px solid var(--border); }
.s-item:last-child { border-bottom: 1px solid var(--border); }

.s-head {
  display: flex; align-items: center; gap: 20px;
  padding: 26px 0; cursor: pointer; user-select: none;
  border-radius: var(--radius-sm);
}
.s-head:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.s-num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--blue);
  font-weight: 800; opacity: 0.55; min-width: 24px;
}

.s-name {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700; color: var(--secondary); flex: 1;
  transition: color var(--ease);
}
.s-item.open .s-name { color: var(--blue); }

.s-tog {
  width: 30px; height: 30px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.32s ease;
}
.s-tog svg { width: 12px; height: 12px; }
.s-tog path { stroke: var(--secondary); transition: stroke 0.25s; }
.s-item.open .s-tog {
  background: var(--blue); border-color: var(--blue);
  transform: rotate(45deg);
}
.s-item.open .s-tog path { stroke: white; }

.s-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.s-body-in { padding: 0 0 28px 44px; }

.s-desc {
  font-size: 16px; line-height: 1.85;
  color: var(--secondary); opacity: 0.8;
  max-width: 560px;
}


/* Montage process */
.montage-process {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 24px;
}
.process-steps { display: flex; flex-direction: column; gap: 16px; }
.process-step { display: flex; gap: 16px; align-items: flex-start; }

.ps-num {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--blue); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.ps-text {
  display: flex; flex-direction: column; gap: 3px; padding-top: 2px;
}
.ps-text strong { font-size: 14px; font-weight: 700; color: var(--text); }
.ps-text span { font-size: 13px; color: var(--secondary); opacity: 0.7; line-height: 1.55; }

.ps-link {
  display: inline-block; margin-top: 6px;
  font-size: 13px; font-weight: 700;
  color: var(--blue); text-decoration: none;
  background: var(--blue-tint);
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.ps-link:hover { background: var(--blue-glow); }


/* ─── À PROPOS ─── */
#a-propos {
  background: var(--snow);
  padding: var(--space-2xl) var(--space-lg);
}

.apropos-wrap {
  max-width: var(--max-apropos); margin: 0 auto;
  display: grid; grid-template-columns: 360px 1fr;
  gap: var(--space-xl); align-items: center;
}

.ap-img {
  width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, black 8%, black 92%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, black 8%, black 92%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  mask-composite: intersect;
}

.ap-name {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800; color: var(--text);
  letter-spacing: -1px; line-height: 1.2;
  margin-bottom: 6px;
}

.ap-role {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.ap-role::after {
  content: '';
  display: block; width: 32px; height: 2px; background: var(--gold);
  border-radius: 2px;
}

.ap-p {
  font-size: 16px; line-height: 1.9;
  color: var(--secondary); opacity: 0.8;
  margin-bottom: 14px;
}

.ap-portfolio {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 4px; margin-bottom: 32px;
  font-size: 14px; font-weight: 700;
  color: var(--blue); text-decoration: none;
  transition: gap var(--ease), opacity var(--ease);
}
.ap-portfolio:hover { gap: 10px; opacity: 0.75; }



/* ─── CONTACT ─── */
#contact {
  background: var(--white);
  padding: var(--space-2xl) var(--space-lg);
}

.contact-wrap {
  max-width: var(--max-contact); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl); align-items: start;
}

.co-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800; color: var(--text);
  letter-spacing: -1px; line-height: 1.2;
  margin-bottom: 16px; margin-top: 12px;
}

.co-details { display: flex; flex-direction: column; gap: 14px; }

.co-detail {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 500; color: var(--secondary);
  text-decoration: none;
  transition: color var(--ease);
}
.co-detail:hover { color: var(--blue); }

.co-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--snow); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.co-detail:hover .co-icon { background: var(--blue-tint); }

/* Formulaire */
#contact-form { display: flex; flex-direction: column; gap: 14px; }

.f-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}

.f-field { display: flex; flex-direction: column; gap: 5px; }

.f-label {
  font-size: 11px; font-weight: 700;
  color: var(--secondary); opacity: 0.5;
  letter-spacing: 0.6px; text-transform: uppercase;
}

.f-input,
.f-textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--snow);
  font-family: var(--font-sans);
  font-size: 15px; color: var(--text);
  outline: none; width: 100%;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.f-input:focus,
.f-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.f-input:invalid:not(:placeholder-shown),
.f-textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}
.f-textarea { min-height: 130px; resize: vertical; }

.f-select-wrap { position: relative; }
.f-select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.f-select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}

.btn-submit {
  padding: 15px 32px;
  background: var(--blue); color: white;
  border: none; border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  cursor: pointer; align-self: flex-start;
  box-shadow: var(--shadow-blue-sm);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease), opacity var(--ease);
  margin-top: 4px;
}
.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-md);
}
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-submit.success  { background: var(--color-success); box-shadow: var(--shadow-success-sm); }


/* ─── FOOTER ─── */
footer {
  background: var(--white);
  padding: 60px var(--space-lg) 44px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.f-logo-img {
  height: 68px; width: auto;
  opacity: 0.85; margin-bottom: 28px;
}
.f-rule {
  width: 100%; height: 1px;
  background: var(--border); margin-bottom: 22px;
}
.f-copy {
  font-size: 13px; color: var(--secondary); opacity: 0.4;
}
.f-siret {
  font-size: 11px; color: var(--secondary); opacity: 0.25;
  margin-top: 6px;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root {
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 72px;
  }

  /* ── Nav mobile : logo centré, plus de hamburger ── */
  nav { justify-content: center; }
  .nav-phone { display: none; }

  /* ── Hero mobile ── */
  #accueil { padding: calc(var(--nav-h) + 40px) var(--space-lg) 80px; }
  #accueil::before { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-visual { display: none; }

  .hero-left    { text-align: center; }
  .hero-actions { justify-content: center; }

  .hero-h1 {
    font-size: clamp(32px, 9vw, 48px);
    letter-spacing: -1px;
    line-height: 1.15;
  }

  .hero-sub {
    font-size: clamp(15px, 4vw, 17px);
    max-width: 34ch;
    margin-left: auto; margin-right: auto;
    margin-bottom: 36px;
  }

  .hero-tag { margin-bottom: 20px; }

  /* ── Sections ── */
  .s-body-in { padding: 0 0 24px 0; }

  .apropos-wrap { grid-template-columns: 1fr; }
  .ap-img-placeholder { aspect-ratio: 4 / 3; }

  .contact-wrap { grid-template-columns: 1fr; }

  footer { padding: 44px var(--space-lg) 32px; }
}

@media (max-width: 560px) {
  .f-row { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; padding: 13px 24px; }

  .btn-submit { align-self: stretch; display: flex; justify-content: center; }
}
