/* ==========================================================================
   murad.website — thème enfant Divi
   Reprend la préversion validée (preview-code/css/styles.css) pour WordPress + Divi.
   Palette : crème #F5EFDF, fusain #25251F, terre cuite #C6532D,
             olive #666B4D, ocre #D99D36
   Portée : toutes les règles sont préfixées par body.am-site (classe ajoutée par functions.php).
   Les sections Divi de l'accueil portent les classes am-section / am-row (champ « Classe CSS »).
   ========================================================================== */

:root {
  --am-creme: #F5EFDF;
  --am-fusain: #25251F;
  --am-terre: #C6532D;          /* couleur de marque : décor */
  --am-terre-texte: #B04A26;    /* nuance assombrie : petits textes et boutons (contraste AA) */
  --am-terre-sombre: #93391A;   /* survol / actif */
  --am-olive: #666B4D;
  --am-olive-texte: #585C42;
  --am-ocre: #D99D36;

  --am-font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --am-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --am-container: 1180px;
  --am-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --am-section-space: clamp(4rem, 9vw, 8rem);
  --am-radius: 22px;
  --am-radius-sm: 14px;
  --am-header-h: 72px;
}

/* ---------- Base (remplace les valeurs par défaut de Divi) ---------- */

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

body.am-site {
  margin: 0;
  background: var(--am-creme);
  color: var(--am-fusain);
  font-family: var(--am-font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Divi fixe un padding-top calculé pour son propre en-tête et masque le débordement,
   ce qui empêcherait l'en-tête collant de fonctionner. */
.am-site #page-container { padding-top: 0 !important; overflow: visible; overflow-x: clip; background: var(--am-creme); }
.am-site #main-content { background: var(--am-creme); }
.am-site #main-content .container::before { display: none; }

.am-site img,
.am-site video { max-width: 100%; height: auto; }

.am-site h1, .am-site h2, .am-site h3 {
  color: inherit;
  font-family: var(--am-font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  padding: 0;
  text-wrap: balance;
}
.am-site h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); }
.am-site h2 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); }
.am-site h3 { font-size: clamp(1.45rem, 1.3rem + 0.5vw, 1.75rem); margin-bottom: 0.5rem; }

.am-site p { margin: 0 0 1rem; padding: 0; }

.am-site a { color: inherit; }

.am-site [id] { scroll-margin-top: calc(var(--am-header-h) + 1rem); }

.am-site :focus-visible { outline: 3px solid var(--am-fusain); outline-offset: 3px; border-radius: 4px; }

.am-container {
  width: 100%;
  max-width: calc(var(--am-container) + 2 * var(--am-gutter));
  margin-inline: auto;
  padding-inline: var(--am-gutter);
}

/* ---------- Structure Divi : sections, lignes, colonnes, modules ---------- */

.am-site .et_pb_section.am-section {
  padding: var(--am-section-space) 0;
  background-color: transparent;
}
.am-site .et_pb_section.am-section:first-child { padding-top: clamp(3rem, 6vw, 5rem); }

.am-site .am-section .et_pb_row.am-row {
  width: 100%;
  max-width: calc(var(--am-container) + 2 * var(--am-gutter));
  margin: 0 auto;
  padding: 0 var(--am-gutter);
}
.am-site .am-section .et_pb_row.am-row + .et_pb_row.am-row { margin-top: 3rem; }

/* Divi ajoute un « clearfix » (::after) qui deviendrait un élément de grille. */
.am-site .am-section .et_pb_row.am-row::after,
.am-site .am-section .et_pb_row.am-row::before { content: none; display: none; }

.am-site .am-section .et_pb_row.am-row > .et_pb_column {
  float: none;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

.am-site .am-section .et_pb_column .et_pb_module { margin: 0 0 1.5rem; }
.am-site .am-section .et_pb_column .et_pb_module:last-child { margin-bottom: 0; }

.am-site .am-section .et_pb_text { color: inherit; }
.am-site .am-section .et_pb_text a:not(.am-btn) { color: inherit; }

.am-site .am-section .et_pb_image { margin: 0; line-height: 0; text-align: left; }
.am-site .am-section .et_pb_image .et_pb_image_wrap { display: block; }
.am-site .am-section .et_pb_image img { display: block; width: 100%; height: auto; }

.am-site .am-section .et_pb_code_inner { position: static; }

.am-eyebrow,
.am-site .am-section p.am-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-terre-texte);
  margin-bottom: 1.25rem;
}

/* ---------- Accessibilité ---------- */

.am-skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  background: var(--am-fusain);
  color: var(--am-creme) !important;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.am-skip-link:focus { top: 1rem; }

.am-site #main-content:focus { outline: none; }

/* ---------- Bandeau préversion (option) ---------- */

.am-preview-banner {
  background: var(--am-fusain);
  color: var(--am-creme);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.45rem var(--am-gutter);
}

/* ---------- Boutons ---------- */

.am-site .am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--am-terre-texte);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.am-site .am-btn-primary { background: var(--am-terre-texte); color: var(--am-creme); }
.am-site .am-btn-primary:hover { background: var(--am-terre-sombre); border-color: var(--am-terre-sombre); color: var(--am-creme); }
.am-site .am-btn-secondary { background: transparent; color: var(--am-terre-texte); }
.am-site .am-btn-secondary:hover { background: var(--am-terre-texte); color: var(--am-creme); }
.am-site .am-btn[disabled],
.am-site .am-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.am-btn-arrow { font-size: 0.9em; }

.am-site .am-section p.am-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 0; }

/* ---------- En-tête ---------- */

.am-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 223, 0.96);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
}
.admin-bar .am-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .am-header { top: 0; } }
.am-header.is-scrolled { border-bottom-color: rgba(37, 37, 31, 0.12); }

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

.am-site .am-brand {
  font-family: var(--am-font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  color: var(--am-fusain);
}

.am-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex: 1;
  justify-content: space-between;
  margin-left: 4rem;
}

.am-site .am-nav-list { display: flex; gap: 2.5rem; margin: 0 auto; padding: 0; list-style: none; }
.am-site .am-nav-list li { margin: 0; padding: 0; list-style: none; }

.am-site .am-nav-list a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.95rem;
  color: var(--am-fusain);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .2s ease;
}
.am-site .am-nav-list a:hover { background-size: 100% 2px; }

/* Sur grand écran, le bouton « Parlons de votre projet » fait office de lien Contact. */
.am-site .am-nav-list .am-nav-contact { display: none; }

.am-site .am-nav-cta { min-height: 44px; padding-block: 0.55rem; font-size: 0.9rem; }

.am-menu-toggle { display: none; }

/* ---------- Accueil (héros) ---------- */

.am-site .am-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 484px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.am-site .am-hero-grid > .et_pb_column:last-child { justify-self: end; width: 100% !important; max-width: 484px; }

.am-site .am-section p.am-lead { max-width: 36em; }

/* Illustration crayonnée carrée : affichée entière, sans fond ni cadre ajoutés. */
.am-site .am-hero-visual img {
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--am-radius-sm);
}

/* ---------- Showreel ---------- */

.am-site .am-showreel-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.am-video-frame {
  position: relative;
  border-radius: var(--am-radius);
  overflow: hidden;
  background: var(--am-fusain);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  line-height: 1.2;
}
.am-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--am-fusain); }

.am-site .am-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.75rem, 4.5cqi, 2.25rem);
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 7cqi 3cqi 55cqi;
  background: linear-gradient(to right, rgba(37, 37, 31, 0) 42%, rgba(37, 37, 31, 0.38) 70%, rgba(37, 37, 31, 0.5) 100%);
  color: var(--am-creme);
  font-family: var(--am-font-serif);
  text-align: left;
  text-shadow: 0 1px 12px rgba(20, 16, 10, 0.55);
  cursor: pointer;
}
.am-site .am-video-play[hidden] { display: none; }
.am-site .am-video-play:focus-visible { outline: 4px solid var(--am-ocre); outline-offset: -8px; border-radius: var(--am-radius); }

.am-poster-titling { display: flex; flex-direction: column; }

.am-poster-name {
  font-size: max(0.7rem, 2.1cqi);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.am-poster-name::after {
  content: "";
  display: block;
  width: 2.2em;
  height: 1px;
  margin: 0.9em 0 0.7em;
  background: var(--am-ocre);
}

.am-poster-title { font-size: max(1.6rem, 8cqi); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }

.am-poster-cta {
  display: inline-flex;
  align-items: center;
  gap: max(0.6rem, 1.8cqi);
  font-family: var(--am-font-sans);
  font-size: max(0.8rem, 2.3cqi);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.am-video-play-icon {
  position: relative;
  flex: none;
  width: max(40px, 7.5cqi);
  aspect-ratio: 1;
  border: 1.5px solid var(--am-creme);
  border-radius: 50%;
  transition: background-color .2s ease;
}
.am-video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: max(7px, 1.3cqi) 0 max(7px, 1.3cqi) max(11px, 2.1cqi);
  border-color: transparent transparent transparent var(--am-creme);
  transition: border-color .2s ease;
}
.am-video-play:hover .am-video-play-icon,
.am-video-play:focus-visible .am-video-play-icon { background: var(--am-creme); }
.am-video-play:hover .am-video-play-icon::after,
.am-video-play:focus-visible .am-video-play-icon::after { border-left-color: var(--am-fusain); }
.am-video-play-label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color .2s ease;
}
.am-video-play:hover .am-video-play-label { text-decoration-color: var(--am-ocre); }
.am-nowrap { white-space: nowrap; }

@container (max-width: 340px) {
  .am-site .am-video-play { gap: 0.55rem; padding: 0 4cqi 0 50cqi; }
  .am-poster-name { font-size: 0.62rem; letter-spacing: 0.16em; }
  .am-poster-name::after { margin: 0.6em 0 0.45em; }
  .am-poster-title { font-size: 1.4rem; }
  .am-poster-cta { gap: 0.45rem; font-size: 0.74rem; }
  .am-video-play-icon { width: 32px; }
  .am-video-play-icon::after { border-width: 6px 0 6px 10px; }
}

.am-video-missing { padding: 2rem; color: var(--am-creme); }

/* ---------- Prestations ---------- */

.am-site .am-services-head h2 { max-width: 16em; }
.am-site .am-section p.am-services-intro { max-width: 40em; }

.am-site .am-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.am-site .am-cards > .et_pb_column.am-card {
  border: 1.5px solid var(--am-olive);
  border-radius: var(--am-radius-sm);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.98rem;
}

.am-site .am-cards > .am-card p:last-child { margin-bottom: 0; }

.am-site .am-section p.am-card-tagline { color: var(--am-terre-texte); font-weight: 600; }

.am-site .am-section .et_pb_row.am-row + .et_pb_row.am-row.am-services-foot { margin-top: 2.5rem; }
.am-site .am-section p.am-services-note { color: var(--am-olive-texte); }
.am-site .am-section p.am-services-quote { color: var(--am-terre-texte); font-weight: 700; margin: 0; }

/* ---------- Derrière l'atelier ---------- */

.am-site .et_pb_section.am-section.am-about { background-color: var(--am-olive) !important; color: var(--am-creme); }
.am-site .am-about .am-eyebrow,
.am-site .am-about p.am-eyebrow { color: var(--am-creme); }

.am-site .am-about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
/* Le portrait (2e colonne dans Divi) passe à gauche sur grand écran ; l'ordre de lecture reste texte puis portrait. */
.am-site .am-about-grid > .et_pb_column:first-child { grid-column: 2; grid-row: 1; }
.am-site .am-about-grid > .et_pb_column:last-child { grid-column: 1; grid-row: 1; }

.am-site .am-about-portrait img { aspect-ratio: 1; object-fit: cover; border-radius: var(--am-radius); }

.am-site .am-about h2 { max-width: 13em; }
.am-site .am-about p { max-width: 38em; }
.am-site .am-about :focus-visible { outline-color: var(--am-creme); }

.am-site .am-section ul.am-verbs {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--am-font-serif);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}
.am-site .am-section ul.am-verbs li { list-style: none; margin: 0; padding: 0; }

/* ---------- Contact ---------- */

.am-site .am-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.am-site .am-contact-text p { max-width: 30em; }
.am-site .am-section p.am-contact-direct { margin-top: 1.5rem; color: var(--am-olive-texte); font-size: 0.95rem; }
.am-site .am-section p.am-contact-direct a { color: var(--am-terre-texte); font-weight: 600; text-underline-offset: 0.2em; }

.am-todo-tag {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border: 1px dashed currentColor;
  border-radius: 999px;
  font-size: 0.8em;
  font-style: italic;
  white-space: nowrap;
}

.am-contact-form {
  border: 1.5px solid var(--am-ocre);
  border-radius: var(--am-radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.am-site .am-field { margin-bottom: 1.25rem; }

.am-site .am-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--am-fusain);
}

.am-site .am-field input,
.am-site .am-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #7b7d67;
  border-radius: 10px;
  background: #fffbf0;
  color: var(--am-fusain);
  font: inherit;
  font-size: 1rem;
  box-shadow: none;
}
.am-site .am-field textarea { resize: vertical; min-height: 130px; }

.am-site .am-field input:focus-visible,
.am-site .am-field textarea:focus-visible {
  outline: 3px solid var(--am-terre-texte);
  outline-offset: 1px;
  border-color: var(--am-terre-texte);
}
.am-site .am-field [aria-invalid="true"] { border-color: var(--am-terre-sombre); background: #fff3ec; }

.am-site .am-contact-form p.am-field-error {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--am-terre-sombre);
}
.am-site .am-contact-form p.am-field-error[hidden] { display: none; }

/* Piège à robots : hors écran mais pas display:none (certains robots l'ignorent sinon). */
.am-site .am-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.am-site .am-contact-form p.am-form-privacy { font-size: 0.85rem; color: var(--am-olive-texte); margin: 0 0 1.25rem; }

.am-site .am-contact-form .am-form-status {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}
.am-site .am-contact-form .am-form-status:empty { display: none; }
.am-site .am-contact-form .am-form-status.is-success { background: #eef0e4; border-left: 4px solid var(--am-olive); color: #3f4230; }
.am-site .am-contact-form .am-form-status.is-error { background: #fff3ec; border-left: 4px solid var(--am-terre-texte); color: var(--am-terre-sombre); }

/* ---------- Pied de page ---------- */

.am-footer {
  background: var(--am-fusain);
  color: var(--am-creme);
  padding-block: 3rem;
}

.am-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.am-site .am-footer p.am-footer-brand { font-family: var(--am-font-serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.25rem; }
.am-site .am-footer p.am-footer-tagline { font-size: 0.92rem; margin: 0; opacity: 0.9; }

.am-site .am-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.am-site .am-footer-links li { list-style: none; margin: 0; padding: 0; }
.am-site .am-footer-links a { color: var(--am-creme); text-underline-offset: 0.2em; }
.am-link-pending { display: inline-flex; align-items: center; gap: 0.4rem; }
.am-footer .am-todo-tag { opacity: 0.85; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .am-site .am-hero-grid,
  .am-site .am-showreel-grid,
  .am-site .am-contact-grid { grid-template-columns: 1fr; }

  .am-site .am-hero-grid > .et_pb_column:last-child { justify-self: start; }

  .am-site .am-cards { grid-template-columns: 1fr; max-width: 640px; }

  /* Mobile : le portrait apparaît après le texte. */
  .am-site .am-about-grid { grid-template-columns: 1fr; }
  .am-site .am-about-grid > .et_pb_column:first-child,
  .am-site .am-about-grid > .et_pb_column:last-child { grid-column: 1; grid-row: auto; }
  .am-site .am-about-grid > .et_pb_column:last-child { max-width: 480px; }

  .am-site .am-section ul.am-verbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.6rem;
    padding: 1.25rem 1.5rem;
    border: 1.5px solid rgba(245, 239, 223, 0.5);
    border-radius: var(--am-radius-sm);
  }
  .am-site .am-section ul.am-verbs li:not(:last-child)::after { content: " ·"; }
}

/* Menu mobile (actif uniquement si JavaScript est disponible) */
@media (max-width: 820px) {
  .js .am-site .am-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--am-fusain);
    border-radius: 999px;
    background: transparent;
    color: var(--am-fusain);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  .am-menu-toggle-icon,
  .am-menu-toggle-icon::before,
  .am-menu-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .am-menu-toggle-icon { position: relative; }
  .am-menu-toggle-icon::before,
  .am-menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .am-menu-toggle-icon::before { top: -6px; }
  .am-menu-toggle-icon::after { top: 6px; }

  .am-menu-toggle[aria-expanded="true"] .am-menu-toggle-icon { background: transparent; }
  .am-menu-toggle[aria-expanded="true"] .am-menu-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  .am-menu-toggle[aria-expanded="true"] .am-menu-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .am-header-inner { flex-wrap: wrap; }

  .am-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 0;
    padding-bottom: 1.25rem;
  }
  .js .am-nav:not(.is-open) { display: none; }

  .am-site .am-nav-list { flex-direction: column; gap: 0; margin: 0; }
  .am-site .am-nav-list li { border-top: 1px solid rgba(37, 37, 31, 0.15); }
  .am-site .am-nav-list a { display: block; padding: 0.9rem 0; font-size: 1.1rem; background-image: none; }
  .am-site .am-nav-list .am-nav-contact { display: list-item; }

  .am-site .am-nav-cta { align-self: flex-start; }
}

@media (max-width: 480px) {
  body.am-site { font-size: 1rem; }
  .am-site .am-section p.am-actions .am-btn { width: 100%; }
  .am-footer-inner { flex-direction: column; align-items: flex-start; }
  .am-preview-banner { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .am-site *, .am-site *::before, .am-site *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .am-site .am-btn, .am-site .am-card, .am-contact-form { border: 2px solid CanvasText; }
  .am-video-play-icon { forced-color-adjust: none; }
}

/* ---------- Pages légales (Mentions légales, Confidentialité) ----------
   Pages WordPress ordinaires (éditeur standard, sans constructeur Divi).
   Classe body.am-legal-page ajoutée par functions.php. */
.am-site.am-legal-page #main-content .container { max-width: 760px; width: auto; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--am-gutter); }
.am-site.am-legal-page #left-area { width: 100%; float: none; padding: 0; }
.am-site.am-legal-page #sidebar { display: none; }
.am-site.am-legal-page h1.entry-title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); }
.am-site.am-legal-page .entry-content h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.25rem; }
.am-site.am-legal-page .entry-content h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.am-site.am-legal-page .entry-content p,
.am-site.am-legal-page .entry-content li { color: var(--am-fusain); font-size: 1rem; line-height: 1.7; }
.am-site.am-legal-page .entry-content a { color: var(--am-terre-texte); text-decoration: underline; overflow-wrap: anywhere; }
.am-site.am-legal-page .entry-content a:hover { color: var(--am-terre-sombre); }