/* =========================
   VARIABLES
========================= */
:root {
  --bg-yellow-light: #FEFCEE; /* yellow du logo #ffda48 à 9% */
  --bg-purple: #bd8ccb;
  --bg-purple-light: #F6F0F7; /* purple à 12% */

  --border-grey: #ccc;
  --border-purple: #bd8ccb;
  --border-purple-light: #E1CBE7; /* purple à 45% */

  --color-text: #000;
  --color-purple: #b566cc; /* purple plus marqué */
  --color-brown: #c45e2b;

  --site-width: 1120px;
  --space-section: 120px;
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {box-sizing: border-box}

html {scroll-behavior: smooth}

body {
  background: #fff;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  -webkit-font-smoothing: antialiased}

img {
  display: block;
  max-width: 100%}

a {
  color: var(--color-brown);
  text-decoration: none}

a:hover {text-decoration: underline}

p {margin: 0 0 16px}

ul {
  margin: 0;
  padding-left: 16px}

li + li {margin-top: 8px}


/* =========================
   LAYOUT
========================= */
.container {
  width: min(100% - 40px, var(--site-width));
  margin-inline: auto}

.section {
  border-top: 1px solid var(--border-purple-light);
  padding: var(--space-section) 0}

.section:first-of-type {border-top: 1px solid var(--border-purple)}

.section > .container > h2 {margin-bottom: 40px}

.section-alt-1 {background: var(--bg-yellow-light)}
.section-alt-2 {background: var(--bg-purple-light)}

.txt-a-propos, 
.txt-pourquoi {padding-bottom: 60px}
.txt-a-propos + .txt-pourquoi,
.txt-pourquoi + .txt-faq {
  border-top: none;
  padding-top: 0}

.service-group,
.columns-1 {margin-top: 48px}

.service-group:first-child,
.columns-1:first-child {margin-top: 0}

.service-group > h3 {margin-bottom: 32px}


/* =========================
   HEADER
========================= */
.site-header {
  background: var(--bg-purple);
  background-image: url("../medias/images/banner-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  padding: 24px 0}

.hero {max-width: var(--site-width)}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px}

.hero-logo img {
  width: 224px;
  height: auto}

.hero-tagline {
  margin: 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap}


/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--bg-purple);
  padding: 28px 0 40px}

.site-footer .container {text-align: center}

.site-footer a {color: #fff}

.site-footer p {
  color: #fff;
  font-size: 1rem;
  margin: 0}


/* =========================
   GRILLES
========================= */
.columns-1,
.columns-2,
.columns-3 {
  display: grid;
  gap: 20px}

.columns-1 {
  grid-template-columns: 1fr;
  margin-top: 20px;
  text-align: center}

.columns-2 {grid-template-columns: repeat(2, 1fr)}
.columns-3 {grid-template-columns: repeat(3, 1fr)}


/* =========================
   ENCARTS
========================= */
.box {
  background-color: #fff;
  border: 1px solid var(--border-grey);
  height: 100%;
  padding: 28px}

.box h4 {margin-bottom: 16px}

.box p:last-child,
.box ul:last-child {margin-bottom: 0}

.box-center,
.txt-center {text-align: center}


/* =========================
   TITRES
========================= */
h1, h2, h3, h4 {
  font-weight: bold;
  margin: 0}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase}

h1, h2 {color: var(--color-purple)}

h2 {font-size: clamp(2rem, 2.8vw, 2.5rem)}
h3 {font-size: clamp(1.5rem, 1.8vw, 1.75rem)}

h4 {
  font-size: clamp(1.25rem, 1.2vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.25}


/* =========================
   BUTTONS
========================= */
.btn, .btn:hover {text-decoration: none}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--bg-purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease}

.btn:hover {background: var(--color-brown)}


/* =========================
   SOCIAL LINKS
========================= */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px}

.social-item {
  display: inline-flex;
  align-items: center;
  gap: 8px}

.social-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-purple)}

.social-item a {color: var(--color-purple)}
.social-item a:hover {text-decoration: underline}


/* =========================
   TEXT "PRESENTATION"
========================= */
.txt-presentation h2 {display: none}

.txt-presentation-content {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 56px;
  align-items: center}

.txt-presentation-content img {
  width: 224px;
  height: 224px;
  object-fit: cover;
  border: none}

.txt-presentation-text {
  font-size: 1.25rem;
  line-height: 1.7}

.txt-presentation-text p + p {margin-top: 16px}

.txt-presentation-text p:first-child {
  font-size: 1.5rem;
  font-weight: 500}


/* =========================
   TEXT E-BOOK
========================= */
.txt-ebook-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start}

.txt-ebook-content img {
  width: 100%;
  max-width: 300px;
  height: auto}

.txt-ebook-text h3 {margin-bottom: 20px}

.txt-ebook-text p + p {margin-top: 16px}


/* =========================
   TEXT + CONTACT FORM
========================= */
input,
textarea {cursor: text}

button,
input[type="checkbox"],
.form-row-consent label {cursor: pointer}

.form-row label,
button {text-transform: uppercase}

.form-row-consent label {text-transform: none}

.contact-form,
.form-message {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto}

.contact-form {
  margin-top: 24px;
  margin-bottom: 0;
  padding: 28px;
  background: var(--bg-purple-light);
  border: 1px solid var(--border-grey)}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px}

.form-row label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px}

.form-row input:not([type="checkbox"]),
.form-row textarea {
  width: 100%;
  padding: 16px;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid var(--border-grey);
  outline: none}

.form-row input:not([type="checkbox"]):focus,
.form-row textarea:focus {border-color: var(--color-purple)}

.form-row textarea {
  min-height: 140px;
  resize: vertical}

.form-row-consent {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 24px;
  text-align: left}

.form-row-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: auto;
  margin: 6px 0 0}

.form-row-consent label {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left}

.form-message {
  font-size: 115%;
  margin-top: 24px;
  margin-bottom: 32px;
  padding: 12px 16px;
  text-align: center}

.form-message-success {
  background: #eaf7ed;
  color: #1f6b35;
  border: 1px solid #1f6b35} /* OU #b9e2c5 */

.form-message-email {
  color: black;
  display: inline-block;
  letter-spacing: 0.15em;
  padding: 4px}

.form-message-error {
  background: #fff1f1;
  color: #a12626;
  border: 1px solid #a12626} /* OU #f0b8b8 */

.form-message-close {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem}


/* =========================
   PAGE MENTIONS LÉGALES
========================= */

.legal-page .container {max-width: 860px}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4,
.legal-page h5 {
  margin: 0;
  color: #000;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase}

.legal-page h1 {
  margin-bottom: 32px;
  font-size: 2rem}

.legal-page h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.5rem}

.legal-page h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.2rem}

.legal-page h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.05rem}

.legal-page h5 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1rem}

.legal-page p {
  margin: 0 0 16px;
  color: #000;
  font-size: 1rem;
  line-height: 1.7}

.legal-page hr {
  margin: 32px 0 40px;
  border: 0;
  border-top: 1px solid #ccc}

.legal-page strong {font-weight: 700}

.legal-page a {
  color: #000;
  text-decoration: underline}

.legal-page a:hover,
.legal-page a:focus {text-decoration: none}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767px) {
  .legal-page h1 {
    margin-bottom: 24px;
    font-size: 1.7rem}

  .legal-page h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.3rem}

  .legal-page h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem}

  .legal-page h4,
  .legal-page h5 {
    font-size: 1rem}

  .legal-page p {
    font-size: 0.98rem;
    line-height: 1.65}
}

@media (max-width: 860px) {
  .txt-ebook-content {grid-template-columns: 1fr}
  .txt-ebook-content img {max-width: 320px}
}

@media (max-width: 980px) {
  .hero-brand {
    flex-direction: column;
    align-items: flex-start}

  .hero-tagline {
    text-align: left;
    white-space: normal}

  .columns-3 {grid-template-columns: 1fr}
}

@media (max-width: 860px) {
  .columns-1 {text-align: left}
  
  .columns-2,
  .txt-presentation-content {grid-template-columns: 1fr}

  .txt-presentation-content {gap: 28px}
}

@media (max-width: 640px) {
  :root {--space-section: 84px}

  .site-header {padding: 48px 0}

  .btn {width: 100%}

  .box,
  .contact-form {padding: 24px}
}