/* maisonbattisti.com - Guide du Cap Corse. Стили по листу «дизайн» ТЗ.
   Токены вынесены в :root и сверяются с ТЗ по значениям. Анимаций,
   каруселей и ярких баннеров нет - прямое требование листа. */
:root {
  --fond: #ffffff;
  --texte: #545257;
  --sombre: #333538;
  --sombre-2: #242629;
  --rouge: #f44336;
  --creme: #faf8f4;
  --filet: #dddddd;
  --gris: #888888;
  --largeur: 1100px;
  --colonne: 800px;
  --titre: Lora, Georgia, "Times New Roman", serif;
  --corps: Lato, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 17px/1.7 var(--corps);
}

h1, h2, h3 { font-family: var(--titre); color: var(--sombre); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 36px; line-height: 1.25; }
h2 { font-size: 27px; margin-top: 1.7em; }
h3 { font-size: 21px; margin-top: 1.4em; }
p { margin: 0 0 1.1em; }
a { color: var(--rouge); }
a:hover { text-decoration: underline; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.colonne, .page-article { max-width: calc(var(--colonne) + 48px); }
.texte { max-width: var(--colonne); }
.centre { text-align: center; }

.acces-direct { position: absolute; left: -9999px; }
.acces-direct:focus { left: 8px; top: 8px; z-index: 20; background: var(--sombre); color: #fff; padding: 10px 16px; }

/* --- шапка: тёмная, sticky --- */
.entete { position: sticky; top: 0; z-index: 10; background: var(--sombre); }
.entete-in { display: flex; align-items: center; min-height: 68px; gap: 24px; }
.marque { font-family: var(--titre); font-size: 21px; color: #fff; text-decoration: none; margin-right: auto; }
.marque:hover { text-decoration: none; color: #fff; }
.menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu a {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; text-decoration: none;
}
.menu a:hover, .menu a[aria-current] { color: var(--rouge); text-decoration: none; }
.menu-bascule, .bascule { display: none; }

/* --- крошки --- */
.ariane { border-bottom: 1px solid var(--filet); }
.ariane ol {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0;
  font-size: 13px; color: var(--gris); overflow-x: auto; white-space: nowrap;
}
.ariane li + li::before { content: "/ "; color: var(--gris); }
.ariane a { color: var(--gris); text-decoration: none; }
.ariane a:hover { color: var(--rouge); }
.ariane span { color: var(--texte); }

/* --- герой --- */
.banniere { max-width: var(--largeur); margin: 28px auto 24px; padding: 0 24px; }
.banniere-img {
  /* height: auto обязателен: атрибуты width/height у <img> применяются как
     презентационная подсказка и перебивают aspect-ratio. */
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: cover; border-radius: 3px; background: var(--creme);
}

main { padding-bottom: 64px; }
main > .conteneur:first-of-type { padding-top: 28px; }
h1 { margin-bottom: .6em; }
h1::after {
  content: ""; display: block; width: 64px; height: 2px;
  background: var(--rouge); margin: 14px 0 0;
}
.page-article h1::after, .centre h1::after { margin-left: auto; margin-right: auto; }
.page-article h1, .centre h1 { text-align: center; }

ul, ol { padding-left: 20px; }
.texte li::marker, .page-article li::marker { color: var(--rouge); }

/* --- внутренняя статья: фото 4:3 по центру над H1 --- */
.photo-article { margin: 0 auto 24px; max-width: 540px; text-align: center; }
.photo-article-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 3px; background: var(--creme);
}
.photo-article figcaption { font-size: 12px; color: var(--gris); margin-top: 8px; }

/* --- карточки разделов --- */
.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 32px 0; }
.fiche { background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.fiche a { display: block; color: inherit; text-decoration: none; padding-bottom: 16px; }
.fiche .visuel {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2;
  object-fit: cover; border-radius: 3px 3px 0 0; background: var(--creme);
}
.fiche h3 { font-size: 20px; margin: 14px 16px 6px; }
.fiche p { font-size: 14px; margin: 0 16px 10px; }
.fiche .lien-suite { font-size: 14px; color: var(--rouge); margin: 0 16px; }
.fiche a:hover h3 { color: var(--rouge); }

/* --- чередующиеся секции и блок «Voir aussi» --- */
/* Кремовый блок внутри колонки контента: полноэкранную подложку не делаем
   намеренно - приём с margin-left: calc(50% - 50vw) ломает ширину страницы,
   когда появляется вертикальная полоса прокрутки. */
.bloc {
  background: var(--creme); padding: 28px 24px; margin: 48px 0;
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.bloc h2 { margin-top: 0; }
/* Лист «дизайн» просит ЧЕРЕДОВАНИЕ #FFFFFF и #FAF8F4, а не просто кремовые
   полосы: белый блок отличается от фона страницы линиями, кремовый - заливкой. */
.bloc-clair { background: var(--fond); }
.aussi { border-top: 1px solid var(--filet); margin-top: 48px; padding-top: 20px; max-width: var(--colonne); }
.aussi h2 { font-size: 20px; margin-top: 0; }
.aussi ul { list-style: none; padding: 0; }
.aussi li { margin-bottom: 8px; }
.aussi a { font-size: 15px; }

/* --- формы --- */
.formulaire label { font-size: 14px; color: var(--gris); }
.formulaire input, .formulaire textarea {
  width: 100%; max-width: 520px; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--filet); border-radius: 2px; background: #fff; color: var(--texte);
}
.bouton {
  display: inline-block; background: var(--sombre); color: #fff; font-size: 15px;
  text-decoration: none; padding: 11px 22px; border-radius: 2px; border: 0; cursor: pointer;
}
.bouton:hover { background: var(--rouge); color: #fff; text-decoration: none; }

/* --- подвал --- */
.pied { background: var(--sombre); color: #dddddd; padding: 32px 0; margin-top: 56px; }
.pied-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.pied a { color: #fff; }
.pied a:hover { color: var(--rouge); }
.pied-logo { font-family: var(--titre); font-size: 19px; color: #fff; margin-bottom: 8px; }
.pied-texte p { font-size: 15px; max-width: 46ch; }
.pied-liens ul { list-style: none; margin: 0; padding: 0; }
.pied-liens li { margin-bottom: 8px; font-size: 15px; }
.pied-bas { border-top: 1px solid var(--texte); margin-top: 24px; padding-top: 16px; font-size: 13px; color: var(--gris); }
.pied-bas p { margin: 0; }

/* --- 404 / 410 --- */
.code-erreur { font-family: var(--titre); font-size: 72px; color: var(--rouge); line-height: 1; margin: 0 0 12px; }

@media (max-width: 1000px) {
  .fiches { grid-template-columns: repeat(2, 1fr); }
  .pied-in { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .fiches { grid-template-columns: 1fr; }
  .banniere { margin: 18px auto; }
  .bloc { padding: 28px 0; margin: 32px 0; }
  .bascule {
    display: block; width: 26px; height: 18px; cursor: pointer;
    border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative;
  }
  .bascule span { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: #fff; }
  .menu { display: none; width: 100%; background: var(--sombre); }
  .menu-bascule:checked ~ .menu { display: block; }
  .menu ul { flex-direction: column; gap: 0; padding: 4px 0 14px; }
  .menu li { border-top: 1px solid var(--sombre-2); }
  .menu a { display: block; padding: 11px 0; font-size: 14px; }
  .entete-in { flex-wrap: wrap; gap: 10px; }
}
