/* ============================================================
   AMS Industrie — feuille de style
   Pour changer une couleur sur tout le site, modifie-la ici.
   ============================================================ */
:root {
  --ardoise: #343e50;        /* titres, boutons, menu actif */
  --ardoise-hover: #232b39;
  --texte: #2b2b2b;          /* texte principal */
  --texte-doux: #666b73;     /* texte gris */
  --menu: #5c6470;           /* liens du menu */
  --fond-gris: #f2f2f2;      /* sections grises */
  --pied: #3d3d3d;           /* pied de page */
  --or: #b58a3a;
  --largeur: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--texte);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: var(--ardoise); }

h1, h2, h3, h4 {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 400;
  color: var(--ardoise);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--gris { background: var(--fond-gris); }
.centre { text-align: center; }
.gras { font-weight: 700; }
.doux { color: var(--texte-doux); }

/* ---------- Lien d'accessibilité ---------- */
.passer { position: absolute; left: -9999px; }
.passer:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- En-tête ---------- */
.entete { background: #0b0b0c; padding: 22px 0 26px; position: relative; z-index: 10; border-bottom: 1px solid rgba(201,162,74,.35); }
.entete__haut { display: flex; justify-content: center; align-items: center; }
.logo img { height: 86px; width: auto; }
.burger { display: none; }
.menu { margin-top: 18px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.menu a {
  display: block; padding: 9px 18px; text-decoration: none;
  color: #d9d9d9; font-size: 1.05rem; border-radius: 3px; transition: background .2s, color .2s;
}
.menu a:hover { color: #e9c46a; background: rgba(255,255,255,.06); }
.menu a.actif { background: linear-gradient(135deg, #e9c46a, #b8892b); color: #111; font-weight: 700; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; background: var(--ardoise); color: #fff; text-decoration: none;
  font-family: "Lato", Arial, sans-serif; font-size: 1.1rem; padding: 16px 28px; border: 0; border-radius: 2px;
  cursor: pointer; transition: background .2s;
}
.bouton:hover { background: var(--ardoise-hover); }

/* ---------- Bannière (accueil) ---------- */
/* Pour ajouter la photo de bannière : dépose ton image dans le dossier "images"
   sous le nom "banniere.jpg". Elle s'affichera automatiquement. */
.banniere {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center;
  padding: 110px 0;
  color: #fff;
  background:
    linear-gradient(rgba(25,30,40,.55), rgba(25,30,40,.55)),
    url("images/banniere.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 30% 20%, #4a5568 0%, #2a3140 55%, #1b2029 100%);
}
.banniere h1 { color: #fff; text-align: center; margin-bottom: .35em; }
.banniere h1 + h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.banniere p {
  font-family: "Merriweather", Georgia, serif; font-weight: 700;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem); line-height: 1.4; max-width: 1000px; margin: 0 auto .9em;
}
.banniere .bouton { margin-top: 1.2em; }

/* ---------- Blocs texte + image ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.duo--haut { align-items: start; }
.duo img { width: 100%; height: auto; object-fit: cover; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-10-7 { aspect-ratio: 10 / 7; }
.ratio-5-2 { aspect-ratio: 5 / 2; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio img { width: 100%; object-fit: cover; margin-bottom: 26px; }
.trio h2 { font-size: clamp(1.5rem, 2.3vw, 2.15rem); }

.retrait { max-width: 900px; margin: 0 auto 50px; }
.engagement img { width: 100%; object-fit: cover; }

.citation h2, .citation h3 { text-align: center; max-width: 1000px; margin: 0 auto; }

/* ---------- Formulaire ---------- */
.formulaire label { display: block; font-weight: 700; margin: 0 0 6px; }
.formulaire input, .formulaire textarea {
  width: 100%; font: inherit; padding: 12px 14px; margin-bottom: 20px;
  border: 1px solid #c9ccd1; border-radius: 2px; background: #fff;
}
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--ardoise); border-color: var(--ardoise); }
.formulaire textarea { min-height: 160px; resize: vertical; }
.cache { display: none; }

.coordonnees h3 { margin-bottom: .5em; }
.coordonnees a { text-decoration: none; }

/* ---------- Bloc contact (page Pourquoi) ---------- */
.infos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.infos h4 { margin-bottom: .3em; }
.infos p { margin: 0; }

/* ---------- Blog ---------- */
.article { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; margin-bottom: 80px; }
.article figure { margin: 0; }
.article img { width: 100%; height: auto; }
.article figcaption { text-align: center; color: var(--texte-doux); font-style: italic; margin-top: 10px; font-size: .95rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--pied); color: #d6d6d6; padding: 34px 0; font-size: 1rem; }
.pied .conteneur { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pied a { color: #d6d6d6; }

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .entete__haut { justify-content: space-between; }
  .logo img { height: 60px; }
  .burger {
    display: block; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .burger span { display: block; width: 28px; height: 3px; background: #e9c46a; margin: 6px 0; border-radius: 2px; }
  .menu { display: none; }
  .menu.ouvert { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; }
  .menu a { text-align: center; }
  .duo, .trio, .article { grid-template-columns: 1fr; gap: 28px; }
  .duo--inverse > :first-child { order: 2; }
  .infos { grid-template-columns: 1fr; }
  .banniere { min-height: 70vh; padding: 70px 0; }
  .article img { max-width: 420px; margin: 0 auto; }
}
