/* ============================================================
   VARIABLES
   Pour changer le thème : modifier uniquement les 3 variables
   --c1, --c2, --c3. Toutes les déclinaisons sont calculées.
============================================================ */
:root {
  /* === 3 couleurs à personnaliser === */
  --c1: #009965;   /* primaire  (vert)  */
  --c2: #344153;   /* secondaire (navy) */
  --c3: #181616;   /* texte      (noir) */

  /* === Déclinaisons calculées — ne pas modifier === */
  --c1-75:  color-mix(in srgb, var(--c1) 75%, transparent);
  --c1-20:  color-mix(in srgb, var(--c1) 20%, white);
  --c1-10:  color-mix(in srgb, var(--c1) 10%, white);
  --c2-50:  color-mix(in srgb, var(--c2) 50%, white);
  --c3-08:  color-mix(in srgb, var(--c3) 8%,  white);
  --white:  #ffffff;

  /* Typo */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --container-max:     1440px;
  --container-padding: 108px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body        { font-family: var(--font-body); color: var(--c3); }
a           { text-decoration: none; color: inherit; }
ul          { list-style: none; }
img         { display: block; max-width: 100%; }

/* Accessibilité — focus visible */
:focus-visible {
  outline: 3px solid var(--c1);
  outline-offset: 3px;
}

/* Skip link (accessibilité clavier) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--c1);
  color: var(--white);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   PAGE 404
============================================================ */
.error-page {
  padding: 120px 0;
  text-align: center;
}

.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.error-page__title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 600;
  color: var(--c3);
  line-height: 1.1;
}

.error-page__desc {
  font-size: 20px;
  color: var(--c3);
  max-width: 480px;
  line-height: 1.5;
}

.error-page__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================================
   BOUTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.btn:hover       { opacity: 0.85; }
.btn--dark       { background: var(--c2); }
.btn--muted      { background: var(--c2-50); }
.btn--green      { background: var(--c1); }

/* ============================================================
   HEADER
============================================================ */
.header {
  background: var(--white);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--c3) 6%, transparent);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 30px;
  color: var(--c2);
  letter-spacing: 0.01em;
}
.logo__pipe { color: var(--c1); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c3);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--c1); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: 732px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center / cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c1-75);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--white);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 80px;
  line-height: 1.025;
}

.hero__desc {
  font-size: 24px;
  line-height: 1.4;
  max-width: 651px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   BANDEAU RÉASSURANCE
============================================================ */
.reassurance {
  background: var(--c1-10);
  padding: 48px 0;
}

.reassurance__grid {
  display: flex;
  gap: 67px;
  align-items: center;
  flex-wrap: wrap;
}

.reassurance__item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 200px;
}

.reassurance__item img {
  flex-shrink: 0;
}

.reassurance__item p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--c3);
}

/* ============================================================
   À PROPOS
============================================================ */
.about {
  padding: 80px 0 40px;
}

.about__text {
  font-size: 22px;
  font-weight: 500;
  line-height: 34px;
  color: var(--c3);
}

/* ============================================================
   EN-TÊTES DE SECTION (pattern réutilisable)
============================================================ */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.section-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c1);
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c3);
}

.section-desc {
  font-size: 20px;
  line-height: 1.4;
  color: var(--c3);
}

/* ============================================================
   NOS SERVICES
============================================================ */
.services {
  padding: 80px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  height: 247px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.service-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--c3) 20%, transparent);
}

.service-card__body {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background: linear-gradient(to top, color-mix(in srgb, var(--c3) 60%, transparent) 0%, transparent 100%);
}

.service-card__body h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.service-card__arrow {
  font-size: 24px;
  font-weight: 700;
  color: var(--c1);
  line-height: 1;
}

/* ============================================================
   COMMENT ÇA MARCHE
============================================================ */
.process {
  padding: 80px 0;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 5px 26.5px 0 var(--c3-08);
}

.process-card__num {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--c1-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--c1);
  flex-shrink: 0;
}

.process-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c3);
}

.process-card__body p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c3);
}

/* ============================================================
   CTA BANDEAU
============================================================ */
.cta-band {
  background: var(--c1);
  padding: 48px 0;
  text-align: center;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
}

.cta-band__text p {
  font-size: 20px;
  color: var(--white);
  margin-top: 8px;
}

/* ============================================================
   POURQUOI NOUS CHOISIR
============================================================ */
.why {
  background: var(--c1-10);
  padding: 80px 0;
}

.why__inner {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 80px;
  align-items: center;
}

.why__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-card {
  background: var(--white);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 5px 52.5px 0 var(--c3-08);
}

.why-card img { flex-shrink: 0; }

.why-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.why-card__body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c3);
}

.why-card__body p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c3);
}

.why__image {
  height: 100%;
  min-height: 400px;
}

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

/* ============================================================
   TÉMOIGNAGES
============================================================ */
.reviews {
  padding: 80px 0;
}

.reviews__slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.reviews__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
  overflow: hidden;
}

.reviews__nav {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--c2-50);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.reviews__nav:hover { color: var(--c2); }

.review-card {
  background: var(--white);
  padding: 24px;
  box-shadow: 0 5px 26.5px 0 var(--c3-08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card blockquote p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--c3);
}

.review-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-card__avatar {
  width: 57px;
  height: 57px;
  border-radius: 50%;
  background: var(--c2-50);
  flex-shrink: 0;
}

.review-card__stars {
  color: var(--c1);
  font-size: 14px;
  letter-spacing: 2px;
}

.review-card__name {
  display: block;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: var(--c3);
  margin-top: 4px;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c2-50);
  opacity: 0.4;
}
.reviews__dot--active {
  background: var(--c1);
  opacity: 1;
}

/* ============================================================
   OÙ NOUS TROUVER
============================================================ */
.location {
  padding: 80px 0;
}

.location__inner {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 80px;
  align-items: center;
}

.location__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.location__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-item {
  background: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 5px 26.5px 0 var(--c3-08);
  font-size: 16px;
  font-weight: 700;
  color: var(--c3);
}

.location-item img { flex-shrink: 0; }

.location-item a {
  color: var(--c3);
  font-weight: 700;
}

.location__map {
  height: 566px;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   GALERIE
============================================================ */
.gallery {
  padding-top: 80px;
}

.gallery__header {
  margin-bottom: 40px;
}

.gallery__grid {
  display: flex;
  gap: 0;
  height: 676px;
}

.gallery__main {
  flex: 0 0 713px;
  overflow: hidden;
}

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

.gallery__aside {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery__aside img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* ============================================================
   FAQ
============================================================ */
.faq {
  padding: 80px 0;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  box-shadow: 0 5px 26.5px 0 var(--c3-08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c3);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

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

.faq-item summary::after {
  content: '›';
  font-size: 20px;
  font-weight: 700;
  color: var(--c1);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-item__answer {
  padding: 0 24px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c3);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  border-bottom: 0.5px solid var(--c2-50);
}

.footer__main {
  border-bottom: 1px solid var(--c2-50);
  padding: 32px 0;
}

.footer__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.footer__contact {
  font-size: 12px;
  line-height: 1.6;
  color: var(--c3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__contact a {
  color: var(--c3);
  font-weight: 400;
}

.footer__nav {
  display: flex;
  gap: 56px;
}

.footer__nav a {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c3);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--c1); }

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--c3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--c1); }

.footer__bottom {
  padding: 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 11px;
  color: var(--c3);
  transition: color 0.2s;
}
.footer__legal a:hover { color: var(--c1); }

.footer__copy {
  font-size: 11px;
  color: var(--c3);
}

/* ============================================================
   FORMULAIRE DE CONTACT
============================================================ */
.contact-section {
  padding: 80px 0;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 556px;
  gap: 120px;
  align-items: center;
}

.contact-section__image {
  border-radius: 4px;
  overflow: hidden;
  height: 814px;
  align-self: stretch;
}

.contact-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--c3);
}

.form-field__required {
  color: var(--c1);
}

.form-field__input,
.form-field__textarea {
  background: var(--white);
  border: 1px solid var(--c3);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c3);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-field__input::placeholder,
.form-field__textarea::placeholder {
  color: color-mix(in srgb, var(--c3) 40%, transparent);
}

.form-field__input:focus,
.form-field__textarea:focus {
  border-color: var(--c1);
}

.contact-form__rgpd {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c3);
}

.contact-form__rgpd a {
  color: var(--c1);
  text-decoration: underline;
}

.contact-form__captcha {
  width: 322px;
  height: 104px;
  background: var(--c3-08);
  border: 1px dashed var(--c2-50);
}

/* ============================================================
   HERO — VARIANTE COURTE (page À propos)
============================================================ */
.hero--short {
  height: 441px;
}

/* ============================================================
   À PROPOS — PRÉSENTATION (image + texte)
============================================================ */
.about-content {
  padding: 80px 0;
}

.about-content__inner {
  display: grid;
  grid-template-columns: 543px 1fr;
  gap: 80px;
  align-items: center;
}

.about-content__image {
  overflow: hidden;
  height: 511px;
}

.about-content__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-content__text .section-title {
  margin-bottom: 12px;
}

.about-content__text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c3);
}

/* ============================================================
   VALEURS & DÉMANTÈLEMENT
============================================================ */
.valeurs {
  background: var(--c1-10);
  padding: 80px 0;
}

.valeurs__inner {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 80px;
  align-items: start;
}

.valeurs__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.valeurs__content .section-header {
  margin-bottom: 12px;
}

.valeurs__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c3);
}

.valeurs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: center;
}

.valeur-card {
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 5px 26.5px 0 var(--c3-08);
}

.valeur-card img { flex-shrink: 0; }

.valeur-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c3);
  line-height: 1.3;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  :root { --container-padding: 48px; }
  .hero__title        { font-size: 56px; }
  .hero__desc         { font-size: 20px; }
  .section-title      { font-size: 32px; }
  .process__grid      { grid-template-columns: repeat(2, 1fr); }
  .why__inner         { grid-template-columns: 1fr; gap: 40px; }
  .cta-band__title    { font-size: 32px; }
  .reviews__track     { grid-template-columns: 1fr; }
  .location__inner    { grid-template-columns: 1fr; gap: 40px; }
  .location__map      { height: 350px; }
  .gallery__grid          { flex-direction: column; height: auto; }
  .gallery__main          { flex: none; height: 400px; }
  .gallery__aside         { grid-template-columns: 1fr 1fr; }
  .gallery__aside img     { height: 160px; }
  .about-content__inner       { grid-template-columns: 1fr; gap: 40px; }
  .about-content__image       { height: 350px; }
  .valeurs__inner             { grid-template-columns: 1fr; gap: 40px; }
  .contact-section__inner     { grid-template-columns: 1fr; gap: 40px; }
  .contact-section__image     { height: 300px; }
  .footer__main-inner         { flex-direction: column; align-items: flex-start; }
  .footer__nav        { gap: 24px; flex-wrap: wrap; }
  .footer__bottom-inner { flex-direction: column; height: auto; padding: 16px 0; gap: 8px; text-align: center; }
}

@media (max-width: 768px) {
  :root { --container-padding: 24px; }

  .header        { height: auto; padding: 12px 0; }
  .nav           { gap: 16px; }
  .nav__link     { font-size: 13px; }

  .hero          { height: auto; padding: 80px 0; }
  .hero__title   { font-size: 40px; }
  .hero__desc    { font-size: 16px; max-width: 100%; }

  .reassurance__grid  { gap: 32px; }
  .reassurance__item  { flex: 1 1 40%; }
  .about__text        { font-size: 18px; line-height: 1.6; }
  .services__grid     { grid-template-columns: 1fr; }
  .service-card       { height: 200px; }
}

@media (max-width: 480px) {
  .nav .btn      { display: none; }
  .logo          { font-size: 24px; }
  .hero__title   { font-size: 32px; }
  .hero__cta     { flex-direction: column; }
  .hero__cta .btn { width: 100%; }

  .reassurance__item          { flex: 1 1 100%; }
  .about__text                { font-size: 16px; }
  .about-content__image       { height: 250px; }
  .contact-section__image     { height: 220px; }
  .contact-form__row          { grid-template-columns: 1fr; gap: 16px; }
  .contact-form__captcha      { width: 100%; }
  .valeurs__grid              { grid-template-columns: 1fr; }
  .process__grid          { grid-template-columns: 1fr; }
  .section-title          { font-size: 28px; }
  .section-desc           { font-size: 16px; }
  .cta-band__title        { font-size: 26px; }
  .why__image             { min-height: 250px; }
}

/* ============================================================
   PAGES LÉGALES
============================================================ */
.legal-page {
  padding: 80px 0;
}

.legal-page__inner {
  max-width: 800px;
}

.legal-page__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 600;
  color: var(--c3);
  margin-bottom: 40px;
  line-height: 1.2;
}

.legal-page__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--c3);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c3-08);
}

.legal-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c3-08);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--c3);
  margin-bottom: 16px;
}

.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c3);
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.legal-section li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c3);
}

.legal-section a {
  color: var(--c1);
  text-decoration: underline;
}

.legal-page__update {
  font-size: 13px;
  color: var(--c2-50);
  margin-top: 40px;
  font-style: italic;
}
