/* ============================================================
   ANR-68 — Design System
   Mode clair unique, tailles de texte réglables,
   accessibilité RGAA AA, optimisé senior.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  /* Palette */
  --c-primary: #00284F;
  --c-secondary: #004E9C;
  --c-tertiary: #0080FF;
  --c-accent: #EDC61E;

  /* Mode clair — par défaut */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-card: #ffffff;
  --text: #00284F;
  --text-muted: #3a5577;
  --heading: #00284F;
  --link: #004E9C;
  --link-hover: #0080FF;
  --border: #d7dfe8;
  --shadow: 0 2px 8px rgba(0, 40, 79, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 40, 79, 0.12);
  --btn-bg: #004E9C;
  --btn-text: #ffffff;
  --btn-hover-bg: #00284F;
  --header-bg: #ffffff;
  --header-border: #d7dfe8;
  --footer-bg: #00284F;
  --footer-text: #ffffff;

  /* Tailles texte — niveau normal (A) */
  --fs-base: 17px;
  --fs-h1: 2.25rem;
  --fs-h2: 1.75rem;
  --fs-h3: 1.35rem;
  --fs-small: 0.95rem;

  /* Espacements */
  --gap: 1.5rem;
  --radius: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --trans: 0.25s ease;
}

/* Tailles texte — A+ (grand) */
[data-fontsize="large"] {
  --fs-base: 20px;
  --fs-h1: 2.5rem;
  --fs-h2: 2rem;
  --fs-h3: 1.5rem;
}

/* Tailles texte — A++ (très grand) */
[data-fontsize="xlarge"] {
  --fs-base: 23px;
  --fs-h1: 2.75rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.65rem;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  transition: background var(--trans), color var(--trans);
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--trans);
}
a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.3;
  margin: 0 0 1rem;
  font-weight: 700;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 1rem;
  max-width: 65ch;
}
/* Quand un paragraphe est dans un parent centré, on le recentre */
[style*="text-align:center"] > p,
[style*="text-align: center"] > p,
.text-center > p {
  margin-left: auto;
  margin-right: auto;
}

ul, ol {
  line-height: 1.7;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-accent);
  color: var(--c-primary);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Container ---------- */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--trans), border-color var(--trans);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--heading);
  flex-shrink: 0;
}
.site-logo img {
  height: 76px;
  width: auto;
}
.site-logo span {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}
.site-logo:hover {
  color: var(--heading);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background var(--trans), color var(--trans);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Sous-menus */
.has-submenu {
  position: relative;
}
.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s, transform 0.2s ease;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s, transform 0.2s ease;
}
/* Petit pont invisible entre le lien parent et le sous-menu pour éviter la fermeture au survol */
.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  display: none;
}
.has-submenu:hover::after,
.has-submenu:focus-within::after {
  display: block;
}
.submenu li {
  width: 100%;
}
.submenu a {
  padding: 0.6rem 1rem;
  min-height: 40px;
  width: 100%;
  border-radius: 6px;
  font-weight: 500;
}
.submenu a:hover {
  background: var(--bg-alt);
  color: var(--link);
}
/* Petit indicateur chevron sur les items avec sous-menu */
.has-submenu > a::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.75em;
  opacity: 0.7;
}

/* Contrôles accessibilité dans le header */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.font-size-control {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 2px;
  border: 1px solid var(--border);
}
.font-size-control button {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  min-width: 36px;
  min-height: 36px;
  transition: background var(--trans);
  font-family: inherit;
}
.font-size-control button[aria-pressed="true"] {
  background: var(--c-secondary);
  color: #ffffff;
}
.font-size-control button:hover:not([aria-pressed="true"]) {
  background: var(--border);
}
.font-size-control button:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
.font-size-control .btn-s { font-size: 14px; }
.font-size-control .btn-m { font-size: 17px; }
.font-size-control .btn-l { font-size: 20px; }

/* Bandeau de bienvenue animé (accueil, entre missions et actualités) */
.welcome-band {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  padding: 4rem 0 4.5rem;
  text-align: center;
  overflow: hidden;
}
.welcome-band .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i) * 110ms);
}
.welcome-band.in-view .w {
  opacity: 1;
  transform: none;
}
.welcome-l1 {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.5rem);
  margin: 0 0 0.6rem;
}
.welcome-l2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.welcome-accent {
  color: var(--c-accent);
}
/* Encart du timbre du centenaire, section claire sous le bandeau bleu */
.stamp-section {
  background: var(--bg-alt);
  padding: 3.5rem 0;
}
.welcome-stamp {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--c-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.75rem;
}
.welcome-stamp img {
  flex: 0 0 auto;
  width: 260px;
  height: auto;
}
.welcome-stamp h3 {
  margin: 0 0 0.75rem;
  color: var(--heading);
  font-size: 1.6rem;
  line-height: 1.25;
}
.welcome-stamp p {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.6;
}
.welcome-stamp p.welcome-stamp-cta {
  margin-top: 1rem;
}
/* Titre de l'encart : mots révélés un à un à l'entrée dans l'écran */
.welcome-stamp .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i) * 100ms);
}
.welcome-stamp.in-view .w {
  opacity: 1;
  transform: none;
}
@media (max-width: 640px) {
  .welcome-stamp {
    flex-direction: column;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-band .w,
  .welcome-stamp .w { transition: none; opacity: 1; transform: none; }
}

/* Sélecteur de taille dans le pied de page (fond marine) */
.footer-fontsize {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-fontsize > span {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-small);
}
.footer-fontsize .font-size-control {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Lien Connexion / Mon espace dans l'en-tête */
.header-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--c-secondary);
  border-radius: var(--radius);
  color: var(--c-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  min-height: 40px;
  transition: background var(--trans), color var(--trans);
}
.header-login:hover { background: var(--c-secondary); color: #ffffff; }
.header-login svg { flex: 0 0 auto; }
@media (max-width: 560px) { .header-login span { display: none; } }

/* Burger menu */
.nav-close,
.nav-toggle {
  display: none;        /* n'existent qu'en menu mobile (le second est cree par main.js) */
}
.burger {
  display: none;
  background: var(--c-secondary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}
.burger:hover {
  background: var(--c-primary);
}
.burger:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 650px;
  overflow: hidden;
  background: var(--c-primary);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s ease-out;
}
.hero-slide.is-active img {
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 79, 0.62) 0%,
    rgba(0, 40, 79, 0.34) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: #ffffff;
  z-index: 2;
}
.hero-overlay h1 {
  color: #ffffff;
  max-width: 900px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero-overlay .hero-tagline {
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero-pause {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--trans);
}
.hero-pause:hover {
  background: rgba(0, 0, 0, 0.8);
}
.hero-pause:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}
.hero-pause svg {
  width: 22px;
  height: 22px;
}
.hero-pause .icon-play { display: none; }
.hero-pause.is-paused .icon-play { display: block; }
.hero-pause.is-paused .icon-pause { display: none; }

/* Page banner (pages intérieures) */
.page-banner {
  position: relative;
  height: 25vh;
  min-height: 200px;
  max-height: 300px;
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-img, url('../photos/seniors-03.jpg'));
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.page-banner h1 {
  position: relative;
  color: #ffffff;
  margin: 0;
  padding: 0 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  font-family: inherit;
}
.btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-text);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
.btn-accent {
  background: var(--c-accent);
  color: var(--c-primary);
}
.btn-accent:hover {
  background: #ffdc4d;
  color: var(--c-primary);
}
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: #ffffff;
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--c-primary);
}

/* ---------- Sections ---------- */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  margin-bottom: 0.5rem;
}
.section-title p {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
}
.section-title .accent-bar {
  width: 80px;
  height: 4px;
  background: var(--c-accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---------- Grille piliers ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
/* Variante 5 colonnes (accueil : les 5 missions) */
.pillars-grid--5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) {
  .pillars-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .pillars-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .pillars-grid--5 {
    grid-template-columns: 1fr;
  }
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--c-accent);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--trans), box-shadow var(--trans);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pillar-card .pillar-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--c-secondary);
}
.pillar-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Actualités ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.news-card:hover .news-card-img img {
  transform: scale(1.05);
}
.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-date {
  color: var(--c-secondary);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.news-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.news-card h3 a {
  color: var(--heading);
  text-decoration: none;
}
.news-card h3 a:hover {
  text-decoration: underline;
}
.news-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}
.news-card-link {
  font-weight: 600;
  align-self: flex-start;
}

/* ---------- Intro accueil ---------- */
.intro-section {
  padding: 4rem 0;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.intro-text h2 {
  margin-bottom: 1.5rem;
}
.intro-text .accent-bar {
  width: 80px;
  height: 4px;
  background: var(--c-accent);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.intro-text p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
}
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-box {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  border-left: 4px solid var(--c-accent);
}
.stat-box .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-secondary);
  line-height: 1;
}
.stat-box .stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.intro-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.intro-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Partenaires ---------- */
.partners {
  padding: 3rem 0;
  text-align: center;
}
.partners h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.partners p {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}
.partners-grid img {
  max-height: 80px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--trans), transform var(--trans);
}
.partners-grid img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* ---------- Pages de contenu ---------- */
.page-content {
  padding: 3rem 0 4rem;
}
.page-content .container {
  max-width: 900px;
}

/* Layout 2 colonnes texte + média */
.two-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
/* Quand la photo est avant le texte dans le HTML, on inverse les proportions */
.two-cols > .two-cols-media:first-child {
  order: 0;
}
.two-cols > .two-cols-media:first-child ~ .two-cols-text {
  order: 1;
}
.two-cols-text h2 {
  margin-top: 2rem;
}
.two-cols-text h2:first-child {
  margin-top: 0;
}
.two-cols-media {
  display: grid;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}
.two-cols-media figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.two-cols-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.two-cols-media figure:hover img {
  transform: scale(1.04);
}

/* Bloc CTA pleine largeur avec icône */
.cta-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #eef3f9 100%);
  border-left: 6px solid var(--c-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.cta-card-icon {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: var(--c-secondary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 78, 156, 0.25);
}
.cta-card-body {
  flex: 1;
}
.cta-card-body p {
  max-width: none;
}

/* Bloc partenaire mis en avant */
.partner-block {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  border-left: 6px solid var(--c-accent);
  box-shadow: var(--shadow);
}
.partner-block-logo {
  flex-shrink: 0;
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.partner-block-logo img {
  max-width: 280px;
  width: 100%;
  height: auto;
}
.partner-block-body {
  flex: 1;
}
.partner-block-body p {
  max-width: none;
}

@media (max-width: 800px) {
  .partner-block {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .partner-block-logo {
    padding: 1rem 1.5rem;
  }
}

/* Encart info latéral */
.info-box {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 4px solid var(--c-accent);
  position: sticky;
  top: 100px;
}
.info-box h3 {
  color: var(--heading);
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .two-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-cols-media,
  .info-box {
    position: static;
  }
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

.breadcrumb {
  margin-bottom: 2rem;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--border);
}

.prose h2 {
  margin-top: 2.5rem;
}
.prose h3 {
  margin-top: 2rem;
}

/* Rubriques en blocs (page « Se retrouver ») : une carte par rubrique */
.activity {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--c-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.25rem;
  margin-top: 2.5rem;
}
.activity > h2 {
  margin-top: 0;
}
/* Sous-parties d'une rubrique (ex. galette / jeux / pétanque dans Rencontres) */
.activity h3 {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .activity { padding: 1.4rem 1.1rem 1.6rem; }
}
.prose ul, .prose ol {
  max-width: 65ch;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Bureau / Comité */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.board-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--bg-alt);
}

/* ---------- Liste de documents (Archives) ---------- */
/* Pastilles partenaires (accueil, à côté du logo Amicale Vie) */
.partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--heading);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: border-color var(--trans), color var(--trans), transform var(--trans);
}
.partner-pill:hover,
.partner-pill:focus-visible {
  border-color: var(--c-secondary);
  color: var(--c-secondary);
  transform: translateY(-2px);
}

/* Grille de liens en cartes (page « Liens utiles ») */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
}
.link-card:hover,
.link-card:focus-visible {
  border-color: var(--c-secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.link-card-media {
  flex: 0 0 64px;
  height: 48px;
  display: grid;
  place-items: center;
}
.link-card-media img {
  max-width: 64px;
  max-height: 48px;
  width: auto;
  height: auto;
}
.link-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--c-secondary);
}
.link-card-icon svg {
  width: 24px;
  height: 24px;
}
.link-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.link-card-body strong {
  color: var(--heading);
  font-size: 1.05rem;
}
.link-card:hover .link-card-body strong {
  color: var(--c-secondary);
}
.link-card-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.4;
}
.link-card-url {
  font-size: 0.85rem;
  color: var(--c-secondary);
  word-break: break-word;
}
/* Le lien s'ouvre dans un nouvel onglet : le signaler visuellement */
.link-card-url::after {
  content: " ↗";
}

/* Rubriques de la page Archives (Bulletins de l'ANR, La Voix de l'ANR…) */
.doc-cat {
  margin: 3.5rem 0 0;
}
.doc-cat:first-of-type {
  margin-top: 2.5rem;
}
.doc-cat + .accent-bar {
  width: 80px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 2px;
  margin-top: 0.75rem;
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.doc-icon {
  width: 34px;
  height: 34px;
  color: var(--c-secondary);
  flex: 0 0 auto;
}
.doc-meta {
  flex: 1;
  min-width: 0;
}
.doc-sub {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.doc-dl {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 560px) {
  .doc-item { flex-wrap: wrap; }
  .doc-dl { width: 100%; justify-content: center; }
}
.board-card .role {
  font-size: var(--fs-small);
  color: var(--c-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}
.board-card .name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
}

/* Tableau contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-info {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.contact-info h3 {
  margin-top: 0;
}
.contact-info ul {
  list-style: none;
  padding: 0;
}
.contact-info li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.contact-info li:last-child {
  border-bottom: none;
}
.contact-info li strong {
  color: var(--heading);
}

/* Formulaires */
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  min-height: 48px;
  transition: border-color var(--trans);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}
.form-field .help {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-secondary) 0%, var(--c-accent) 50%, var(--c-secondary) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--c-accent);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(237, 198, 30, 0.3);
}
.site-footer a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 0.65rem;
  line-height: 1.5;
}
.site-footer p {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}
.site-footer p strong {
  color: #ffffff;
}
/* ---------- Inscription newsletter (pied de page) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nl-hp {
  position: absolute;
  left: -9999px;
}
.footer-newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
}
.footer-newsletter p {
  margin-bottom: 1rem;
}
.footer-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 520px;
}
.footer-newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1rem;
  min-height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--c-primary);
  font-size: 1rem;
}
.footer-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(237, 198, 30, 0.3);
}
.footer-nl-rgpd {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}
.footer-nl-rgpd a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.75rem;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
}
.footer-bottom p {
  margin: 0;
  color: inherit;
}
.footer-credit {
  display: inline-block;
  margin-top: .35rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #ffffff;
}
.footer-bottom nav,
.footer-bottom .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Bouton retour en haut ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: var(--c-secondary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans), transform var(--trans);
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--c-primary);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .burger {
    display: inline-flex;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  .main-nav a {
    font-size: 1.15rem;
    padding: 0.85rem 1.25rem;      /* >= 48px de haut : confortable au doigt, sans gaspiller l'ecran */
  }
  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }
  .main-nav > ul > li:last-child {
    border-bottom: none;
  }

  /* Le panneau recouvre le bouton « Menu » : il faut une sortie visible */
  .nav-close {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: var(--c-primary);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
  }
  .nav-close:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
  }

  /* Sous-menus repliables. Sans JavaScript ils restent depliés : rien n'est inaccessible. */
  .submenu {
    position: static;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    background: var(--bg-alt);
    margin: 0;
    padding-left: 0;
    border-radius: var(--radius);
    /* Le menu du bureau masque les sous-menus jusqu'au survol (opacity/visibility)
       et les centre (transform). Sans ces remises a zero, ils occupent la place
       en mobile mais restent INVISIBLES et decales hors de l'ecran. */
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    min-width: 0;
  }
  .submenu[hidden] {
    display: none;                 /* sans cela, le display:flex ci-dessus annule l'attribut hidden */
  }
  .has-submenu > a::after {
    content: none;                 /* le chevron du bureau cede la place au bouton d'accordeon */
  }
  .nav-parent {
    display: flex;
    align-items: stretch;
  }
  .nav-parent > a {
    flex: 1;
  }
  .nav-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    color: var(--c-primary);
    cursor: pointer;
  }
  .nav-toggle svg {
    width: 22px;
    height: 22px;
    transition: transform 0.25s ease;
  }
  .nav-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }
  .submenu a {
    font-size: 1.05rem;
    padding-left: 2.5rem;          /* decalage net : on voit qu'on est dans un sous-niveau */
  }

  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 55vh;
    min-height: 380px;
  }
  .hero-overlay h1 { font-size: 1.75rem; }
  .hero-overlay .hero-tagline { font-size: 1.05rem; }

  .section { padding: 3rem 0; }
  .intro-section { padding: 3rem 0; }
}

@media (max-width: 600px) {
  .site-logo span {
    display: none;
  }
  .intro-stats {
    grid-template-columns: 1fr;
  }
  .hero-overlay {
    padding: 1.5rem 1rem;
  }
  .hero-overlay h1 { font-size: 1.5rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .back-to-top, .hero-pause, .burger, .header-tools { display: none; }
  .hero { height: auto; }
  a { color: #000; text-decoration: underline; }
}

/* ---------- Contenu CMS : images & galeries ---------- */
.prose img, .page-content img { max-width: 100%; height: auto; }
.content-figure { margin: 2rem auto; text-align: center; }
.content-figure img { max-width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: inline-block; cursor: zoom-in; }
.content-figure figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-muted); font-style: italic; }
.photo-grid, .cms-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.75rem 0; }
.photo-grid figure, .cms-gallery figure { margin: 0; }
.photo-grid img, .cms-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; cursor: zoom-in; transition: transform .3s, box-shadow .3s; }
.photo-grid img:hover, .cms-gallery img:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.photo-grid figcaption, .cms-gallery figcaption { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.4rem; text-align: center; }

/* ---------- Blocs de contenu (éditeur) ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.75rem 0; }
@media (max-width: 700px) { .cols-2 { grid-template-columns: 1fr; } }
.callout { border-left: 4px solid var(--c-accent); background: var(--bg-alt); padding: 1rem 1.4rem; border-radius: var(--radius); margin: 1.75rem 0; }
.prose blockquote, blockquote { border-left: 4px solid var(--c-secondary); margin: 1.75rem 0; padding: 0.5rem 1.4rem; color: var(--text-muted); font-style: italic; }

/* ---------- Tableaux de contenu ---------- */
.prose .content-table, .content-table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.98rem; }
.content-table th, .content-table td { border: 1px solid var(--border); padding: 0.6rem 0.85rem; text-align: left; vertical-align: top; }
.content-table th { background: var(--bg-alt); font-weight: 700; color: var(--text); }
.content-table tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-alt) 45%, transparent); }

/* ---------- Barème des cotisations ---------- */
.tarif-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.6rem;
  background: var(--c-accent);
  color: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.tarif-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.02rem;
  min-width: 520px;
}
.tarif-table th,
.tarif-table td { padding: 0.8rem 1.1rem; border: 1px solid #fff; text-align: left; }
.tarif-table .th-section,
.tarif-table .th-col { background: var(--c-secondary); color: #fff; font-weight: 700; }
.tarif-table .th-col { text-align: center; width: 20%; }
.tarif-table td { background: #FBE4AF; color: var(--heading); }
.tarif-table td.price { text-align: center; font-weight: 700; white-space: nowrap; width: 20%; }

/* ---------- Lightbox ---------- */
.lb-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 10, 24, .92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s; }
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lb-figure img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-figure figcaption { color: #e8eef6; margin-top: .8rem; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 1.2rem; right: 1.4rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: #cdd8e6; font-size: .9rem; }
@media (max-width: 600px) { .lb-prev { left: .4rem; } .lb-next { right: .4rem; } .lb-btn { width: 44px; height: 44px; } }

/* ---------- Couverture de document flottante (à côté du texte) ---------- */
.doc-float { float: right; width: 300px; max-width: 42%; margin: 0.25rem 0 1.25rem 2rem; text-align: center; }
.doc-float img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.doc-float figcaption { font-size: var(--fs-small); color: var(--text-muted); margin-top: 0.5rem; }
@media (max-width: 640px) { .doc-float { float: none; width: 100%; max-width: 100%; margin: 1.5rem auto; } }
