/* ==========================================================================
   Studio Nuage — création de sites internet & réservation directe
   Univers : ciel / nuage — doux, aéré, professionnel
   Typo : Outfit (titres) + Inter (texte)
   ========================================================================== */

:root {
  --nuit: #16243c;
  --nuit-2: #0e1929;
  --ciel: #eef4fb;
  --ciel-clair: #f8fbff;
  --bleu: #3d7fd4;
  --bleu-fonce: #2a5da3;
  --corail: #f07a4b;
  --corail-fonce: #d96030;
  --encre: #1d2733;
  --gris: #5b6a7d;
  --blanc: #ffffff;
  --whatsapp: #25d366;
  --ombre: 0 12px 34px rgba(22, 36, 60, 0.10);
  --ombre-forte: 0 18px 50px rgba(22, 36, 60, 0.16);
  --rayon: 20px;
  --largeur: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--encre);
  background: var(--ciel-clair);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', 'Inter', sans-serif; color: var(--nuit); line-height: 1.15; }

img { max-width: 100%; display: block; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 22px; }

section { padding: 76px 0; }

.surtitre {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 10px;
}

.titre-section { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }

.intro-section { max-width: 700px; color: var(--gris); font-size: 1.06rem; }

/* --------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 30px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn svg { width: 20px; height: 20px; }

.btn-corail { background: var(--corail); color: #fff; box-shadow: 0 8px 24px rgba(240, 122, 75, 0.35); }
.btn-corail:hover { background: var(--corail-fonce); transform: translateY(-2px); }

.btn-nuit { background: var(--nuit); color: #fff; }
.btn-nuit:hover { background: var(--nuit-2); transform: translateY(-2px); }

.btn-blanc { background: var(--blanc); color: var(--nuit); box-shadow: var(--ombre); }
.btn-blanc:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1eb457; transform: translateY(-2px); }

.btn-geant { font-size: 1.1rem; padding: 18px 38px; }

/* ------------------------------------------------------------ Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: rgba(248, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 36, 60, 0.06);
}

.nav-marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--nuit);
  text-decoration: none;
  white-space: nowrap;
}

.nav-marque svg { width: 34px; height: 34px; }

.nav-liens { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-liens a {
  color: var(--encre);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-liens a:hover { background: rgba(61, 127, 212, 0.10); }

.nav-liens a.nav-cta {
  background: var(--corail);
  color: #fff;
  font-weight: 600;
  margin-left: 8px;
}

.nav-liens a.nav-cta:hover { background: var(--corail-fonce); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--nuit);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* ------------------------------------------------------------------ Héro */
.hero {
  position: relative;
  padding: 170px 0 110px;
  background: linear-gradient(180deg, #dcebfc 0%, #eef5fd 55%, var(--ciel-clair) 100%);
  overflow: hidden;
}

.nuage-deco {
  position: absolute;
  opacity: 0.85;
  pointer-events: none;
  animation: flotte 9s ease-in-out infinite;
}

.nuage-deco.n1 { top: 90px; right: 6%; width: 180px; }
.nuage-deco.n2 { top: 240px; left: 3%; width: 130px; opacity: 0.55; animation-delay: -3s; }
.nuage-deco.n3 { bottom: 40px; right: 22%; width: 100px; opacity: 0.4; animation-delay: -6s; }

@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-contenu { position: relative; z-index: 2; max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanc);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nuit);
  box-shadow: var(--ombre);
  margin-bottom: 24px;
}

.hero-badge .point { width: 9px; height: 9px; border-radius: 50%; background: #34c76f; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 em { font-style: normal; color: var(--bleu); }

.hero-texte { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--gris); max-width: 640px; margin-bottom: 34px; }

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

.hero-reassurance { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.92rem; color: var(--nuit); font-weight: 500; }

.hero-reassurance span { display: inline-flex; align-items: center; gap: 8px; }

.hero-reassurance svg { width: 18px; height: 18px; color: var(--bleu); flex: none; }

/* ------------------------------------------------------- Calculateur */
.section-calcul { background: var(--nuit); color: rgba(255,255,255,0.92); }

.section-calcul .titre-section, .section-calcul h3 { color: #fff; }

.section-calcul .surtitre { color: #9cc3f0; }

.section-calcul .intro-section { color: rgba(255,255,255,0.72); }

.calcul-carte {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--rayon);
  padding: 34px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calcul-controle label { display: block; font-weight: 600; margin-bottom: 16px; color: #fff; font-size: 1.05rem; }

.calcul-controle input[type="range"] {
  width: 100%;
  accent-color: var(--corail);
  cursor: pointer;
}

.calcul-ca { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 700; color: #fff; margin-top: 10px; }

.calcul-resultats { display: flex; flex-direction: column; gap: 14px; }

.calcul-ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  font-size: 0.98rem;
}

.calcul-ligne b { font-family: 'Outfit', sans-serif; font-size: 1.35rem; white-space: nowrap; }

.calcul-ligne.perte b { color: #ff9d7e; }

.calcul-ligne.gain { background: rgba(52, 199, 111, 0.14); border: 1px solid rgba(52, 199, 111, 0.35); }

.calcul-ligne.gain b { color: #5fe39a; }

.calcul-note { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* --------------------------------------------------------------- Offres */
.grille-offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }

.offre {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 34px 30px;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
}

.offre.vedette { border-color: var(--bleu); box-shadow: var(--ombre-forte); }

.offre-etiquette {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bleu);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.offre h3 { font-size: 1.3rem; margin-bottom: 6px; }

.offre-cible { font-size: 0.88rem; color: var(--gris); margin-bottom: 18px; }

.offre-prix { font-family: 'Outfit', sans-serif; font-size: 2.1rem; font-weight: 800; color: var(--nuit); margin-bottom: 4px; }

.offre-prix small { font-size: 0.95rem; font-weight: 500; color: var(--gris); }

.offre-prefixe { font-size: 0.82rem; color: var(--gris); }

.offre ul { list-style: none; margin: 20px 0 26px; flex: 1; }

.offre li { padding: 7px 0 7px 30px; position: relative; font-size: 0.94rem; color: var(--encre); }

.offre li::before {
  content: '';
  position: absolute;
  left: 2px; top: 12px;
  width: 16px; height: 16px;
  background: var(--ciel);
  border-radius: 50%;
}

.offre li::after {
  content: '✓';
  position: absolute;
  left: 5px; top: 7px;
  color: var(--bleu);
  font-size: 0.78rem;
  font-weight: 700;
}

.offre .btn { width: 100%; }

.offre-maintenance {
  margin-top: 22px;
  background: linear-gradient(90deg, #e6f0fb, #f2f7fd);
  border-radius: var(--rayon);
  padding: 24px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.offre-maintenance b { font-family: 'Outfit', sans-serif; font-size: 1.1rem; color: var(--nuit); }

.offre-maintenance p { font-size: 0.92rem; color: var(--gris); max-width: 640px; }

/* ------------------------------------------------------------ Portfolio */
.section-realisations { background: var(--ciel); }

.grille-realisations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }

.realisation {
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.realisation:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }

.realisation-image { height: 190px; overflow: hidden; position: relative; }

.realisation-image img { width: 100%; height: 100%; object-fit: cover; }

.realisation-image.degrade { display: flex; align-items: center; justify-content: center; }

.realisation-image.degrade span { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; padding: 0 20px; }

.realisation-corps { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }

.realisation-corps h3 { font-size: 1.12rem; margin-bottom: 6px; }

.realisation-corps p { font-size: 0.92rem; color: var(--gris); flex: 1; }

.realisation-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.realisation-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bleu-fonce);
  background: rgba(61, 127, 212, 0.10);
  padding: 4px 11px;
  border-radius: 999px;
}

/* -------------------------------------------------------------- Méthode */
.etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 42px; }

.etape { text-align: center; padding: 0 6px; }

.etape-numero {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blanc);
  box-shadow: var(--ombre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bleu);
}

.etape h3 { font-size: 1rem; margin-bottom: 6px; }

.etape p { font-size: 0.85rem; color: var(--gris); }

/* ------------------------------------------------------------- À propos */
.apropos { display: grid; grid-template-columns: 260px 1fr; gap: 46px; align-items: center; margin-top: 20px; }

.apropos-portrait {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bleu), var(--nuit));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ombre-forte);
  overflow: hidden;
}

.apropos-portrait span { font-family: 'Outfit', sans-serif; font-size: 5rem; font-weight: 800; color: rgba(255,255,255,0.9); }

.apropos-portrait img { width: 100%; height: 100%; object-fit: cover; }

.apropos-texte p { color: var(--gris); margin-bottom: 14px; }

.apropos-texte p strong { color: var(--nuit); }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 780px; margin: 42px auto 0; }

.faq details {
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: var(--ombre);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 20px 26px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--nuit);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--bleu); flex: none; transition: transform 0.2s ease; }

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { padding: 0 26px 22px; color: var(--gris); font-size: 0.96rem; }

/* -------------------------------------------------------------- Contact */
.section-contact { background: linear-gradient(180deg, var(--ciel-clair) 0%, #dcebfc 100%); }

.contact-grille { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; margin-top: 42px; align-items: start; }

.contact-canaux { display: flex; flex-direction: column; gap: 14px; }

.canal {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blanc);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ombre);
  transition: transform 0.15s ease;
}

.canal:hover { transform: translateY(-2px); }

.canal svg { width: 30px; height: 30px; flex: none; color: var(--bleu); }

.canal.canal-whatsapp svg { color: var(--whatsapp); }

.canal b { display: block; color: var(--nuit); font-size: 1rem; }

.canal small { color: var(--gris); font-size: 0.86rem; }

.formulaire {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 32px;
  box-shadow: var(--ombre-forte);
}

.formulaire h3 { font-size: 1.3rem; margin-bottom: 20px; }

.champ { margin-bottom: 15px; }

.champ label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 5px; color: var(--nuit); }

.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #d8e2ee;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--ciel-clair);
  color: var(--encre);
  transition: border-color 0.2s ease;
}

.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--bleu);
  background: var(--blanc);
}

.champ textarea { resize: vertical; min-height: 100px; }

.form-boutons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.form-boutons .btn { width: 100%; }

.form-note { margin-top: 14px; font-size: 0.78rem; color: var(--gris); text-align: center; }

.form-confirmation {
  display: none;
  margin-top: 14px;
  background: #e7f6ec;
  border: 1px solid #bfe5cc;
  color: #1c7a41;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  text-align: center;
}

.form-confirmation.visible { display: block; }

/* ----------------------------------------------------------------- Pied */
.pied { background: var(--nuit-2); color: rgba(255,255,255,0.6); padding: 38px 0 44px; font-size: 0.88rem; }

.pied-grille { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }

.pied a { color: rgba(255,255,255,0.85); text-decoration: none; margin-right: 18px; }

.pied a:hover { text-decoration: underline; }

.pied-marque { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff; display: inline-flex; align-items: center; gap: 8px; }

.pied-marque svg { width: 26px; height: 26px; }

/* ---------------------------------------------- Pages satellites / légal */
.entete-page { background: linear-gradient(180deg, #dcebfc, var(--ciel-clair)); padding: 150px 0 60px; }

.entete-page h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; }

.entete-page p { color: var(--gris); max-width: 680px; margin-top: 12px; font-size: 1.05rem; }

.contenu-page { padding: 50px 0 80px; }

.contenu-page h2 { margin: 38px 0 12px; font-size: 1.5rem; }

.contenu-page h3 { margin: 26px 0 8px; font-size: 1.15rem; }

.contenu-page p, .contenu-page li { color: var(--gris); }

.contenu-page ul { padding-left: 22px; margin: 10px 0; }

.contenu-page a { color: var(--bleu-fonce); font-weight: 600; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 960px) {
  .grille-offres, .grille-realisations { grid-template-columns: 1fr; }
  .calcul-carte { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .contact-grille { grid-template-columns: 1fr; }
  .apropos { grid-template-columns: 1fr; text-align: center; }
  .apropos-portrait { margin: 0 auto; }
}

@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-burger { display: block; }
  .nav-liens {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(248, 251, 255, 0.98);
    padding: 10px 16px 18px;
    box-shadow: var(--ombre);
  }
  .nav-liens.ouvert { display: flex; }
  .nav-liens a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-liens a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .hero { padding: 130px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  section { padding: 56px 0; }
  .nuage-deco.n1 { width: 110px; top: 80px; }
}
