/* Kaïs-IT — feuille de style
   Couleurs et typographie : modifier les variables ci-dessous. */
:root {
  --nuit: #061E37;        /* bleu marine du logo */
  --nuit-2: #0E3A66;
  --orange: #FF6518;      /* orange du logo */
  --orange-fonce: #B93C07;/* orange lisible en petit texte sur fond clair */
  --encre: #0B1F35;
  --gris: #4A5A6E;
  --brume: #EEF3F9;
  --trait: #D5DEE9;
  --blanc: #FFFFFF;
  --ciel: #C9DBEE;        /* texte secondaire sur fond marine */
  --titre: "Outfit", "Trebuchet MS", "Segoe UI", sans-serif;
  --texte: "DM Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --penche: -18deg;       /* inclinaison des tuiles du logo */
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.55;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blanc); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font: 600 16px/1.2 var(--texte); text-decoration: none;
  border: 2px solid transparent; border-radius: 10px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton-orange { background: var(--orange); color: var(--nuit); }
.bouton-orange:hover { background: #FF7C3A; }
.bouton-contour { border-color: #6F8BA8; color: var(--blanc); }
.bouton-contour:hover { border-color: var(--blanc); }
.bouton-whatsapp { background: var(--nuit); color: var(--blanc); margin-top: 28px; }
.bouton-whatsapp:hover { background: var(--nuit-2); }
.bouton svg, .flottant svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lien { background: none; border: 0; padding: 12px 4px; min-height: 44px; font: 500 15px var(--texte); color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--blanc); border-bottom: 1px solid var(--trait); }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.marque img { height: 50px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 16px; }
.menu a:not(.bouton) { text-decoration: none; padding: 12px 0; }
.menu a:not(.bouton):hover { color: var(--orange-fonce); }
.menu .bouton { min-height: 44px; padding: 10px 18px; }
.menu-bouton { display: none; min-height: 44px; padding: 8px 16px; font: 600 15px var(--texte); background: var(--blanc); color: var(--encre); border: 1.5px solid var(--encre); border-radius: 10px; cursor: pointer; }

/* Accueil */
.hero { position: relative; overflow: hidden; background: var(--nuit); color: var(--blanc); }
.hero-grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 84px 96px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; max-width: 14em; }
.chapeau { margin-top: 22px; font-size: 1.16rem; color: var(--ciel); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.reperes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; font-size: 16px; color: var(--ciel); }
.reperes li { display: flex; align-items: center; gap: 12px; }
.reperes li::before { content: ""; flex: none; width: 16px; height: 12px; background: var(--orange); transform: skewX(var(--penche)); border-radius: 2px; }

/* Les quatre tuiles du logo, en fond de l’accueil */
.tuiles { position: absolute; right: -40px; top: -30px; width: 620px; height: 560px; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1.2fr; gap: 26px; transform: skewX(var(--penche)); opacity: .5; }
.tuiles span { background: var(--nuit-2); border-radius: 22px; animation: tuile .9s cubic-bezier(.2,.7,.2,1) both; }
.tuiles span:nth-child(1) { animation-delay: .05s; }
.tuiles span:nth-child(2) { animation-delay: .18s; align-self: end; height: 62%; }
.tuiles span:nth-child(3) { animation-delay: .31s; height: 58%; }
.tuiles span:nth-child(4) { animation-delay: .44s; }
@keyframes tuile { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }

/* Sélecteur d’offre */
.selecteur { position: relative; background: var(--blanc); color: var(--encre); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(0, 8, 20, .7); animation: tuile .9s .5s cubic-bezier(.2,.7,.2,1) both; }
.selecteur-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.selecteur-tete h2 { font-size: 1.55rem; font-weight: 600; }
.selecteur-etape { font-size: 15px; color: var(--gris); white-space: nowrap; }
.jauge { height: 6px; margin: 16px 0 22px; background: var(--brume); border-radius: 99px; overflow: hidden; }
.jauge span { display: block; height: 100%; width: 33.33%; background: var(--orange); border-radius: 99px; transition: width .35s ease; }
.selecteur-corps { min-height: 292px; }
.question { border: 0; margin: 0; padding: 0; animation: glisse .3s ease both; }
.question legend { padding: 0; margin-bottom: 16px; font: 600 1.14rem/1.3 var(--titre); }
.choix { display: grid; gap: 10px; }
.choix button {
  min-height: 54px; padding: 12px 18px; text-align: left;
  font: 500 16px/1.3 var(--texte); color: var(--encre);
  background: var(--blanc); border: 1.5px solid var(--trait); border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.choix button:hover { border-color: var(--nuit); background: var(--brume); transform: translateX(4px); }
.resultat { animation: glisse .35s ease both; }
.resultat-intro { font-size: 15px; font-weight: 600; color: var(--orange-fonce); }
.resultat h3 { margin-top: 6px; font-size: 1.7rem; font-weight: 700; }
.resultat h3:focus { outline: none; }
.resultat > p:not(.resultat-intro) { margin-top: 10px; color: var(--gris); }
.resultat ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.resultat li, .inclus li { display: flex; gap: 12px; align-items: baseline; }
.resultat li::before, .inclus li::before { content: ""; flex: none; width: 14px; height: 10px; background: var(--orange); transform: skewX(var(--penche)) translateY(-1px); border-radius: 2px; }
.resultat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.retour { margin-top: 6px; color: var(--gris); }
@keyframes glisse { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* Bandeau défilant */
.bandeau { padding-block: 34px 40px; background: var(--brume); overflow: hidden; }
.bandeau-titre { font-size: 15px; font-weight: 500; color: var(--gris); margin-bottom: 18px; }
.defile { display: flex; width: max-content; }
.defile-piste { display: flex; flex: none; gap: 16px; margin: 0; padding: 0 8px; list-style: none; animation: defile 38s linear infinite; }
.defile:hover .defile-piste, .defile:focus-within .defile-piste { animation-play-state: paused; }
.defile-piste li {
  flex: none; padding: 14px 30px;
  font: 600 1.05rem var(--titre); color: var(--nuit); white-space: nowrap;
  background: var(--blanc); border: 1.5px solid var(--trait); border-radius: 10px;
  transform: skewX(var(--penche));
}
.defile-piste li > span { display: inline-block; transform: skewX(calc(var(--penche) * -1)); }
@keyframes defile { to { transform: translateX(-100%); } }

/* Sections */
.section { padding-block: 96px; }
.section-brume { background: var(--brume); }
.section-nuit { background: var(--nuit); color: var(--blanc); }
.section-tete { max-width: 46rem; margin-bottom: 48px; }
.section-tete h2, .contact-grille h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
.section-tete p { margin-top: 16px; font-size: 1.12rem; color: var(--gris); }
.section-nuit .section-tete p { color: var(--ciel); }

/* Domaines */
.domaines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.domaine { display: flex; gap: 22px; align-items: flex-start; }
.tuile { flex: none; display: grid; place-items: center; width: 64px; height: 56px; background: var(--nuit); border-radius: 12px; transform: skewX(var(--penche)); }
.tuile svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: skewX(calc(var(--penche) * -1)); }
.domaine h3 { font-size: 1.35rem; font-weight: 600; }
.domaine p { margin-top: 8px; color: var(--gris); max-width: 30em; }

/* Onglets Kaïs 360 */
.onglets-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.onglets-liste button {
  min-height: 48px; padding: 10px 22px;
  font: 600 16px var(--titre); color: var(--ciel);
  background: transparent; border: 1.5px solid #3D5C7D; border-radius: 10px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.onglets-liste button:hover { border-color: var(--blanc); color: var(--blanc); }
.onglets-liste button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: var(--nuit); }
.panneau { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 40px; background: var(--nuit-2); border-radius: 22px; }
.panneau.change > * { animation: glisse .3s ease both; }
.panneau-pour { font-size: 15px; font-weight: 600; color: #FFA36F; }
.panneau h3 { margin-top: 6px; font-size: 2rem; font-weight: 700; }
.panneau h3 + p { margin-top: 12px; color: var(--ciel); max-width: 30em; }
.panneau .bouton { margin-top: 28px; }
.inclus { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; align-content: start; font-size: 1.05rem; }

/* Atouts */
.atouts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--trait); border-radius: 18px; overflow: hidden; }
.atouts div { padding: 28px 28px 30px; border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); margin: -1px 0 0 -1px; }
.atouts dt { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--gris); }
.atouts dt::before { content: ""; flex: none; width: 16px; height: 12px; background: var(--orange); transform: skewX(var(--penche)); border-radius: 2px; }
.atouts dd { margin: 10px 0 0; font: 600 1.3rem/1.25 var(--titre); }

/* Étapes */
.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.etapes li { counter-increment: etape; position: relative; padding-top: 74px; }
.etapes li::before {
  content: counter(etape); position: absolute; top: 0; left: 6px;
  display: grid; place-items: center; width: 58px; height: 52px;
  font: 700 1.4rem var(--titre); color: var(--nuit);
  background: var(--orange); border-radius: 10px; transform: skewX(var(--penche));
}
.etapes li::after { content: ""; position: absolute; top: 25px; left: 84px; right: -14px; height: 2px; background: var(--trait); }
.etapes li:last-child::after { display: none; }
.etapes h3 { font-size: 1.25rem; font-weight: 600; }
.etapes p { margin-top: 8px; color: var(--gris); }

/* Contact */
.contact-grille { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.chapeau-clair { margin-top: 16px; font-size: 1.12rem; color: var(--gris); max-width: 30em; }
.coordonnees { margin: 36px 0 0; display: grid; gap: 14px; }
.coordonnees div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.coordonnees dt { color: var(--gris); }
.coordonnees dd { margin: 0; font-weight: 500; }
.formulaire { display: grid; gap: 18px; padding: 34px; background: var(--brume); border-radius: 22px; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.formulaire label { display: grid; gap: 7px; font-weight: 500; font-size: 15.5px; }
.facultatif { font-weight: 400; color: var(--gris); }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 16px var(--texte); color: var(--encre);
  background: var(--blanc); border: 1.5px solid #AEBCCC; border-radius: 10px;
}
.formulaire textarea { resize: vertical; }
.formulaire [aria-invalid="true"] { border-color: #B42318; }
.formulaire .bouton { justify-self: start; }
.statut { min-height: 1.5em; font-weight: 500; }
.statut.ok { color: #0B5E3C; }
.statut.erreur { color: #B42318; }

/* Pied de page */
.pied { background: var(--nuit); color: var(--ciel); padding-block: 52px 30px; }
.pied-grille { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.pied img { height: 62px; width: auto; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.pied nav a { text-decoration: none; padding: 10px 0; }
.pied nav a:hover { color: var(--blanc); }
.pied-mention { margin-top: 32px; padding-top: 22px; border-top: 1px solid #1E3A5A; font-size: 14.5px; }

/* Bouton WhatsApp flottant */
.flottant { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 58px; height: 58px; background: var(--orange); color: var(--nuit); border-radius: 50%; box-shadow: 0 12px 26px -10px rgba(6, 30, 55, .6); transition: transform .15s ease; }
.flottant:hover { transform: scale(1.06); }
.flottant svg { width: 28px; height: 28px; }

/* Tablette et mobile */
@media (max-width: 960px) {
  .hero-grille, .contact-grille, .panneau { grid-template-columns: minmax(0, 1fr); }
  .hero-grille { padding-block: 56px 64px; gap: 40px; }
  .tuiles { width: 440px; height: 400px; opacity: .35; }
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapes li::after { display: none; }
  .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-bouton { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 24px 22px; background: var(--blanc); border-bottom: 1px solid var(--trait); }
  .menu.ouvert { display: flex; }
  .menu .bouton { margin-top: 8px; }
  .entete-ligne { position: relative; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .domaines, .champs, .etapes { grid-template-columns: minmax(0, 1fr); }
  .selecteur, .formulaire, .panneau { padding: 22px; }
  .selecteur-corps { min-height: 320px; }
  .marque img { height: 42px; }
  .atouts { grid-template-columns: minmax(0, 1fr); }
  .atouts div { padding: 22px; }
  .actions .bouton { flex: 1 1 100%; }
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .defile { width: auto; }
  .defile-piste { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .defile-piste[aria-hidden="true"] { display: none; }
}
