/* ============================================
   Atelier Web du Lac — style.css
   ============================================ */

/* ── VARIABLES ── */
:root {
  --bleu:       #1A3F6F;
  --bleu-clair: #5A8AAA;
  --bleu-pale:  #EEF4FA;
  --creme:      #FAF9F6;
  --encre:      #2C2C2A;
  --gris:       #888780;
  --gris-pale:  #F0EFEB;
  --vert:       #2A5E38;
  --blanc:      #FFFFFF;
  --nav-h:      68px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--creme);
  color: var(--encre);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,249,246,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(44,44,42,0.1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
}

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo svg { width: 140px; height: 44px; }

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 14px; font-weight: 400;
  color: var(--encre); letter-spacing: 0.03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--bleu); }

.nav-cta {
  background: var(--bleu) !important;
  color: var(--blanc) !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: #0F2D55 !important; }

/* ── PAGES ── */
.page { display: none; padding-top: var(--nav-h); min-height: 100vh; }
.page.active { display: block; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 6% 5% 4%;
  position: relative; overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg svg { position: absolute; bottom: 0; left: 0; width: 100%; }

.hero-content { position: relative; z-index: 1; max-width: 640px; }

.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bleu-clair); font-weight: 500; margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400; line-height: 1.18;
  color: var(--encre); margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--bleu); }

.hero-sub {
  font-size: 1.05rem; color: #5F5E5A;
  max-width: 520px; margin-bottom: 40px; line-height: 1.75;
}

/* ── BOUTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--bleu); color: var(--blanc);
  padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #0F2D55; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--bleu); color: var(--bleu);
  padding: 13px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.02em;
  margin-left: 14px;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--bleu); color: var(--blanc); }

/* ── STATS ── */
.stats {
  display: flex; gap: 48px; margin-top: 56px;
  padding-top: 40px;
  border-top: 0.5px solid rgba(44,44,42,0.1);
}
.stat-num {
  font-family: 'Lora', serif; font-size: 2rem;
  color: var(--bleu); font-weight: 400;
}
.stat-label { font-size: 13px; color: var(--gris); margin-top: 4px; }

/* ── SECTIONS ── */
section { padding: 80px 5%; }
section + section { border-top: 0.5px solid rgba(44,44,42,0.08); }
.section-blanc { background: var(--blanc); }
.section-top { padding-top: calc(var(--nav-h) + 48px); }

.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bleu-clair); font-weight: 500; margin-bottom: 12px;
}
.section-title {
  font-family: 'Lora', serif; font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400; color: var(--encre); margin-bottom: 16px; line-height: 1.3;
}
.section-sub {
  font-size: 1rem; color: var(--gris);
  max-width: 560px; line-height: 1.75; margin-bottom: 48px;
}
.section-cta { margin-top: 36px; }

.sub-title {
  font-family: 'Lora', serif; font-size: 1.3rem;
  font-weight: 400; margin-bottom: 8px;
}
.sub-text {
  font-size: 14px; color: var(--gris);
  margin-bottom: 28px; max-width: 520px; line-height: 1.7;
}

/* ── VALEURS (page accueil) ── */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; max-width: 860px;
}
.valeur-titre {
  font-family: 'Lora', serif; font-size: 1.4rem;
  color: var(--bleu); margin-bottom: 8px;
}
.valeur-texte { font-size: 14px; color: var(--gris); line-height: 1.7; }

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--blanc);
  border: 0.5px solid rgba(44,44,42,0.1);
  border-radius: 12px; padding: 32px 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--bleu); transform: translateY(-3px); }

.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bleu-pale);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--bleu); fill: none; stroke-width: 1.5; }

.service-card h3 {
  font-family: 'Lora', serif; font-size: 1.1rem;
  font-weight: 500; margin-bottom: 10px; color: var(--encre);
}
.service-card p { font-size: 14px; color: var(--gris); line-height: 1.7; }

.service-price {
  margin-top: 20px; padding-top: 16px;
  border-top: 0.5px solid var(--gris-pale);
  font-size: 13px; color: var(--bleu); font-weight: 500;
}

/* ── FORFAITS ── */
.forfaits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 8px;
}
.forfait-card {
  background: var(--blanc);
  border: 0.5px solid rgba(44,44,42,0.1);
  border-radius: 12px; padding: 28px 24px;
}
.forfait-card.featured { border: 2px solid var(--bleu); }

.forfait-badge {
  display: inline-block;
  background: var(--bleu-pale); color: var(--bleu);
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 12px; letter-spacing: 0.04em;
}
.forfait-name {
  font-size: 13px; color: var(--gris); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.forfait-price {
  font-family: 'Lora', serif; font-size: 2rem;
  color: var(--encre); line-height: 1;
}
.forfait-price span { font-size: 13px; color: var(--gris); font-family: 'DM Sans', sans-serif; }
.forfait-price-sub { font-size: 11px !important; }

.forfait-features { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.forfait-features li {
  font-size: 13px; color: var(--encre);
  display: flex; gap: 8px; align-items: flex-start;
}
.forfait-features li::before {
  content: '✓'; color: var(--bleu); font-weight: 600;
  flex-shrink: 0; margin-top: 1px;
}
.forfait-note { font-size: 12px; color: var(--gris); margin-top: 16px; font-style: italic; }

/* ── MAINTENANCE ── */
.maintenance-section { margin-top: 56px; }
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; max-width: 500px; margin-top: 20px;
}
.maintenance-card {
  background: var(--blanc);
  border: 0.5px solid rgba(44,44,42,0.1);
  border-radius: 10px; padding: 20px;
}
.maintenance-name { font-size: 12px; color: var(--gris); margin-bottom: 4px; }
.maintenance-price {
  font-family: 'Lora', serif; font-size: 1.5rem; color: var(--encre);
}
.maintenance-price span {
  font-size: 13px; font-family: 'DM Sans', sans-serif; color: var(--gris);
}
.maintenance-card p { font-size: 12px; color: var(--gris); margin-top: 8px; line-height: 1.6; }

/* ── PROCESSUS ── */
.process-section { margin-top: 56px; }
.process-steps { display: flex; flex-direction: column; max-width: 680px; margin-top: 32px; }
.process-step {
  display: flex; gap: 28px; padding: 28px 0;
  border-bottom: 0.5px solid rgba(44,44,42,0.07);
}
.process-step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Lora', serif; font-size: 2.2rem;
  color: var(--bleu-pale); font-weight: 400;
  line-height: 1; min-width: 48px; padding-top: 4px;
}
.step-content h3 { font-family: 'Lora', serif; font-size: 1.05rem; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--gris); line-height: 1.7; }

/* ── PORTFOLIO ── */
.portfolio-coming {
  text-align: center; padding: 60px 20px;
  color: var(--gris); font-style: italic;
  font-family: 'Lora', serif; font-size: 1.05rem;
}
.portfolio-coming svg { margin: 0 auto 20px; display: block; opacity: 0.3; }
.portfolio-coming span {
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  font-style: normal; color: var(--gris);
  margin-top: 8px; display: block;
}

.offre-lancement {
  margin-top: 40px; padding: 36px;
  background: var(--bleu-pale); border-radius: 14px; max-width: 600px;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}

.contact-info h2 {
  font-family: 'Lora', serif; font-size: 1.7rem; margin-bottom: 16px;
}
.contact-info p {
  font-size: 15px; color: var(--gris); line-height: 1.75; margin-bottom: 32px;
}
.contact-detail { display: flex; flex-direction: column; gap: 14px; }
.contact-row { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.contact-row .icon {
  width: 36px; height: 36px; background: var(--bleu-pale);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-row .icon svg { width: 16px; height: 16px; stroke: var(--bleu); fill: none; stroke-width: 1.6; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--encre); }
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--encre);
  background: var(--blanc);
  border: 1px solid rgba(44,44,42,0.15);
  border-radius: 8px; padding: 12px 14px;
  outline: none; transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--bleu); }

.form-submit {
  background: var(--bleu); color: var(--blanc);
  border: none; border-radius: 8px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .2s;
  align-self: flex-start;
}
.form-submit:hover { background: #0F2D55; }

/* ── FOOTER ── */
footer {
  background: var(--encre); color: rgba(255,255,255,0.6);
  padding: 40px 5%; font-size: 13px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-left strong { color: rgba(255,255,255,0.85); }
.footer-right { text-align: right; }
.footer-right a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-right a:hover { color: var(--blanc); }
.footer-right span { margin-top: 6px; display: block; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page.active .hero-content > * { animation: fadeUp .55s ease both; }
.page.active .hero-content > *:nth-child(1) { animation-delay: .05s; }
.page.active .hero-content > *:nth-child(2) { animation-delay: .15s; }
.page.active .hero-content > *:nth-child(3) { animation-delay: .25s; }
.page.active .hero-content > *:nth-child(4) { animation-delay: .35s; }
.page.active .hero-content > *:nth-child(5) { animation-delay: .45s; }

/* ── NAV INSTAGRAM ── */
.nav-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A3F6F;
  color: #fff;
  border-radius: 8px;
  padding: .45rem .5rem;
  margin-left: .25rem;
  transition: background .2s;
  vertical-align: middle;
  line-height: 1;
}
.nav-instagram:hover { background: #163356; }
.nav-links li { display: flex; align-items: center; }

/* ── ZONE DE SERVICE ── */
.section-zone {
  background: #1A3F6F;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}
.section-zone .section-label { color: rgba(255,255,255,.6); }
.section-zone .section-title { color: #fff; }
.section-zone .section-sub { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 2.5rem; }

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.zone-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: left;
}
.zone-titre {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .4rem;
  color: #fff;
}
.zone-card p {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.zone-note {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.zone-note a {
  color: rgba(255,255,255,.9);
  text-decoration: underline;
}

/* ── PORTFOLIO GRID ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.portfolio-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
}
.portfolio-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.portfolio-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #EEF4FA, #d1e3f5);
}
.portfolio-body { padding: 1.25rem; }
.portfolio-badge {
  font-size: .75rem;
  padding: .2rem .65rem;
  background: #EEF4FA;
  color: #1A3F6F;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: .6rem;
}
.portfolio-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .2rem;
  color: #1a2a3a;
}
.portfolio-client { font-size: .85rem; color: #6b7280; margin-bottom: .6rem; }
.portfolio-desc { font-size: .88rem; color: #4b5563; line-height: 1.5; margin-bottom: .8rem; }
.portfolio-link {
  font-size: .85rem;
  color: #1A3F6F;
  text-decoration: none;
  font-weight: 500;
}
.portfolio-link:hover { text-decoration: underline; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--encre);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE DÉTAIL PROJET ── */
.btn-retour {
  background: none;
  border: none;
  color: var(--bleu);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  opacity: .8;
  transition: opacity .2s;
}
.btn-retour:hover { opacity: 1; }

.projet-section { max-width: 860px; margin: 0 auto; }

.projet-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.projet-img-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #EEF4FA, #d1e3f5);
  border-radius: 14px;
  margin-bottom: 2.5rem;
}

.projet-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.projet-titre {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin: .5rem 0 .4rem;
  color: var(--encre);
  line-height: 1.25;
}
.projet-client { font-size: .9rem; color: var(--gris); }
.projet-contenu p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.projet-contenu p:last-child { margin-bottom: 0; }

.avis-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bleu-pale);
  border-radius: 12px;
  border-left: 3px solid var(--bleu);
}
.avis-etoiles {
  font-size: 1.3rem;
  color: #f59e0b;
  letter-spacing: .1rem;
  margin-bottom: .75rem;
}
.avis-texte {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--encre);
  line-height: 1.7;
  margin: 0 0 .5rem;
}
.avis-auteur {
  font-size: .85rem;
  color: var(--gris);
  margin: 0 !important;
}

/* ── RESPONSIVE TABLETTE ── */
@media (max-width: 860px) {
  .forfaits-grid { grid-template-columns: 1fr; max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 600px) {

  /* Navigation */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250,249,246,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(44,44,42,0.1);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .85rem 0;
    border-bottom: 0.5px solid rgba(44,44,42,0.07);
    font-size: 1rem;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    margin: .5rem 0;
    display: inline-block !important;
    width: auto;
  }
  .nav-instagram { margin: .5rem 0; }

  /* Hero */
  .hero {
    padding: 2rem 5% 3rem;
    min-height: auto;
    align-items: flex-start;
  }
  .hero h1 { font-size: 2rem; margin-bottom: 16px; }
  .hero-sub { font-size: .95rem; margin-bottom: 28px; }
  .hero-eyebrow { margin-bottom: 14px; }

  .btn-primary, .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 10px;
    padding: 14px 20px;
    box-sizing: border-box;
  }

  /* Stats */
  .stats {
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
  }
  .stats > div { min-width: 100px; }
  .stat-num { font-size: 1.5rem; }

  /* Sections */
  section { padding: 48px 5%; }
  .section-top { padding-top: calc(var(--nav-h) + 24px); }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: .93rem; margin-bottom: 32px; }

  /* Valeurs */
  .valeurs-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Forfaits */
  .forfaits-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-step { gap: 18px; padding: 20px 0; }
  .step-num { font-size: 1.6rem; min-width: 36px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Zone */
  .section-zone { padding: 3rem 5%; }
  .zone-grid { grid-template-columns: 1fr; }

  /* Offre lancement */
  .offre-lancement { padding: 24px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-submit { width: 100%; align-self: stretch; }

  /* Footer */
  footer { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }

  /* Projet détail */
  .projet-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .projet-titre { font-size: 1.4rem; }
}
