/* ==========================================================================
   ClairSoft — feuille de style du site.
   Toutes les couleurs et les tailles de base sont définies ici, en haut :
   changer une couleur ici la change partout.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/inter-800.woff") format("woff"); }

:root {
  --encre: #0c1724;        /* titres, boutons principaux */
  --encre-2: #1c2a3c;
  --ardoise: #5b6b7e;      /* texte secondaire */
  --ardoise-clair: #93a1b1;
  --bord: #e2e8f0;
  --fond: #f6f7f9;
  --blanc: #ffffff;
  --ambre: #f5b841;        /* la touche de lumière de ClairSoft */
  --ambre-pale: #fdf3dc;
  --ambre-fonce: #8a5a00;  /* texte ambré lisible sur fond clair */
  --vert: #05715a;
  --rayon: 20px;
  --ombre: 0 1px 2px rgb(12 23 36 / .04), 0 8px 28px rgb(12 23 36 / .07);
  --largeur: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--blanc { background: var(--blanc); }
.section--nuit { background: var(--encre); color: #fff; }
.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ardoise);
}
.surtitre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ambre); }
.titre { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 12px; }
.chapeau { font-size: 19px; color: var(--ardoise); margin-top: 16px; max-width: 640px; }
.section--nuit .chapeau, .section--nuit .surtitre { color: var(--ardoise-clair); }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--plein { background: var(--encre); color: #fff; box-shadow: 0 6px 18px rgb(12 23 36 / .18); }
.btn--plein:hover { background: var(--encre-2); }
.btn--clair { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1px var(--bord); }
.btn--ambre { background: var(--ambre); color: var(--encre); }
.btn--ambre:hover { background: #f7c45f; }
.btn .fleche { transition: transform .15s ease; }
.btn:hover .fleche { transform: translateX(3px); }

/* --- En-tête --- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: rgb(246 247 249 / .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.entete.defile { border-bottom-color: var(--bord); }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.entete__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ardoise); }
.nav a:hover { color: var(--encre); }
.entete .btn { padding: 11px 18px; font-size: 15px; }
@media (max-width: 900px) { .nav { display: none; } }

/* --- Ouverture (hero) --- */
.ouverture { padding: 72px 0 96px; overflow: hidden; }
.ouverture__grille { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.ouverture h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.ouverture h1 .lumiere { position: relative; white-space: nowrap; }
.ouverture h1 .lumiere::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .32em;
  background: var(--ambre); opacity: .45; border-radius: 4px; z-index: -1;
}
.ouverture .chapeau { font-size: 20px; max-width: 560px; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ouverture__metiers { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.pastille {
  font-size: 14px; font-weight: 500; color: var(--encre-2);
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 12px;
}

/* L'illustration : des petites cartes d'appli, purement décoratives. */
.scene { position: relative; min-height: 440px; }
.scene::before {
  content: ""; position: absolute; inset: 6% 2% 6% 10%;
  background: radial-gradient(closest-side, rgb(245 184 65 / .32), transparent 70%);
  filter: blur(8px);
}
.carte-app {
  position: absolute; background: var(--blanc); border-radius: 18px; box-shadow: var(--ombre);
  border: 1px solid var(--bord); padding: 18px;
}
.carte-app--rapport { top: 10px; left: 8%; right: 4%; }
.carte-app--devis { top: 232px; left: 0; width: 60%; }
.carte-app--relance { top: 318px; right: 0; width: 64%; }
.carte-app__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.carte-app__titre { font-weight: 700; font-size: 15px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
  background: var(--ambre-pale); color: var(--ambre-fonce);
}
.puce--vert { background: #e4f5f0; color: var(--vert); }
.lignes { margin-top: 14px; display: grid; gap: 8px; }
.lignes span { display: block; height: 9px; border-radius: 6px; background: #edf1f6; }
.lignes span:nth-child(2) { width: 88%; }
.lignes span:nth-child(3) { width: 72%; }
.lignes span:nth-child(4) { width: 80%; }
.carte-app__pied { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ardoise); }
.onde { display: flex; align-items: center; gap: 3px; height: 22px; }
.onde i { display: block; width: 3px; border-radius: 3px; background: var(--encre); opacity: .75; }
.mini { display: flex; align-items: center; gap: 12px; }
.mini__icone {
  flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: #e4f5f0; color: var(--vert);
}
.mini__icone--ambre { background: var(--ambre-pale); color: var(--ambre-fonce); }
.mini b { display: block; font-size: 14px; }
.mini small { display: block; font-size: 13px; color: var(--ardoise); line-height: 1.35; }

@media (max-width: 960px) {
  .ouverture__grille { grid-template-columns: 1fr; }
  .scene { min-height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
}

/* --- Problèmes --- */
.grille-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 1000px) { .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grille-2, .grille-4 { grid-template-columns: 1fr; } }

.probleme {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--rayon);
  background: var(--fond); border: 1px solid var(--bord);
}
.probleme__signe {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blanc); border: 1px solid var(--bord); font-size: 20px;
}
.probleme h3 { font-size: 19px; font-weight: 700; }
.probleme p { color: var(--ardoise); margin-top: 6px; font-size: 16px; }
.reponse {
  margin-top: 28px; padding: 22px 26px; border-radius: var(--rayon);
  background: var(--encre); color: #fff; display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 500;
}
.reponse::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 6px rgb(245 184 65 / .18); }

/* --- Services --- */
.service {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.service__icone {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--encre); color: #fff; position: relative;
}
.service__icone::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ambre); border: 2px solid var(--blanc);
}
.service h3 { font-size: 20px; font-weight: 700; margin-top: 6px; }
.service p { color: var(--ardoise); font-size: 16px; }
.service ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--encre-2); }
.service li { display: flex; gap: 8px; }
.service li::before { content: "✓"; color: var(--vert); font-weight: 700; }

/* --- Méthode --- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; counter-reset: etape; }
@media (max-width: 1000px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .etapes { grid-template-columns: 1fr; } }
.etape { position: relative; padding: 28px; border-radius: var(--rayon); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ambre); color: var(--encre); font-weight: 800; font-size: 18px;
}
.etape h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.etape p { margin-top: 8px; color: #c4cdd8; font-size: 16px; }

/* --- Produits --- */
.produits { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 48px; }
@media (max-width: 900px) { .produits { grid-template-columns: 1fr; } }
.produit {
  border-radius: 24px; padding: 32px; background: var(--blanc); border: 1px solid var(--bord);
  display: flex; flex-direction: column; gap: 16px;
}
.produit__tete { display: flex; align-items: center; gap: 14px; }
.produit__tete img { width: 56px; height: 56px; border-radius: 15px; }
.produit__nom { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.produit__role { font-size: 14px; color: var(--ardoise); }
.produit__phrase { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.produit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.produit li { display: flex; gap: 10px; color: var(--encre-2); }
.produit li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: #3fb6c9; }
.produit--readyhost li::before { background: #0f766e; }
.produit__lien { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.produit__lien:hover { text-decoration: underline; }
.produit--readyhost { background: linear-gradient(160deg, #ffffff 0%, #eef8f6 100%); }
.bientot { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #0f766e; color: #fff; border-radius: 999px; padding: 4px 10px; margin-left: auto; }

/* --- À propos --- */
.apropos { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .apropos { grid-template-columns: 1fr; gap: 32px; } }
.portrait {
  aspect-ratio: 1 / 1; max-width: 360px; width: 100%; border-radius: 28px; background: var(--encre);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.portrait span { font-size: 96px; font-weight: 800; color: #fff; letter-spacing: -0.04em; }
.portrait::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 50%; background: var(--ambre); right: 30px; top: 30px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apropos__texte p { color: var(--encre-2); font-size: 18px; margin-top: 16px; }
.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 620px) { .valeurs { grid-template-columns: 1fr; } }
.valeur { padding: 18px; border-radius: 16px; background: var(--fond); border: 1px solid var(--bord); }
.valeur b { display: block; font-size: 16px; }
.valeur span { display: block; font-size: 14px; color: var(--ardoise); margin-top: 4px; line-height: 1.45; }

/* --- Questions --- */
.questions { margin-top: 40px; display: grid; gap: 12px; max-width: 820px; }
.questions details { background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px; padding: 4px 22px; }
.questions summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--ardoise); transition: transform .2s ease; }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { color: var(--ardoise); padding: 0 0 18px; }

/* --- Contact --- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact__infos .chapeau { color: var(--ardoise-clair); }
.contact__liste { margin-top: 32px; display: grid; gap: 14px; }
.contact__ligne { display: flex; gap: 14px; align-items: center; color: #dfe5ec; text-decoration: none; }
.contact__ligne span:first-child {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgb(255 255 255 / .08); color: var(--ambre);
}
a.contact__ligne:hover { color: #fff; }
.contact__rdv { margin-top: 28px; }

.formulaire { background: var(--blanc); color: var(--encre); border-radius: 24px; padding: 32px; box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.formulaire__titre { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.formulaire__aide { color: var(--ardoise); margin-top: 4px; font-size: 15px; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.champs .large { grid-column: 1 / -1; }
@media (max-width: 560px) { .champs { grid-template-columns: 1fr; } .formulaire { padding: 24px 20px; } }
.champs label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.champs label small { font-weight: 400; color: var(--ardoise); }
.champs input, .champs select, .champs textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--encre);
  padding: 12px 14px; border-radius: 12px; border: 1px solid #cfd8e3; background: #fbfcfd;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champs textarea { resize: vertical; min-height: 120px; }
.champs input:focus, .champs select:focus, .champs textarea:focus {
  outline: none; border-color: var(--encre); box-shadow: 0 0 0 4px rgb(245 184 65 / .35); background: #fff;
}
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .btn { width: 100%; margin-top: 22px; padding: 17px; }
.formulaire__mention { font-size: 13px; color: var(--ardoise); margin-top: 14px; }
.alerte { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fdeceb; color: #8f1d19; font-size: 15px; }
.merci { text-align: center; padding: 24px 8px; }
.merci__rond { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--vert); color: #fff; }
.merci p:first-of-type { font-size: 24px; font-weight: 800; margin-top: 18px; letter-spacing: -0.02em; }
.merci p + p { color: var(--ardoise); margin-top: 8px; }

/* --- Pied de page --- */
.pied { background: #08111b; color: var(--ardoise-clair); padding: 48px 0 40px; font-size: 15px; }
.pied__ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.pied img { height: 30px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 22px; }
.pied a { text-decoration: none; }
.pied a:hover { color: #fff; }
.pied__bas { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 14px; }

/* --- Pages légales --- */
.legal { padding: 64px 0 96px; }
.legal__boite { background: var(--blanc); border: 1px solid var(--bord); border-radius: 24px; padding: 40px; max-width: 860px; }
@media (max-width: 600px) { .legal__boite { padding: 24px 20px; } }
.legal h1 { font-size: 36px; font-weight: 800; }
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 32px; }
.legal p, .legal li { color: var(--encre-2); margin-top: 10px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.legal td { padding: 12px 0; border-bottom: 1px solid var(--bord); vertical-align: top; }
.legal td:first-child { color: var(--ardoise); width: 38%; padding-right: 16px; }
.retour { display: inline-flex; gap: 8px; margin-bottom: 24px; font-weight: 600; text-decoration: none; color: var(--ardoise); }
.retour:hover { color: var(--encre); }

/* Apparition douce au défilement (désactivée si l'utilisateur limite les animations). */
.apparait { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .apparait { opacity: 1; transform: none; transition: none; } }

/* Sur petit écran, les cartes de l'illustration s'empilent au lieu de se chevaucher. */
@media (max-width: 620px) {
  .scene { min-height: 0; display: grid; gap: 12px; }
  .carte-app { position: relative; top: auto; left: auto; right: auto; width: auto; }
  .carte-app--devis { margin-right: 18%; }
  .carte-app--relance { margin-left: 18%; }
  .entete .btn { padding: 10px 14px; font-size: 14px; }
  .entete__logo img { height: 30px; }
  .section { padding: 72px 0; }
  .ouverture { padding: 40px 0 72px; }
}
