/* =========================================================
   KROUKROU - accueil public, charte "Perigord" de la banniere :
   blanc / gris clair, rouge brique, noir doux, anthracite,
   Montserrat, aplats sans degrade, bandes coupees en diagonale.
   ========================================================= */
:root {
  --rouge: #B83A2B;
  --rouge-fonce: #8F2B1F;
  --noir: #1B1B1D;
  --anthracite: #3A3B3F;
  --gris: #6A6B70;
  --fond: #F3F3F4;
  --trait: #E4E4E7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Montserrat", system-ui, "Segoe UI", sans-serif;
  color: var(--noir); background: #fff;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

.banniere { line-height: 0; background: #fff; border-bottom: 4px solid var(--noir); }
.banniere img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: left center; }

/* ---------- presentation + connexion ---------- */
.intro {
  max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start;
}
.surtitre {
  display: inline-block; margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--rouge);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris);
}
h1 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.18; letter-spacing: -.01em; }
h1 span { color: var(--rouge); }
.chapo { margin-top: 18px; font-size: 1.04rem; line-height: 1.65; color: var(--gris); max-width: 36em; }
.points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.points li::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--rouge);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.connexion {
  position: relative; overflow: hidden; display: grid; gap: 16px;
  background: #fff; padding: 34px 30px 28px; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(0,0,0,.08);
  border-top: 4px solid var(--noir);
}
.connexion::before, .connexion::after {          /* coin en bandes diagonales */
  content: ""; position: absolute; top: 0; right: 0; width: 64px; height: 26px;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}
.connexion::before { background: var(--anthracite); right: 10px; }
.connexion::after  { background: var(--rouge); }
.connexion h2 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.connexion label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.connexion input {
  font: inherit; font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--noir);
  padding: 12px 14px; border: 1px solid #D5D5D9; border-radius: 4px; background: #FAFAFB;
}
.connexion input:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(184,58,43,.15); background: #fff; }
.connexion button {
  font: inherit; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; margin-top: 6px; padding: 14px; border: 0; border-radius: 4px;
  color: #fff; background: var(--rouge); transition: background .15s, transform .15s;
}
.connexion button:hover { background: var(--rouge-fonce); transform: translateY(-1px); }
.erreur { background: #FDE9E7; color: #A61F17; border-left: 4px solid #E5332A; padding: 10px 12px; font-size: .9rem; font-weight: 600; }
.aide { font-size: .8rem; color: var(--gris); line-height: 1.5; }

/* ---------- services ---------- */
.titre-section {
  max-width: 1160px; margin: 16px auto 18px; padding: 0 24px;
  display: flex; align-items: center; gap: 14px;
  font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
}
.titre-section::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--rouge) 0 70px, var(--trait) 70px); }
.services {
  max-width: 1160px; margin: 0 auto; padding: 0 24px 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.services article {
  padding: 26px 24px; background: var(--fond); border-radius: 6px;
  border-left: 4px solid var(--noir); transition: border-color .15s, transform .15s, background .15s;
}
.services article:hover { border-left-color: var(--rouge); background: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.07); }
.services svg {
  width: 42px; height: 42px; fill: none; stroke: var(--noir); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px;
}
.services svg .plein { fill: var(--rouge); stroke: none; }
.services svg polyline, .services svg path:last-child { stroke: var(--rouge); }
.services h3 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.services p { color: var(--gris); line-height: 1.6; font-size: .92rem; }

/* ---------- pied : bandes diagonales comme la banniere ---------- */
.pied {
  position: relative; overflow: hidden; text-align: center;
  background: var(--noir); color: #B9BAC0; padding: 26px 16px; font-size: .85rem;
}
.pied p { position: relative; z-index: 2; }
.pied b { color: #fff; font-weight: 800; letter-spacing: .02em; }
.pied b i { font-style: normal; color: var(--rouge); }
.bande { position: absolute; top: 0; bottom: 0; width: 140px; z-index: 1; }
.bande-g { left: 0; background: var(--rouge); clip-path: polygon(0 0, 100% 0, 55% 100%, 0 100%); }
.bande-d { right: 0; background: var(--rouge); clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); }

@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; gap: 36px; padding: 36px 16px 28px; }
  .titre-section { padding: 0 16px; }
  .services { grid-template-columns: 1fr; padding: 0 16px 52px; }
  .bande { width: 60px; }
}
