/* Clé de Douze : site d'exemple Kerhost (entreprise fictive), formule Page Pro */

:root {
  --nuit: #0E2A47;
  --nuit-2: #16395E;
  --jaune: #FFC83D;
  --jaune-fonce: #E0A400;
  --bleu: #1F6FB5;
  --ciel: #EAF2FA;
  --fond: #F6F8FB;
  --texte: #15212E;
  --texte-2: #45576B;
  --filet: #D7E0EA;
  --blanc: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}
h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
.cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--jaune); color: var(--nuit); font-weight: 800; border-radius: 8px; }
.aller:focus { top: 12px; }

.largeur { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* bandeau « site d'exemple » */
.bandeau-exemple { background: #000; color: #fff; font-size: 14.5px; line-height: 1.45; text-align: center; padding: 9px 16px; }
.bandeau-exemple a { color: var(--jaune); font-weight: 700; }

/* en-tête */
.entete { position: sticky; top: 0; z-index: 10; background: var(--nuit); color: var(--blanc); }
.entete .largeur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo strong { display: block; font-size: 22px; font-weight: 900; letter-spacing: 0.01em; line-height: 1.1; text-transform: uppercase; }
.logo > span > span { display: block; font-size: 13px; color: #B8C9DC; }
.entete nav ul { display: flex; gap: 26px; list-style: none; padding: 0; font-weight: 700; font-size: 15.5px; }
.entete nav a { text-decoration: none; padding: 8px 0; }
.entete nav a:hover { color: var(--jaune); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 6px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 16.5px; text-decoration: none; cursor: pointer;
}
.btn-jaune { background: var(--jaune); color: var(--nuit); }
.btn-jaune:hover { background: var(--jaune-fonce); }
.btn-ligne { border-color: rgba(255, 255, 255, 0.7); color: var(--blanc); }
.btn-ligne:hover { background: rgba(255, 255, 255, 0.1); }
.btn-bleu { background: var(--nuit); color: var(--blanc); }

/* accroche */
.accroche { background: var(--nuit); color: var(--blanc); padding: 56px 0 72px; position: relative; overflow: hidden; }
.accroche .largeur { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.accroche .metier { color: var(--jaune); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; }
.accroche h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 900; letter-spacing: -0.01em; margin: 12px 0 18px; }
.accroche h1 em { font-style: normal; color: var(--jaune); }
.accroche .chapeau { font-size: 19px; color: #D3DEEA; max-width: 560px; }
.accroche .boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; list-style: none; padding: 0; font-size: 15px; font-weight: 700; color: #E7EEF6; }
.badges li { display: flex; align-items: center; gap: 8px; }
.badges li::before { content: ""; width: 10px; height: 10px; background: var(--jaune); transform: rotate(45deg); }
.dessin { justify-self: center; width: 100%; max-width: 420px; }

/* sections */
.section { padding: 72px 0; }
.section-blanche { background: var(--blanc); }
.titre { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
.titre::after { content: ""; display: block; width: 56px; height: 6px; background: var(--jaune); margin-top: 14px; }
.intro { color: var(--texte-2); margin-top: 14px; max-width: 640px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 36px; list-style: none; padding: 0; }
.services li { background: var(--fond); border: 1px solid var(--filet); border-left: 6px solid var(--bleu); border-radius: 6px; padding: 22px 22px 22px 20px; }
.services h3 { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.services svg { width: 34px; height: 34px; flex: none; }
.services p { color: var(--texte-2); font-size: 16px; margin-top: 8px; }

.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 36px; }
.photos figure { margin: 0; background: var(--blanc); border-radius: 6px; overflow: hidden; border: 1px solid var(--filet); }
.photos svg { display: block; width: 100%; height: auto; }
.photos figcaption { padding: 14px 16px; font-weight: 700; font-size: 16px; }
.photos figcaption span { display: block; font-weight: 400; color: var(--texte-2); font-size: 14.5px; }
.note { margin-top: 16px; font-size: 14.5px; color: var(--texte-2); }

.infos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; margin-top: 36px; align-items: start; }
.horaires { background: var(--nuit); color: var(--blanc); border-radius: 6px; padding: 26px; }
.horaires h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.horaires table { width: 100%; border-collapse: collapse; font-size: 16px; }
.horaires th { text-align: left; font-weight: 600; color: #C6D4E3; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.horaires td { text-align: right; font-weight: 800; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.horaires tr:last-child th, .horaires tr:last-child td { border-bottom: 0; }
.horaires .ferme { color: #FF9C8A; }
.horaires p { margin-top: 16px; font-size: 15px; color: #D3DEEA; }
.carte { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--filet); background: var(--blanc); }
.carte svg { display: block; width: 100%; height: auto; }
.carte figcaption { padding: 14px 16px; font-size: 15.5px; }
.carte figcaption strong { display: block; }

/* formulaire */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; margin-top: 36px; align-items: start; }
.contact .appel { display: flex; flex-direction: column; gap: 14px; }
.contact .numero { font-size: 30px; font-weight: 900; color: var(--nuit); letter-spacing: 0.02em; }
form { background: var(--fond); border: 1px solid var(--filet); border-radius: 6px; padding: 24px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
legend { font-size: 19px; font-weight: 800; margin-bottom: 6px; padding: 0; }
label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #9DB0C4; border-radius: 6px; background: var(--blanc); color: var(--texte); }
textarea { min-height: 110px; resize: vertical; }
fieldset[disabled] input, fieldset[disabled] textarea { background: #EEF2F6; }
fieldset[disabled] .btn { opacity: 0.6; cursor: not-allowed; }
.avertissement { margin-bottom: 16px; padding: 12px 14px; border-radius: 6px; background: #FFF3C9; color: #5A4300; font-weight: 700; font-size: 15px; }

/* pied */
.pied { background: var(--nuit); color: #D3DEEA; padding: 40px 0 0; font-size: 15.5px; }
.pied .largeur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-bottom: 32px; }
.pied strong { color: var(--blanc); }
.pied .bandeau-exemple { background: #000; }

/* message des boutons d'exemple */
.message-exemple {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 30;
  width: min(520px, calc(100% - 32px)); padding: 14px 18px; border-radius: 8px;
  background: #000; color: #fff; font-weight: 700; font-size: 15.5px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.message-exemple:empty { display: none; }

/* barre d'appel sur téléphone */
.barre-appel { display: none; }

@media (max-width: 860px) {
  .entete nav { display: none; }
  .accroche { padding: 36px 0 48px; }
  .accroche .largeur, .infos, .contact { grid-template-columns: 1fr; }
  .dessin { max-width: 300px; order: -1; }
  .section { padding: 52px 0; }
}
@media (max-width: 600px) {
  .largeur { padding: 0 18px; }
  .entete .btn { display: none; }
  .accroche .boutons .btn { width: 100%; }
  .barre-appel {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--nuit); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  }
  .barre-appel .btn { flex: 1; }
  body { padding-bottom: 72px; }
  .dessin { display: none; }
}
