/*--------------------------------------------------------------
PAGE ARCHIBALD — feuille de style dédiée
Chargée uniquement par page-archibald.hbs (bloc "styles").
Tous les sélecteurs sont préfixés par .archibald (le <main>) afin
de ne pas déborder sur le header / footer partagés du thème et de
surcharger les règles globales de style.css (a, img, p, ul, h2…).
--------------------------------------------------------------*/

/* Décalage des ancres (#fonctionnalites, #faq) sous le menu fixe */
html {
  scroll-padding-top: 82px;
}

.archibald {
  --orange: #ED774A;
  --orange-dark: #D9592A;
  --peach: #FDF1EA;
  --peach-2: #FBE7DA;
  --ink: #2B2320;
  --muted: #6B5A52;
  --line: #EFDFD4;
  --white: #FFFFFF;
  --blue: #0A66C2;
  --radius: 10px;
  --header: 66px; /* hauteur du menu fixe #nav-menu (logo 50px + 2 x 0.5rem) */
  --serif: var(--ui-typography-h1-typeface, "DM Serif Display", serif);
  --sans: var(--ui-typography-typeface, "DM Sans", sans-serif);

  margin: 0;
  padding-top: var(--header);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.archibald img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.archibald svg {
  display: block;
  margin: 0;
  max-width: 100%;
}

.archibald a {
  color: inherit;
}

.archibald :focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.archibald h1,
.archibald h2,
.archibald h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
}

.archibald h1 {
  font-size: 2.6rem;
}

.archibald h2 {
  font-size: 2.05rem;
}

.archibald h3 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.35;
}

.archibald p {
  margin: 0;
}

.archibald .container {
  width: min(70rem, calc(100% - 48px)); /* 70rem = largeur du menu (.menu-width) */
  margin-inline: auto;
}

/* Boutons */
.archibald .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.archibald .btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.archibald .btn.ghost {
  background: transparent;
  color: var(--orange);
}

.archibald .btn.ghost:hover {
  background: var(--orange);
  color: #fff;
}

.archibald .btn.small {
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.78rem;
  border-radius: 4px;
  background: var(--blue);
  border-color: var(--blue);
}

.archibald .btn.small:hover {
  background: #084d92;
  border-color: #084d92;
}

/* Sections */
.archibald .section {
  padding: 96px 0;
}

.archibald .section.tinted {
  background: var(--peach);
}

.archibald .section-head {
  max-width: 820px;
  margin-bottom: 56px;
}

.archibald .section-head.center {
  margin-inline: auto;
  text-align: center;
}

.archibald .section-head p {
  margin-top: 18px;
  color: var(--muted);
}

.archibald .eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* Hero */
.archibald .hero {
  padding: 76px 0 84px;
}

.archibald .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.archibald .hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.archibald .hero .lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.06rem;
}

.archibald .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.archibald .hero-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.archibald .video-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--peach-2);
  box-shadow: 0 20px 48px rgba(43, 35, 32, 0.14);
}

.archibald .video-card img {
  width: 100%;
}

.archibald .video-card .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.archibald .video-card .play span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(237, 119, 74, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.archibald .video-card:hover .play span {
  transform: scale(1.08);
}

.archibald .video-card .play svg {
  width: 26px;
  height: 26px;
  color: #fff;
  fill: currentColor;
  margin-left: 4px;
}

/* En bref */
.archibald .brief {
  background: var(--peach-2);
  padding: 34px 0;
}

.archibald .brief .container {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: start;
}

.archibald .brief strong {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange);
}

.archibald .brief p {
  max-width: 900px;
}

/* Atouts */
.archibald .perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 60px;
}

.archibald .perk {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
}

.archibald .perk img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.archibald .perk p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.archibald .perks-cta {
  margin-top: 64px;
  text-align: center;
}

.archibald .perks-cta p {
  margin-bottom: 18px;
  font-weight: 600;
}

/* Schéma fonctionnalités */
.archibald .diagram {
  display: grid;
  grid-template-columns: 0.82fr 2fr 0.82fr;
  gap: 40px;
  align-items: center;
}

.archibald .diagram-col {
  display: grid;
  gap: 38px;
}

.archibald .diagram-col.right {
  text-align: left;
}

.archibald .tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archibald .diagram ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.archibald .diagram li + li {
  margin-top: 8px;
}

.archibald .diagram-visual {
  margin: 0;
}

.archibald .diagram-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 22px 55px rgba(43, 35, 32, 0.16);
}

.archibald .diagram-visual figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.archibald .jumbo {
  margin-top: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
  padding: 28px 32px;
  background: var(--peach);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.archibald .jumbo-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
}

.archibald .jumbo-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  fill: none; /* app.css force svg{fill:currentColor} */
}

.archibald .jumbo strong {
  display: block;
  font-size: 1rem;
}

.archibald .jumbo small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Modules */
.archibald .modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.archibald .module {
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(43, 35, 32, 0.06);
}

.archibald .module img {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  object-fit: contain;
}

.archibald .module h3 {
  font-size: 1.25rem;
  font-family: var(--serif);
}

.archibald .module > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.archibald .module ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.archibald .module li {
  position: relative;
  padding-left: 32px;
  font-size: 0.92rem;
}

.archibald .module li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--peach-2);
}

.archibald .module li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* Équipe */
.archibald .team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 32px;
  margin-top: 8px;
}

.archibald .member {
  text-align: center;
}

.archibald .member img {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--peach);
}

.archibald .member strong {
  display: block;
  font-size: 1rem;
}

.archibald .member span {
  display: block;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Guide / Contact (blocs image + texte) */
.archibald .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.archibald .split.reverse .split-media {
  order: 2;
}

.archibald .split-media img {
  border-radius: var(--radius);
}

.archibald .split p {
  margin-top: 18px;
  color: var(--muted);
}

.archibald .split .btn {
  margin-top: 28px;
}

/* FAQ */
.archibald .faq-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 70px;
  align-items: start;
}

.archibald .faq-intro p {
  margin-top: 18px;
  color: var(--muted);
}

.archibald .faq-list {
  border-top: 1px solid var(--line);
}

.archibald details {
  border-bottom: 1px solid var(--line);
}

.archibald summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.archibald summary::-webkit-details-marker {
  display: none;
}

.archibald summary::after {
  content: "+";
  position: absolute;
  top: 16px;
  right: 6px;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.archibald details[open] summary::after {
  transform: rotate(45deg);
}

.archibald details .answer {
  padding: 0 48px 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.archibald details a {
  color: var(--orange);
}

/* Sources */
.archibald .sources {
  padding: 0 0 80px;
}

.archibald .sources-inner {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.archibald .sources h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.archibald .sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.archibald .sources a {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 980px) {
  .archibald h1 {
    font-size: 2.15rem;
  }

  .archibald h2 {
    font-size: 1.8rem;
  }

  .archibald .hero-grid,
  .archibald .split,
  .archibald .split.reverse .split-media {
    grid-template-columns: 1fr;
    gap: 40px;
    order: 0;
  }

  .archibald .diagram {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .archibald .diagram-visual {
    order: -1;
  }

  .archibald .diagram-col {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 30px;
  }

  .archibald .modules,
  .archibald .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .archibald .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .archibald .container {
    width: min(100% - 32px, 70rem);
  }

  .archibald .section {
    padding: 66px 0;
  }

  .archibald h1 {
    font-size: 1.95rem;
  }

  .archibald h2 {
    font-size: 1.55rem;
  }

  .archibald .hero {
    padding: 48px 0 56px;
  }

  .archibald .hero-actions .btn {
    width: 100%;
  }

  .archibald .perks {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .archibald .perk {
    grid-template-columns: 46px 1fr;
    gap: 16px;
  }

  .archibald .perk img {
    width: 42px;
    height: 42px;
  }

  .archibald .brief .container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .archibald .diagram-col {
    grid-template-columns: 1fr;
  }

  .archibald .jumbo {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .archibald .module {
    padding: 26px;
  }

  .archibald .team {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .archibald *,
  .archibald *::before,
  .archibald *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
