:root {
  --bg: #fcfaf8;
  --surface: #ffffff;
  --surface-soft: #f3eef8;
  --text: #261f2d;
  --muted: #6b6173;
  --line: #e8dff0;
  --primary: #7f5aa6;
  --primary-dark: #624281;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(88, 56, 122, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(rgba(252, 250, 248, 0.94), rgba(252, 250, 248, 0.94)),
    url("motif-plaquette.png");
  background-position: center top, center center;
  background-size: auto, contain;
  background-repeat: repeat-y, no-repeat;
  background-attachment: scroll, fixed;
  background-color: var(--bg);
  position: relative;
}

a {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 52px;
  background: linear-gradient(180deg, rgba(250, 246, 253, 0.94) 0%, rgba(252, 250, 248, 0.94) 100%);
}

.hero-grid,
.section-grid,
.contact-grid,
.about-grid {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: 1.5fr 0.9fr;
  align-items: center;
}

.eyebrow,
.section-label,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
}

p,
li,
label,
input,
textarea,
button {
  font-size: 1rem;
}

.lead {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.btn,
button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hero-panel,
.card,
.contact-form,
.about-photo img {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-panel ul,
.list {
  margin: 0;
  padding-left: 20px;
}

.hero-panel li,
.list li {
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: rgba(127, 90, 166, 0.04);
}

.section-grid,
.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  padding: 24px;
}

.about-grid {
  grid-template-columns: 220px 1fr;
  align-items: center;
}

.about-photo {
  max-width: 220px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contact-form {
  padding: 28px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d9d0e3;
  background: #fff;
  color: var(--text);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(127, 90, 166, 0.25);
  border-color: var(--primary);
}

.rgpd-note {
  margin: 4px 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  background: #f7f2fb;
  border-radius: 12px;
}

.rgpd-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 253, 0.94);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .contact-grid,
  .about-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 52px 0;
  }

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-panel,
  .card,
  .contact-form {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
  }

  h1 {
    max-width: none;
  }
}