/* p4x.be — feuille de style unique du site statique */

@font-face {
  font-family: "Abel";
  src: url("fonts/abel.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  font-weight: 300;
  src: url("fonts/roboto-light.ttf") format("truetype");
  font-display: swap;
}

:root {
  /* Charte P4X */
  --rouge: #b4312f;
  --jaune: #f3c601;
  --vert: #67955c;
  --gris: #b5b4b4;

  --fond: #ffffff;
  --fond-doux: #f5f4f1;
  --texte: #23262b;
  --texte-doux: #5b6068;
  --trait: #e2e0db;
  --nuit: #1b1e23;

  --largeur: 68rem;
  --gouttiere: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "Roboto", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Abel", "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--rouge); }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 400; color: #000; }

.contenu {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.evitement {
  position: absolute;
  left: -999rem;
}
.evitement:focus {
  left: 1rem;
  top: 1rem;
  background: var(--jaune);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* En-tête */
.entete {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--trait);
}
.entete .contenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.entete img { display: block; height: 2.6rem; width: auto; }
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Abel", sans-serif;
  font-size: 1.05rem;
}
.menu a { color: var(--texte); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.menu a:hover, .menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--jaune); }

/* Boutons */
.bouton {
  display: inline-block;
  font-family: "Abel", sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 0.25rem;
  background: var(--rouge);
  color: #fff;
  border: 2px solid var(--rouge);
}
.bouton:hover { background: #8f2523; border-color: #8f2523; }
.bouton.clair { background: transparent; color: #fff; border-color: #fff; }
.bouton.clair:hover { background: #fff; color: var(--nuit); }
.bouton.contour { background: transparent; color: var(--rouge); }
.bouton.contour:hover { background: var(--rouge); color: #fff; }

/* Bandeaux rapaces */
.rapace {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  background: var(--nuit) center / cover no-repeat;
  color: #fff;
}
.rapace::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1) 65%);
}
.rapace .contenu { position: relative; width: 100%; padding-top: 3rem; padding-bottom: 2.25rem; }
.rapace .valeurs {
  font-family: "Abel", sans-serif;
  font-size: 1.15rem;
  margin: 0;
  padding-left: 0.9rem;
  border-left: 4px solid var(--jaune);
}
.rapace.accueil { min-height: min(38rem, 82vh); }
.rapace.accueil h1 { max-width: 20ch; }
.rapace.accueil .accroche { font-size: 1.2rem; max-width: 36rem; }
.rapace.mince { min-height: 14rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2rem; }

.chouette { background-image: url("img/chouette.jpg"); }
.buse { background-image: url("img/buse.jpg"); }
.pygargue { background-image: url("img/pygargue.jpg"); }
.faucon { background-image: url("img/faucon.jpg"); }

/* Sections */
.section { padding: 4rem 0; }
.section.douce { background: var(--fond-doux); }
.chapeau { max-width: 44rem; color: var(--texte-doux); font-size: 1.15rem; }

.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.carte {
  background: var(--fond);
  border: 1px solid var(--trait);
  border-top: 4px solid var(--gris);
  border-radius: 0.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.carte.rouge { border-top-color: var(--rouge); }
.carte.jaune { border-top-color: var(--jaune); }
.carte.verte { border-top-color: var(--vert); }
.carte p { color: var(--texte-doux); }
.carte .suite { margin-top: auto; font-family: "Abel", sans-serif; }
.prix {
  font-family: "Abel", sans-serif;
  font-size: 1.9rem;
  color: #000;
  margin: 0.25rem 0 0.1rem;
}
.prix small { font-size: 1rem; color: var(--texte-doux); }
.note { font-size: 0.95rem; color: var(--texte-doux); }
.etiquette {
  align-self: flex-start;
  font-family: "Abel", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

/* Tableaux de prix */
.defilement { overflow-x: auto; margin-top: 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 28rem; background: var(--fond); }
caption { text-align: left; font-family: "Abel", sans-serif; font-size: 1.2rem; padding-bottom: 0.5rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--trait); }
thead th { font-family: "Abel", sans-serif; font-weight: 400; color: var(--texte-doux); border-bottom: 2px solid var(--gris); }
td.nombre, th.nombre { text-align: right; white-space: nowrap; }

/* Listes */
.coches { list-style: none; padding: 0; margin: 1rem 0; }
.coches li { padding-left: 1.6rem; position: relative; margin-bottom: 0.4rem; }
.coches li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 3px solid var(--vert);
  border-bottom: 3px solid var(--vert);
  transform: rotate(-45deg);
}
.journal { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 3px solid var(--jaune); }
.journal li { padding: 0.35rem 0 0.35rem 1rem; }
.journal b { font-family: "Abel", sans-serif; font-weight: 400; color: var(--rouge); }

.deux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2.5rem;
  align-items: start;
}
.fil { font-size: 0.95rem; color: var(--texte-doux); margin-bottom: 1.5rem; }
.fil a { color: inherit; }

/* Contact */
.telephone { font-family: "Abel", sans-serif; font-size: 1.7rem; margin: 0; }
.telephone a { color: inherit; text-decoration: none; }
.urgence { border-left: 4px solid var(--rouge); padding-left: 1rem; }

/* Pied */
.pied { background: var(--nuit); color: #cfd2d6; padding: 3rem 0 2rem; font-size: 0.95rem; }
.pied a { color: #fff; }
.pied h2 { font-size: 1.15rem; color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.3rem; }
.pied .legal { border-top: 1px solid #3a3e45; margin-top: 2rem; padding-top: 1.25rem; color: #9a9ea5; }

.maquette {
  background: var(--jaune);
  color: #000;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.3rem 1rem;
}

@media (max-width: 40rem) {
  .section { padding: 2.75rem 0; }
  .entete img { height: 2.1rem; }
  /* Le texte passe devant l'oiseau : voile plus dense pour rester lisible */
  .rapace.accueil::before { background: rgba(0, 0, 0, 0.62); }
  /* Les trois colonnes tiennent dans l'écran, sans défilement latéral */
  table { min-width: 0; font-size: 0.95rem; }
  th, td { padding: 0.6rem 0.4rem; }}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Pages d'aide */
/* Texte courant : aligné sur l'en-tête, lignes limitées en longueur */
.prose > * { max-width: 46rem; }
/* Bandeau qui porte un titre : voile uniforme pour garder le texte lisible */
.rapace.mince:has(h1)::before { background: rgba(0, 0, 0, 0.55); }
.espace { margin-top: 2.5rem; }
.rapace.mince h1 { margin-bottom: 0.3em; }
.rapace.mince .accroche { font-size: 1.15rem; margin: 0; max-width: 36rem; }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--fond-doux);
  border: 1px solid var(--trait);
  border-radius: 0.2rem;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}
.douce code { background: var(--fond); }
.lexique { margin: 1.5rem 0 0; border-left: 3px solid var(--jaune); padding-left: 1rem; }
.lexique dt { font-family: "Abel", sans-serif; font-size: 1.2rem; color: var(--rouge); }
.lexique dd { margin: 0 0 0.9rem; }
.prose .bouton + .bouton, .prose .bouton { margin: 0 0.5rem 0.5rem 0; }

/* Ambiance du site d'origine : en-tête sombre, services posés sur la buse, hibou en pied de page */
.entete { background: rgba(20, 22, 26, 0.96); border-bottom-color: #2c3036; }
.menu { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.menu a { color: #f1f1ee; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--rouge); }

.section.sombre {
  position: relative;
  color: #f1f1ee;
  background-color: var(--nuit);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.section.sombre::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 19, 0.62);
}
.section.sombre .contenu { position: relative; }
.section.sombre h2 { text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.section.sombre .chapeau { color: #d7d9dc; margin-left: auto; margin-right: auto; text-align: center; }
.section.sombre .carte {
  background: rgba(20, 22, 26, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  text-align: center;
}
.section.sombre .carte p { color: #e3e4e6; }
.section.sombre .carte h3 { font-size: 1.6rem; }
.section.sombre .carte.rouge h3 { color: #e0605d; }
.section.sombre .carte.jaune h3 { color: var(--jaune); }
.section.sombre .carte.verte h3 { color: #8fc082; }
.section.sombre .carte .suite a { color: #fff; }
.section.sombre .valeurs {
  font-family: "Abel", sans-serif;
  margin: 2.5rem 0 0;
  padding-left: 0.9rem;
  border-left: 4px solid var(--jaune);
}

.pied {
  position: relative;
  background: #17191d url("img/hibou.jpg") left bottom / auto 100% no-repeat;
}
.pied::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(23, 25, 29, 0.55), rgba(23, 25, 29, 0.93) 45%);
}
.pied .contenu { position: relative; }
