/* ==========================================================================
   Archidays — feuille unique du thème enfant.
   Reprend mot pour mot le vocabulaire deja pose dans front-page.php et
   category.php (classes .ah-*), et l'etend a l'en-tete, au pied et a l'article.
   L'accent est unifie sur le terre cuite du bandeau et du favicon (#AE4C29) :
   la home utilisait un brun #9c6b4f qui ne correspondait a aucune autre surface.
   ========================================================================== */

:root {
  --accent: #AE4C29;
  --accent-dark: #8E3C1F;
  --ink: #2F2A26;
  --muted: #756C64;
  --cream: #FAF7F3;
  --line: #EAE3DB;
}

body { margin: 0; background: #fff; }

.ah {
  --accent: #AE4C29; --accent-dark: #8E3C1F; --ink: #2F2A26;
  --muted: #756C64; --cream: #FAF7F3; --line: #EAE3DB;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); line-height: 1.6;
}
.ah * { box-sizing: border-box; }
/* Le kit Elementor injecte ses couleurs de lien plus bas dans la page : ces regles
   doivent passer devant, sinon tous les titres de cartes virent au rouge du kit. */
body .ah a, body .ah a:visited, body .ah a:hover, body .ah a:focus { color: inherit; text-decoration: none; }
body .ah-card strong, body .ah-intent strong, body .ah-prix-card strong { color: var(--ink); }
body .ah-card:hover strong, body .ah-intent:hover strong { color: var(--accent-dark); }
body .ah-section-head a, body .ah-intent em, body .ah-art-meta a, body .ah-art-author a { color: var(--accent-dark); }
body .ah-tag, body .ah-eyebrow { color: var(--accent); }
body .ah-nav a { color: #FBEDE7; }
body .ah-nav a:hover, body .ah-nav a:focus { color: #fff; }
body .ah-foot a { color: #C6BBB2; }
body .ah-foot a:hover { color: #fff; }
body .ah-brand, body .ah-brand .ah-word { color: #fff; }
.ah-wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.ah h1, .ah h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0; }
.ah img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }

.ah-eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.ah-tag { font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-dark); font-weight: 600; }

/* ------------------------------------------------------------- En-tete */

.ah-head { background: var(--accent); position: sticky; top: 0; z-index: 40; }
.ah-head-in {
  max-width: 1120px; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  min-height: 78px;
}
.ah-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.ah-brand img { max-height: 34px; width: auto; display: block; }
.ah-brand .ah-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.ah-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ah-nav a {
  color: #FBEDE7; font-size: .92rem; font-weight: 500;
  padding-block: 8px; position: relative; transition: color .15s ease-out;
}
.ah-nav a:hover, .ah-nav a:focus { color: #fff; font-weight: 700; }
.ah-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px;
  background: #fff; transition: width .28s cubic-bezier(.4,0,.2,1);
}
.ah-nav a:hover::after { width: 100%; }
.ah-burger, .ah-burger-box { display: none; }

/* --------------------------------------------------------------- Home */

.ah-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 46px 0 44px; }
.ah-hero-flex { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.ah-hero-txt { flex: 1; min-width: 300px; }
.ah-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.ah-hero p.ah-sub { margin: 14px 0 0; color: var(--muted); font-size: 1.03rem; }
.ah-hero-img { flex: 1; min-width: 280px; }
.ah-hero-img img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 10px 30px rgba(47,42,38,.12); }

.ah-intents { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 36px; }
.ah-intent { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, transform .15s; }
.ah-intent:hover { border-color: var(--accent); transform: translateY(-2px); }
.ah-intent .ah-i-img { aspect-ratio: 5/2; overflow: hidden; }
.ah-intent .ah-i-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-intent .ah-i-body { padding: 16px 18px 18px; }
.ah-intent strong { font-size: 1.06rem; display: block; margin-bottom: 6px; }
.ah-intent span { color: var(--muted); font-size: .92rem; }
.ah-intent em { display: inline-block; margin-top: 10px; font-style: normal; color: var(--accent-dark); font-weight: 600; font-size: .9rem; }

.ah-section { padding: 42px 0; }
.ah-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ah-section h2 { font-size: 1.45rem; }
.ah-section-head a { color: var(--accent-dark); font-size: .92rem; font-weight: 600; }

.ah-prix { background: #fff; }
.ah-prix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.ah-prix-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 15px 17px; display: block; }
.ah-prix-card:hover { background: var(--cream); }
.ah-prix-card strong { display: block; margin-top: 6px; font-size: .96rem; line-height: 1.4; font-weight: 600; }

.ah-rub { background: var(--cream); border-top: 1px solid var(--line); }
.ah-rub-row { margin-bottom: 34px; }
.ah-rub-row:last-child { margin-bottom: 0; }

.ah-latest-grid, .ah-rub-grid, .ah-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ah-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.ah-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.ah-card .ah-thumb { aspect-ratio: 16/9; background: var(--cream); }
.ah-card .ah-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-card .ah-card-body { padding: 13px 16px 15px; }
.ah-card strong { display: block; margin: 6px 0 8px; font-size: .98rem; line-height: 1.4; font-weight: 600; }
.ah-card span.ah-min { color: var(--muted); font-size: .84rem; }

.ah-author { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.ah-author-flex { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.ah-author-flex img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }
.ah-author-flex .ah-a-body { flex: 1; min-width: 260px; }
.ah-author-flex .ah-a-body p { margin: 6px 0 0; color: var(--muted); }
.ah-author-flex .ah-a-body a { color: var(--accent-dark); font-weight: 600; }

/* ----------------------------------------------------------- Rubriques */

.ah-cat-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 38px 0 34px; }
.ah-cat-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.ah-cat-head p { max-width: 680px; margin: 12px 0 0; color: var(--muted); }
.ah-cat-head .ah-count { margin-top: 10px; font-size: .85rem; color: var(--muted); }

.ah-pagination { margin-top: 30px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ah-pagination a, .ah-pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: .9rem; }
.ah-pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.ah-pagination a:hover { border-color: var(--accent); }
.ah-empty { color: var(--muted); }

/* ------------------------------------------------------------- Article */

.ah-fil { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ah-fil a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.ah-fil a:hover { text-decoration-color: var(--accent); }

.ah-art-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 38px 0 34px; }
.ah-art-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 8px; }
.ah-art-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.ah-art-meta a { color: var(--accent-dark); font-weight: 600; }

.ah-art-img { max-width: 1120px; margin: 0 auto; padding: 26px 22px 0; }
.ah-art-img img { width: 100%; border-radius: 14px; display: block; }

.ah-art-body { padding: 34px 0 46px; }
.ah-art-text { max-width: 62ch; margin: 0 auto; font-size: 1.04rem; }
.ah-art-text h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.ah-art-text h3 { font-size: 1.2rem; font-family: Georgia, "Times New Roman", serif; margin: 26px 0 10px; }
.ah-art-text p { margin: 0 0 16px; }
.ah-art-text a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.ah-art-text ul, .ah-art-text ol { padding-left: 22px; margin: 0 0 16px; }
.ah-art-text li { margin-bottom: 7px; }
.ah-art-text li::marker { color: var(--accent); }
.ah-art-text blockquote { margin: 26px 0; padding-left: 20px; border-left: 1px solid var(--line); font-family: Georgia, serif; font-style: italic; color: var(--muted); }
.ah-art-text table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .93rem; }
.ah-art-text th { background: var(--accent); color: #fff; text-align: left; }
.ah-art-text th, .ah-art-text td { padding: 10px 13px; border: 1px solid var(--line); }
.ah-art-text tbody tr:nth-child(even) { background: var(--cream); }
.ah-art-text img { border-radius: 10px; }
.ah-art-text figcaption { font-size: .82rem; color: var(--muted); padding-top: 6px; }

.ah-art-author { max-width: 62ch; margin: 34px auto 0; display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 20px; }
.ah-art-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.ah-art-author strong { display: block; margin-bottom: 5px; }
.ah-art-author p { margin: 0; color: var(--muted); font-size: .92rem; }
.ah-art-author a { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }

.ah-art-next { background: var(--cream); border-top: 1px solid var(--line); padding: 38px 0 46px; }

.ah-page-body { padding: 34px 0 50px; }

/* ---------------------------------------------------------------- Pied */

.ah-foot { background: #2A231F; color: #C6BBB2; }
.ah-foot-in { max-width: 1120px; margin: 0 auto; padding: 46px 22px 30px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.ah-foot h2 { font-family: system-ui, sans-serif; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #E8A88C; margin: 0 0 14px; }
.ah-foot ul { list-style: none; margin: 0; padding: 0; }
.ah-foot li { margin-bottom: 9px; }
.ah-foot a { color: #C6BBB2; font-size: .92rem; transition: color .15s ease-out; }
.ah-foot a:hover { color: #fff; }
.ah-foot-nom { font-family: Georgia, serif; font-size: 1.24rem; color: #fff; margin: 0 0 12px; }
.ah-foot-ligne { font-size: .92rem; max-width: 46ch; margin: 0; }
.ah-foot-bas { max-width: 1120px; margin: 0 auto; padding: 16px 22px 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #8A7E76; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --------------------------------------------------------- Adaptations */

@media (max-width: 900px) {
  .ah-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ah-hero { padding: 32px 0 30px; }
  .ah-head-in { flex-wrap: wrap; min-height: 64px; }
  .ah-burger { display: block; cursor: pointer; padding: 8px; }
  .ah-burger span, .ah-burger span::before, .ah-burger span::after { display: block; width: 22px; height: 2px; background: #fff; content: ""; }
  .ah-burger span::before { transform: translateY(-7px); }
  .ah-burger span::after { transform: translateY(5px); }
  .ah-nav { display: none; width: 100%; }
  .ah-burger-box:checked ~ .ah-nav { display: block; }
  .ah-nav ul { flex-direction: column; gap: 0; padding-bottom: 10px; }
  .ah-nav li { border-top: 1px solid rgba(255,255,255,.18); }
  .ah-nav a { display: block; padding-block: 12px; }
  .ah-nav a::after { display: none; }
  .ah-foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ah * { transition-duration: 1ms !important; }
}
