/* Act. La Mode — feuille de style unique, sans dépendance. */

:root {
  color-scheme: light;

  /* Couleurs du logo : rouge Act., noir « LA MODE », fond blanc. */
  --paper: #ffffff;
  --surface: #f6f5f3;
  --ink: #1c1b1b;
  --muted: #57534f;
  --accent: #c73935;
  --accent-ink: #ffffff;
  --line: #e7e4e0;

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

  --gutter: 16px;
  --measure: 72rem;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--surface);
  z-index: 10;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Emplacement à compléter : visible en local, à retirer avant publication. */
.todo {
  outline: 1px dashed #b4532a;
  outline-offset: 2px;
  background: #fbe9dd;
  color: #7c2d12;
}

/* En-tête */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  height: 3rem;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .icon {
  display: block;
}

.site-nav a:hover {
  text-decoration: underline;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .brand {
    font-size: 1.3125rem;
  }

  .site-nav ul {
    gap: 0.875rem;
    font-size: 0.9375rem;
  }

  .site-nav .nav-secondary {
    display: none;
  }
}

/* Bandeau principal */

.hero {
  background: var(--surface);
}

.hero-inner {
  display: grid;
}

.hero-media {
  margin-inline: calc(var(--gutter) * -1);
  aspect-ratio: 1 / 1;
  background: var(--line);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding-block: 2rem 2.75rem;
}

.hero-content p {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (min-width: 48rem) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .hero-media {
    order: 2;
    margin-inline: 0 calc(var(--gutter) * -1);
    aspect-ratio: 1 / 1;
  }

  .hero-content {
    padding-block: 3rem;
  }
}

@media (min-width: 76rem) {
  .hero-media {
    margin-inline: 0;
  }
}

/* Sections */

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.lead {
  max-width: 40rem;
  color: var(--muted);
}

.brands {
  color: var(--muted);
}

.section-wide .lead,
.section-wide .brands {
  max-width: none;
}

/* Magasins */

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.store {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.store h3 {
  margin: 0;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Contact */

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-list dd {
  margin: 0;
  font-size: 1.1875rem;
}

@media (min-width: 48rem) {
  .contact-list {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 3rem;
  }
}

/* Pied de page */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer a {
  color: var(--muted);
}

/* Pages de texte (mentions légales, 404) */

.prose {
  max-width: 44rem;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.prose h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.25rem;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  margin: 0 0 1em;
}

.prose dt {
  color: var(--muted);
}

.prose dd {
  margin: 0;
}

@media (max-width: 30rem) {
  .prose dl {
    grid-template-columns: 1fr;
  }

  .prose dd {
    margin-bottom: 0.5rem;
  }
}
