/*
Theme Name: Aurouze Tours
Theme URI: https://www.aurouze-tours.fr
Author: IKONU
Author URI: https://ikonu.fr
Description: Thème sur mesure d’Aurouze Tours (37) : site vitrine orienté conversion — services 3D (dératisation, désinsectisation, désinfection, dépigeonnage), demande de devis en ligne centralisée, paramètres du thème et champs ACF.
Version: 0.1.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
Text Domain: aurouze-tours
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */

:root {
  --atr-primary: #1e6a29;
  --atr-primary-dark: #133c19;
  --atr-primary-light: #eaf4ec;
  /* Appel à l'action : le vert de la marque, plus de jaune. Sur fond sombre, un vert clair. */
  --atr-accent: #1e6a29;
  --atr-accent-dark: #133c19;
  --atr-accent-on-dark: #a6d9ae;
  --atr-cream: #f7f5ef;
  --atr-ink: #1f2a22;
  --atr-muted: #5c6b60;
  --atr-line: #d9e5dc;
  --atr-bg: #ffffff;
  --atr-bg-soft: #f4f8f5;
  --atr-white: #ffffff;
  --atr-danger: #b42318;
  --atr-success: #1e6a29;

  --atr-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --atr-sans: "Poppins", Arial, sans-serif;

  --atr-container: 1200px;
  --atr-radius: 16px;
  --atr-radius-sm: 10px;
  --atr-shadow: 0 14px 34px rgba(19, 60, 25, 0.12);
  --atr-shadow-sm: 0 6px 16px rgba(19, 60, 25, 0.08);
  --atr-header-h: 76px;
  --atr-adminbar: 0px;
}

body.admin-bar { --atr-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --atr-adminbar: 46px; } }

/* ==========================================================================
   1. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--atr-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--atr-ink);
  background: var(--atr-bg);
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--atr-primary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--atr-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--atr-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--atr-primary-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 100000;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: 0.6rem 1rem; background: var(--atr-primary-dark); color: #fff; border-radius: 8px;
}

/* ==========================================================================
   2. Layout helpers
   ========================================================================== */

.atr-wrap {
  width: min(100% - 2rem, var(--atr-container));
  margin-inline: auto;
}

.atr-wrap--narrow { max-width: 820px; }

.atr-section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.atr-section--soft { background: var(--atr-bg-soft); }
.atr-section--dark { background: var(--atr-primary-dark); color: #fff; }
.atr-section--dark h2, .atr-section--dark h3 { color: #fff; }
.atr-section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.atr-section__head { max-width: 760px; margin: 0 auto 2.25rem; text-align: center; }
.atr-section__head--left { margin-left: 0; text-align: left; }
.atr-section__text { color: var(--atr-muted); font-size: 1.05rem; }
.atr-section--dark .atr-section__text { color: rgba(255,255,255,0.8); }

.atr-eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--atr-primary);
}
.atr-eyebrow--light { color: var(--atr-primary); }

.atr-grid { display: grid; gap: 1.5rem; }
.atr-grid--2 { grid-template-columns: repeat(2, 1fr); }
.atr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.atr-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .atr-grid--3, .atr-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .atr-grid--2, .atr-grid--3, .atr-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   3. Buttons & forms
   ========================================================================== */

.atr-btn {
  --btn-bg: var(--atr-primary); --btn-fg: #fff; --btn-bd: var(--atr-primary);
  --btn-bg-h: var(--atr-primary-dark); --btn-fg-h: #fff; --btn-bd-h: var(--atr-primary-dark);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--atr-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Survol / focus : une seule logique partout (fond, texte et bordure changent ensemble). Le préfixe
   body.atr l'emporte sur les règles de liens des sections sombres et sur le kit Elementor résiduel. */
body.atr .atr-btn, body.atr a.atr-btn, body.atr a.atr-btn:visited { color: var(--btn-fg); }
body.atr .atr-btn:hover, body.atr .atr-btn:focus-visible {
  background: var(--btn-bg-h); border-color: var(--btn-bd-h); color: var(--btn-fg-h);
  transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(19, 60, 25, 0.55);
}
body.atr .atr-btn:active { transform: translateY(0); box-shadow: none; transition-duration: 0.05s; }
.atr-btn:focus-visible { outline: 3px solid var(--atr-accent-on-dark); outline-offset: 2px; }
.atr-btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; transition: transform 0.2s ease; }
.atr-btn:hover svg[class*="arrow"], .atr-btn:hover .atr-icon--arrow { transform: translateX(3px); }

/* Variantes sur fond clair */
.atr-btn--accent { --btn-bg: var(--atr-accent); --btn-bd: var(--atr-accent); --btn-bg-h: var(--atr-accent-dark); --btn-bd-h: var(--atr-accent-dark); }
.atr-btn--ghost { --btn-bg: transparent; --btn-fg: var(--atr-primary); --btn-bd: var(--atr-primary); --btn-bg-h: var(--atr-primary); --btn-fg-h: #fff; --btn-bd-h: var(--atr-primary); }
.atr-btn--white { --btn-bg: #fff; --btn-fg: var(--atr-primary-dark); --btn-bd: #fff; --btn-bg-h: var(--atr-primary-light); --btn-fg-h: var(--atr-primary-dark); --btn-bd-h: var(--atr-primary-light); }
.atr-btn--outline-white { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.6); --btn-bg-h: #fff; --btn-fg-h: var(--atr-primary-dark); --btn-bd-h: #fff; }

/* Sur fond sombre (bandeaux verts, pied de page, encarts, hero photo) : le bouton principal devient
   blanc, le secondaire un contour blanc ; au survol les deux se remplissent sans perdre leur texte. */
.atr-section--dark .atr-btn--accent, .atr-cta .atr-btn--accent, .atr-footer .atr-btn--accent,
.atr-aside-cta .atr-btn--accent, .atr-hero--bg .atr-btn--accent {
  --btn-bg: #fff; --btn-fg: var(--atr-primary-dark); --btn-bd: #fff;
  --btn-bg-h: var(--atr-accent-on-dark); --btn-fg-h: var(--atr-primary-dark); --btn-bd-h: var(--atr-accent-on-dark);
}
.atr-section--dark .atr-btn--ghost, .atr-cta .atr-btn--ghost, .atr-footer .atr-btn--ghost,
.atr-aside-cta .atr-btn--ghost, .atr-hero--bg .atr-btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.6);
  --btn-bg-h: #fff; --btn-fg-h: var(--atr-primary-dark); --btn-bd-h: #fff;
}
.atr-section--dark .atr-btn:hover, .atr-cta .atr-btn:hover, .atr-footer .atr-btn:hover,
.atr-aside-cta .atr-btn:hover, .atr-hero--bg .atr-btn:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

.atr-btn--lg { min-height: 54px; padding: 0.95rem 2rem; font-size: 1.02rem; }
.atr-btn--sm { min-height: 38px; padding: 0.5rem 1rem; font-size: 0.85rem; }
.atr-btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { body.atr .atr-btn:hover, body.atr .atr-btn:focus-visible { transform: none; } }

.atr-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.atr-actions--center { justify-content: center; }

.atr-form { display: grid; gap: 1rem; }
.atr-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .atr-form__row { grid-template-columns: 1fr; } }
.atr-form__field { display: grid; gap: 0.35rem; }
.atr-form__field label { font-size: 0.85rem; font-weight: 600; color: var(--atr-primary-dark); }
.atr-form__field label .req { color: var(--atr-danger); }
.atr-form input[type=text], .atr-form input[type=email], .atr-form input[type=tel],
.atr-form select, .atr-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--atr-line);
  border-radius: var(--atr-radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--atr-ink);
}
.atr-form input:focus, .atr-form select:focus, .atr-form textarea:focus {
  outline: 2px solid var(--atr-primary);
  outline-offset: 1px;
  border-color: var(--atr-primary);
}
.atr-form textarea { min-height: 120px; resize: vertical; }
.atr-form__choice { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.atr-form__choice label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 0.95rem; border: 1px solid var(--atr-line); border-radius: 999px;
  background: #fff; cursor: pointer; font-weight: 500; font-size: 0.9rem; color: var(--atr-ink);
}
.atr-form__choice input { accent-color: var(--atr-primary); }
.atr-form__choice label:has(input:checked) { border-color: var(--atr-primary); background: var(--atr-primary-light); color: var(--atr-primary-dark); }
.atr-form__consent { font-size: 0.82rem; color: var(--atr-muted); display: flex; gap: 0.5rem; align-items: flex-start; }
.atr-form__consent input { margin-top: 0.25rem; accent-color: var(--atr-primary); }
.atr-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.atr-form__note { font-size: 0.8rem; color: var(--atr-muted); margin: 0; }

.atr-notice { padding: 0.9rem 1.1rem; border-radius: var(--atr-radius-sm); margin: 0 0 1.25rem; font-size: 0.95rem; }
.atr-notice--error { background: #fdecea; color: var(--atr-danger); border: 1px solid #f5c2bd; }
.atr-notice--success { background: var(--atr-primary-light); color: var(--atr-primary-dark); border: 1px solid #bcd8c2; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.atr-header {
  position: sticky;
  top: var(--atr-adminbar);
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--atr-line);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.atr-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(19, 60, 25, 0.35); border-bottom-color: transparent; }
.atr-nav > ul > li > a { transition: background-color 0.2s ease, color 0.2s ease; }
.atr-nav .sub-menu { animation: atr-drop 0.18s ease; }
@keyframes atr-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.atr-header__topbar {
  background: var(--atr-primary-dark);
  color: #fff;
  font-size: 0.82rem;
}
.atr-header__topbar .atr-wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 34px;
}
.atr-header__topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.atr-header__topbar a:hover { color: var(--atr-accent-on-dark); }
.atr-header__topbar svg { width: 14px; height: 14px; fill: currentColor; }
.atr-header__topbar-left, .atr-header__topbar-right { display: flex; gap: 1.25rem; align-items: center; }

.atr-header__main .atr-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--atr-header-h);
}

.atr-header__logo a { display: block; }
.atr-header__logo img { max-height: 56px; width: auto; }
.atr-header__logo-text { font-family: var(--atr-serif); font-size: 1.5rem; font-weight: 700; color: var(--atr-primary-dark); text-decoration: none; }

.atr-nav { display: flex; align-items: center; }
.atr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.atr-nav li { position: relative; }
.atr-nav > ul > li > a {
  display: block; padding: 0.6rem 0.85rem; border-radius: 8px;
  color: var(--atr-ink); font-weight: 500; font-size: 0.95rem; text-decoration: none;
}
.atr-nav > ul > li > a:hover, .atr-nav > ul > li.current-menu-item > a, .atr-nav > ul > li.current-menu-ancestor > a {
  background: var(--atr-primary-light); color: var(--atr-primary-dark);
}
.atr-nav .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 240px;
  display: none; flex-direction: column; gap: 0;
  padding: 0.5rem; margin: 0;
  background: #fff; border: 1px solid var(--atr-line); border-radius: 12px; box-shadow: var(--atr-shadow);
}
.atr-nav li:hover > .sub-menu, .atr-nav li:focus-within > .sub-menu { display: flex; }
.atr-nav .sub-menu a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--atr-ink); text-decoration: none; font-size: 0.92rem; }
.atr-nav .sub-menu a:hover { background: var(--atr-primary-light); color: var(--atr-primary-dark); }

.atr-header__cta { display: flex; align-items: center; gap: 0.6rem; }
.atr-header__phone { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--atr-primary-dark); text-decoration: none; white-space: nowrap; }
.atr-header__phone svg { width: 18px; height: 18px; fill: currentColor; }

.atr-header__burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--atr-line); border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.atr-header__burger span { display: block; width: 20px; height: 2px; background: var(--atr-primary-dark); position: relative; }
.atr-header__burger span::before, .atr-header__burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--atr-primary-dark); transition: transform 0.2s; }
.atr-header__burger span::before { top: -6px; }
.atr-header__burger span::after { top: 6px; }
.atr-header__burger[aria-expanded="true"] span { background: transparent; }
.atr-header__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.atr-header__burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile : panneau qui tient dans l'écran (il défile) et sous-menus en accordéon. */
.atr-mobile-panel {
  display: none; background: #fff; border-top: 1px solid var(--atr-line);
  max-height: calc(100vh - var(--atr-header-h) - var(--atr-adminbar));
  max-height: calc(100dvh - var(--atr-header-h) - var(--atr-adminbar));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.atr-mobile-panel[data-open="true"] { display: block; }
.atr-mobile-panel ul { list-style: none; margin: 0; padding: 0.25rem 0; }
.atr-mobile-panel nav > ul > li { border-bottom: 1px solid var(--atr-line); }
.atr-mobile-panel li { display: flex; flex-wrap: wrap; align-items: center; }
.atr-mobile-panel li > a { flex: 1; display: block; padding: 0.95rem 0; color: var(--atr-ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.atr-mobile-panel li.current-menu-item > a, .atr-mobile-panel li.current-menu-ancestor > a { color: var(--atr-primary); }
.atr-mobile-panel__toggle {
  flex: none; width: 44px; height: 44px; margin-right: -0.4rem; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--atr-primary-dark);
}
.atr-mobile-panel__toggle:hover, .atr-mobile-panel__toggle:focus-visible { background: var(--atr-primary-light); }
.atr-mobile-panel__toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.atr-mobile-panel__toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.atr-mobile-panel .sub-menu { flex-basis: 100%; padding: 0 0 0.6rem; margin: 0; }
/* Repliés seulement quand le script a posé les boutons (sans JS, tout reste visible). */
.atr-mobile-panel.is-accordion .sub-menu { display: none; }
.atr-mobile-panel.is-accordion li.is-open > .sub-menu { display: block; }
.atr-mobile-panel .sub-menu li > a { padding: 0.6rem 0.9rem; margin: 0 0 0.15rem; border-radius: 8px; font-weight: 400; font-size: 0.95rem; color: var(--atr-muted); }
.atr-mobile-panel .sub-menu li > a:hover, .atr-mobile-panel .sub-menu li.current-menu-item > a { background: var(--atr-bg-soft); color: var(--atr-primary-dark); }
.atr-mobile-panel__cta { display: grid; gap: 0.6rem; padding: 1.1rem 0 1.5rem; }
/* Menu ouvert : la barre Appeler / Devis du bas ne recouvre pas le panneau (il a ses propres boutons). */
body.atr-menu-open .atr-sticky-bar { display: none; }

@media (max-width: 1024px) {
  .atr-nav, .atr-header__cta .atr-btn { display: none; }
  .atr-header__burger { display: inline-flex; }
  .atr-header__topbar-left span.atr-hide-mobile { display: none; }
}

/* ==========================================================================
   5. Footer
   ========================================================================== */

.atr-footer { background: var(--atr-primary-dark); color: rgba(255,255,255,0.85); margin-top: 0; }
.atr-footer a:not(.atr-btn) { color: #fff; text-decoration: none; transition: color 0.2s; }
.atr-footer a:not(.atr-btn):hover { color: var(--atr-accent-on-dark); }

.atr-footer__cta { background: var(--atr-primary); color: #fff; padding: 2.5rem 0; }
.atr-footer__cta .atr-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.atr-footer__cta h2 { color: #fff; margin: 0 0 0.25rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.atr-footer__cta p { margin: 0; color: rgba(255,255,255,0.85); }

.atr-footer__main { padding: 3rem 0 2rem; }
.atr-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
@media (max-width: 960px) { .atr-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .atr-footer__grid { grid-template-columns: 1fr; } }

.atr-footer__logo img { max-height: 60px; width: auto; margin-bottom: 1rem; }
.atr-footer__title { font-family: var(--atr-serif); color: #fff; font-size: 1.3rem; margin: 0 0 0.9rem; }
.atr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.atr-footer__info li { display: flex; gap: 0.6rem; align-items: flex-start; }
.atr-footer__info svg { width: 16px; height: 16px; fill: var(--atr-accent-on-dark); flex: none; margin-top: 0.3rem; }
.atr-footer__social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.atr-footer__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.08); }
.atr-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

.atr-footer__certs { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.1rem 0; }
.atr-footer__certs .atr-wrap { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.atr-footer__certs-label { margin: 0; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }

.atr-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 0.9rem 0; font-size: 0.82rem; }
.atr-footer__bottom .atr-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.atr-footer__bottom nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   6. Sticky conversion bar (mobile) + floating phone
   ========================================================================== */

.atr-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: none; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--atr-line); box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
.atr-sticky-bar .atr-btn { width: 100%; padding: 0.8rem 0.5rem; font-size: 0.9rem; }
@media (max-width: 1024px) {
  .atr-sticky-bar { display: grid; }
  /* Place pour la barre fixe : prise dans le pied de page (vert) et non sous lui (bande blanche). */
  .atr-footer__bottom { padding-bottom: calc(0.9rem + 76px + env(safe-area-inset-bottom)); }
  body:not(:has(.atr-footer__bottom)) { padding-bottom: 72px; }
}

/* ==========================================================================
   7. Content (pages, articles)
   ========================================================================== */

.atr-prose { max-width: 820px; }
.atr-prose > * + * { margin-top: 1rem; }
.atr-prose h2 { margin-top: 2.2rem; }
.atr-prose h3 { margin-top: 1.6rem; }
.atr-prose ul, .atr-prose ol { padding-left: 1.3rem; }
.atr-prose img { border-radius: var(--atr-radius); }
.atr-prose .wp-block-table table, .atr-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.atr-prose th, .atr-prose td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--atr-line); text-align: left; }
.atr-prose th { background: var(--atr-primary-light); color: var(--atr-primary-dark); }
.atr-prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--atr-primary); background: var(--atr-bg-soft); border-radius: 0 12px 12px 0; }

.atr-page-title { padding: clamp(2rem, 5vw, 3.5rem) 0 0; }

/* Cards (generic) */
.atr-card {
  background: #fff; border: 1px solid var(--atr-line); border-radius: var(--atr-radius);
  padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.atr-card:hover { transform: translateY(-3px); box-shadow: var(--atr-shadow); }
.atr-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--atr-primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.atr-card__icon img, .atr-card__icon svg { width: 32px; height: 32px; }
.atr-card h3 { margin-bottom: 0.4rem; }
.atr-card p { color: var(--atr-muted); margin: 0; }
.atr-card__link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-weight: 600; text-decoration: none; }

/* Elementor legacy compatibility (pages not yet migrated keep their own rendering) */
.elementor { font-family: var(--atr-sans); }

.atr-form .is-error input, .atr-form .is-error textarea, .atr-form .is-error select { border-color: var(--atr-danger); }

/* Garde-fou : si le kit Elementor est encore chargé, il ne doit pas recolorer les liens du thème. */
body.atr .atr-header__topbar a,
body.atr .atr-footer a:not(.atr-btn) { color: #fff; }
body.atr .atr-header__topbar a:hover,
body.atr .atr-footer a:not(.atr-btn):hover { color: var(--atr-accent-on-dark); }
.atr-header__topbar-left > span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* Widget d'avis : jamais plus large que l'écran (évitait un défilement horizontal sur mobile). */
.atr-reviews__widget { max-width: 100%; overflow: hidden; }

@media (max-width: 782px) {
  /* Barre du haut masquée en mobile : le numéro est déjà dans le header (et dans la barre du bas),
     l'adresse dans le pied de page. Évite le numéro affiché deux fois en haut. */
  .atr-header__topbar { display: none; }
  :root { --atr-header-h: 68px; }
  .atr-header__main .atr-wrap { gap: 0.75rem; }
  .atr-header__logo img { max-height: 46px; }
  /* Le bouton de consentement Axeptio (en bas à gauche) ne doit pas masquer « Appeler ». */
  body:has(#axeptio_overlay) .atr-sticky-bar { padding-left: 72px; }
}

@media (max-width: 480px) {
  /* Petit écran : le numéro devient une pastille icône, à côté du menu. */
  .atr-header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 10px; background: var(--atr-primary-light); }
  .atr-header__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
