/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --cream: #F7F1EB;
  --black: #333333;
  --brown-btn: #856457;
  --brown-btn-hover: #6f5349;
  --brown-dark: #333333;
  --font-body: 'Poppins', -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== LOGO SWAP ===== */
.logo-dark { display: none; }
.logo-default { display: block; }

body.dark-mode .logo-dark { display: block; }
body.dark-mode .logo-default { display: none; }

/* ===== ACCESSIBILITÉ GLOBALE ===== */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--brown-btn);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 10px 10px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--brown-btn);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion */
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* High contrast */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast .navbar,
body.high-contrast .footer,
body.high-contrast .devis,
body.high-contrast .methode__card,
body.high-contrast .realisations__card,
body.high-contrast .devis__form,
body.high-contrast .avis__form {
  background: #111 !important;
  border: 1px solid #fff !important;
}

body.high-contrast p,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast li,
body.high-contrast label,
body.high-contrast a:not(.navbar__cta):not(.hero__cta):not(.footer__cta):not(.avis__btn):not(.devis__form-btn) {
  color: #fff !important;
}

body.high-contrast .navbar__cta,
body.high-contrast .hero__cta,
body.high-contrast .footer__cta,
body.high-contrast .avis__btn,
body.high-contrast .devis__form-btn,
body.high-contrast .footer__social {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}

body.high-contrast .hero__overlay {
  background: rgba(0, 0, 0, 0.65) !important;
}

/* Dyslexia font */
body.dyslexia-font,
body.dyslexia-font p,
body.dyslexia-font h1,
body.dyslexia-font h2,
body.dyslexia-font h3,
body.dyslexia-font a,
body.dyslexia-font button,
body.dyslexia-font input,
body.dyslexia-font textarea,
body.dyslexia-font label {
  font-family: 'OpenDyslexic', sans-serif !important;
  letter-spacing: 0.04em;
  line-height: 1.85 !important;
  word-spacing: 0.08em;
}

/* Grayscale */
body.grayscale {
  filter: grayscale(100%);
}

/* Dark mode */
body.dark-mode {
  --white: #1c1c1c;
  --cream: #252525;
  --black: #e8e0d8;
  background: #1c1c1c;
  color: #e8e0d8;
}

body.dark-mode .navbar {
  background: #1c1c1c;
  border-bottom: 1px solid #333;
}

body.dark-mode .navbar__links a,
body.dark-mode .navbar__mobile-links a {
  color: #e8e0d8;
}

body.dark-mode .navbar__mobile {
  background: #1c1c1c;
  border-top-color: #333;
}

body.dark-mode .navbar__burger span {
  background: #e8e0d8;
}

body.dark-mode .hero__overlay {
  background: rgba(0, 0, 0, 0.55);
}

body.dark-mode .apropos,
body.dark-mode .realisations,
body.dark-mode .atelier,
body.dark-mode .avis,
body.dark-mode .methode {
  background: #1c1c1c;
}

body.dark-mode .devis {
  background: #252525;
}

body.dark-mode .realisations__card {
  background: #2d2d2d;
}

body.dark-mode .realisations__label {
  color: #e8e0d8;
}

body.dark-mode .methode__card {
  background: #2d2d2d;
}

body.dark-mode .methode__name,
body.dark-mode .methode__desc {
  color: #e8e0d8;
}

body.dark-mode .atelier__text {
  border-color: #444;
}

body.dark-mode .atelier__text p {
  color: #e8e0d8;
}

body.dark-mode .devis__form {
  background: #333;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

body.dark-mode .devis__form-group input,
body.dark-mode .avis__form-group input,
body.dark-mode .avis__form-group textarea {
  background: #2d2d2d;
  border-color: #444;
  color: #e8e0d8;
}

body.dark-mode .devis__form-group input::placeholder,
body.dark-mode .avis__form-group input::placeholder,
body.dark-mode .avis__form-group textarea::placeholder {
  color: #888;
}

body.dark-mode .devis__form-title,
body.dark-mode .devis__title,
body.dark-mode .devis__desc,
body.dark-mode .devis__form-group label,
body.dark-mode .avis__form-group label {
  color: #e8e0d8;
}

body.dark-mode .avis__form {
  background: #2d2d2d;
}

body.dark-mode .avis__author,
body.dark-mode .avis__message {
  color: #e8e0d8;
}

body.dark-mode .avis__empty p {
  color: #888;
}

body.dark-mode .footer {
  background: #161616;
  border-top: 1px solid #333;
}

body.dark-mode .footer__title,
body.dark-mode .footer__desc,
body.dark-mode .footer__nav a,
body.dark-mode .footer__bottom p {
  color: #e8e0d8;
}

body.dark-mode .footer__bottom {
  border-top-color: #333;
}

body.dark-mode .footer__legal a {
  color: #e8e0d8;
  opacity: 0.6;
}

body.dark-mode .section-title,
body.dark-mode .apropos__text p,
body.dark-mode .apropos__text strong {
  color: #e8e0d8;
}

body.dark-mode .a11y-widget__panel {
  background: #2d2d2d;
  border-left-color: var(--brown-btn);
}

body.dark-mode .a11y-widget__title,
body.dark-mode .a11y-widget__label {
  color: #e8e0d8;
}

body.dark-mode .a11y-widget__btn,
body.dark-mode .a11y-widget__option {
  background: #3a3a3a;
  border-color: #555;
  color: #e8e0d8;
}

body.dark-mode .a11y-widget__reset {
  background: #3a3a3a;
}

body.dark-mode .cookie-banner {
  background: #252525;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cookie-banner p {
  color: #e8e0d8;
}

/* Hero : toujours blanc quel que soit le mode */
body.dark-mode .hero__title,
body.dark-mode .hero__subtitle,
body.dark-mode .hero__scroll {
  color: #ffffff !important;
}

/* Boutons : forcer texte clair en dark mode */
body.dark-mode .navbar__cta,
body.dark-mode .hero__cta,
body.dark-mode .footer__cta,
body.dark-mode .avis__btn,
body.dark-mode .devis__form-btn,
body.dark-mode .avis__form-submit,
body.dark-mode .navbar__mobile-cta,
body.dark-mode .footer__social,
body.dark-mode .back-to-top,
body.dark-mode .a11y-widget__toggle,
body.dark-mode .cookie-banner__accept {
  color: #F7F1EB !important;
}

body.dark-mode .cookie-banner__refuse {
  color: #F7F1EB !important;
  border-color: #F7F1EB !important;
}

body.dark-mode .cookie-banner__refuse:hover {
  background: #F7F1EB !important;
  color: #856457 !important;
}

/* ===== PANNEAU ACCESSIBILITÉ ===== */
.a11y-widget {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  align-items: flex-start;
}

.a11y-widget__toggle {
  width: 44px;
  height: 44px;
  border-radius: 0 10px 10px 0;
  border: none;
  background: var(--brown-btn);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, width 0.25s ease;
  flex-shrink: 0;
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.a11y-widget__toggle:hover {
  background: var(--brown-btn-hover);
  width: 50px;
}

.a11y-widget__panel {
  background: var(--white);
  border-radius: 0 12px 12px 0;
  padding: 24px 20px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  min-width: 220px;
  display: none;
  border-left: 3px solid var(--brown-btn);
}

.a11y-widget__panel.open {
  display: block;
}

.a11y-widget__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e0d8;
}

.a11y-widget__group {
  margin-bottom: 20px;
}

.a11y-widget__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.a11y-widget__row {
  display: flex;
  gap: 8px;
}

.a11y-widget__btn {
  flex: 1;
  padding: 8px;
  border: 1.5px solid #d9d0c8;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-widget__btn:hover {
  border-color: var(--brown-btn);
  color: var(--brown-btn);
}

.a11y-widget__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1.5px solid #d9d0c8;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.a11y-widget__option:hover {
  border-color: var(--brown-btn);
  color: var(--brown-btn);
}

.a11y-widget__option.active {
  background: var(--brown-btn);
  color: var(--cream);
  border-color: var(--brown-btn);
}

.a11y-widget__option.active svg {
  stroke: var(--cream);
}

.a11y-widget__reset {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #f0e8e2;
  color: var(--brown-btn);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s ease;
}

.a11y-widget__reset:hover {
  background: #e5d8cf;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader.split .loader__left,
.loader.split .loader__right {
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader.split .loader__left {
  transform: translateX(-100%);
}

.loader.split .loader__right {
  transform: translateX(100%);
}

.loader.gone {
  visibility: hidden;
  pointer-events: none;
}

.loader__left,
.loader__right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--cream);
  z-index: 2;
}

.loader__left { left: 0; }
.loader__right { right: 0; }

.loader__logo {
  position: relative;
  z-index: 3;
  width: 160px;
  height: auto;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader.split .loader__logo {
  animation: loaderLogoOut 0.6s ease forwards;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes loaderLogoOut {
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1), transform 1.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

.reveal-line {
  opacity: 0;
  width: 0 !important;
  transition: opacity 0.8s ease, width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-line.visible {
  opacity: 1;
  width: 100% !important;
  max-width: 380px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
}

.navbar__logo {
  flex-shrink: 0;
}

.navbar__logo img {
  width: 108px;
  height: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.navbar__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--brown-dark);
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--brown-btn);
  transition: width 0.25s ease;
}

.navbar__links a:hover {
  color: #856457;
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 100px;
  background: var(--brown-btn);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.25s ease;
  white-space: nowrap;
}

.navbar__cta:hover {
  background: var(--brown-btn-hover);
}

/* Burger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  padding: 32px 48px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.navbar__mobile.active {
  display: block;
}

.navbar__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.navbar__mobile-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--brown-dark);
}

.navbar__mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  padding: 15px 30px;
  border-radius: 100px;
  background: var(--brown-btn);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateZ(0);
  height: 120%;
  top: -10%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding: 0 40px;
  padding-top: 88px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero__subtitle {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.005em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 15px 30px;
  border-radius: 100px;
  background: var(--brown-btn);
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.25s ease;
}

.hero__cta:hover {
  background: var(--brown-btn-hover);
}

.hero__cta svg {
  transition: transform 0.25s ease;
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.7;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.25s ease;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  font-style: normal;
  color: var(--brown-dark);
  text-align: center;
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* ===== À PROPOS ===== */
.apropos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px 80px;
}

.apropos__text {
  max-width: 1100px;
  margin: 0 auto;
}

.apropos__text p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--black);
  letter-spacing: 0.005em;
}

.apropos__text p + p {
  margin-top: 28px;
}

.apropos__text strong {
  font-weight: 600;
}

/* ===== RÉALISATIONS ===== */
.realisations {
  padding: 60px 48px 100px;
}

.realisations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.realisations__card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream);
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.realisations__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.realisations__card.reveal:nth-child(4n+2) { transition-delay: 0.12s; }
.realisations__card.reveal:nth-child(4n+3) { transition-delay: 0.24s; }
.realisations__card.reveal:nth-child(4n) { transition-delay: 0.36s; }

.realisations__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.realisations__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.realisations__card:hover .realisations__img img {
  transform: scale(1.03);
}

.realisations__label {
  padding: 20px 16px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
}

/* ===== AVIS ===== */
.avis {
  padding: 80px 48px 100px;
  text-align: center;
}

.avis__carousel {
  position: relative;
  max-width: 1320px;
  margin: 0 auto 48px;
  padding: 0 60px;
}

.avis__list-wrapper {
  overflow: hidden;
}

.avis__list {
  display: flex;
  gap: 32px;
  transition: transform 0.4s ease;
}

.avis__empty {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
}

.avis__empty p {
  font-size: 16px;
  color: #999;
  line-height: 1.7;
}

.avis__card {
  flex: 0 0 calc(33.333% - 22px);
  position: relative;
  text-align: left;
  padding: 32px 28px;
}

.avis__card::after {
  content: '\201D';
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 64px;
  color: #d4c8be;
  line-height: 1;
}

.avis__author {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.avis__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.avis__stars span {
  font-size: 20px;
  color: #e5a100;
}

.avis__stars span.empty {
  color: #d9d0c8;
}

.avis__message {
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
}

/* Arrows */
.avis__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brown-btn);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
  z-index: 2;
  flex-shrink: 0;
}

.avis__arrow:hover {
  background: var(--brown-btn-hover);
}

.avis__arrow--left {
  left: 0;
}

.avis__arrow--right {
  right: 0;
}

/* CTA */
.avis__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 40px;
  border-radius: 100px;
  border: none;
  background: var(--brown-btn);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}

.avis__btn:hover {
  background: var(--brown-btn-hover);
}

/* Form */
.avis__form-wrapper {
  max-width: 600px;
  margin: 32px auto 0;
}

.avis__form {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: left;
}

.avis__form-row {
  display: flex;
  gap: 20px;
}

.avis__form-group {
  flex: 1;
  margin-bottom: 20px;
}

.avis__form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.avis__form-group input,
.avis__form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9d0c8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease;
}

.avis__form-group input:focus,
.avis__form-group textarea:focus {
  border-color: var(--brown-btn);
}

.avis__form-group input::placeholder,
.avis__form-group textarea::placeholder {
  color: #a8a09a;
}

.avis__stars-input {
  display: flex;
  gap: 4px;
  padding-top: 8px;
}

.avis__stars-input span {
  font-size: 28px;
  color: #d9d0c8;
  cursor: pointer;
  transition: color 0.15s ease;
}

.avis__stars-input span.active {
  color: #e5a100;
}

.avis__form-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--brown-btn);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}

.avis__form-submit:hover {
  background: var(--brown-btn-hover);
}

/* ===== MÉTHODE ===== */
.methode {
  background: var(--white);
  padding: 80px 48px 100px;
}

.methode__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.methode__card {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
}

.methode__card.reveal:nth-child(3n+2) { transition-delay: 0.12s; }
.methode__card.reveal:nth-child(3n) { transition-delay: 0.24s; }

.methode__img {
  overflow: hidden;
}

.methode__img img {
  width: 100%;
  height: auto;
  display: block;
}

.methode__body {
  padding: 28px 24px 36px;
  text-align: center;
}

.methode__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  color: #b8a08e;
  margin-bottom: 10px;
}

.methode__name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 14px;
}

.methode__desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #555;
}

/* ===== DEVIS ===== */
.devis {
  background: var(--cream);
  padding: 100px 48px;
}

.devis__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.devis__left {
  flex: 1;
}

.devis__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
}

.devis__line {
  width: 100%;
  max-width: 380px;
  height: 2px;
  background: var(--brown-btn);
  margin-top: 24px;
}

.devis__desc {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--black);
}

.devis__right {
  flex: 0 0 50%;
  max-width: 50%;
}

.devis__form {
  background: var(--white);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.devis__form-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 28px;
}

.devis__form-row {
  display: flex;
  gap: 20px;
}

.devis__form-group {
  flex: 1;
  margin-bottom: 20px;
}

.devis__form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.devis__form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9d0c8;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s ease;
}

.devis__form-group input::placeholder {
  color: #a8a09a;
}

.devis__form-group input:focus {
  border-color: var(--brown-btn);
}

.devis__form-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 100px;
  background: var(--brown-btn);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-top: 4px;
}

.devis__form-btn:hover {
  background: var(--brown-btn-hover);
}

.devis__form-success {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #4a7c59;
  font-weight: 500;
}

/* ===== L'ATELIER ===== */
.atelier {
  padding: 80px 48px 100px;
}

.atelier__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1320px;
  margin: 0 auto;
}

.atelier__image {
  flex: 0 0 52%;
  max-width: 52%;
}

.atelier__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 62% 38% 44% 56% / 48% 32% 68% 52%;
  transition: border-radius 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.atelier__image:hover img {
  border-radius: 38% 62% 56% 44% / 52% 68% 32% 48%;
}

.atelier__text {
  flex: 1;
  border-top: 1px solid #d9d0c8;
  border-bottom: 1px solid #d9d0c8;
  padding: 40px 0;
}

.atelier__text p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--black);
}

.atelier__text strong {
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--cream);
  padding: 80px 48px 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr 0.8fr;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  width: 140px;
  height: auto;
  margin: 0 auto 24px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
  opacity: 0.7;
  margin-bottom: 28px;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--brown-btn);
  background: var(--brown-btn);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.footer__cta:hover {
  background: var(--brown-btn-hover);
  border-color: var(--brown-btn-hover);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 28px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__nav a {
  font-size: 15px;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.footer__nav a:hover {
  color: var(--brown-btn);
}

.footer__map iframe {
  width: 100%;
  height: 160px;
  border: 0;
  border-radius: 10px;
}

.footer__socials {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 16px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brown-btn);
  color: var(--cream);
  transition: background 0.25s ease;
}

.footer__social:hover {
  background: var(--brown-btn-hover);
}

/* Footer bottom */
.footer__bottom {
  max-width: 1320px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--black);
  opacity: 0.5;
}

.footer__legal {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer__legal a {
  font-size: 13px;
  color: var(--black);
  opacity: 0.5;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.25s ease;
}

.footer__legal a:hover {
  opacity: 1;
}

.footer__legal span {
  font-size: 13px;
  color: var(--black);
  opacity: 0.3;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brown-btn);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brown-btn-hover);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  flex: 1;
}

.cookie-banner a {
  color: #856457;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__accept {
  padding: 10px 24px;
  border: none;
  border-radius: 100px;
  background: var(--brown-btn);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cookie-banner__accept:hover {
  background: var(--brown-btn-hover);
}

.cookie-banner__refuse {
  padding: 10px 24px;
  border: 1.5px solid var(--brown-btn);
  border-radius: 100px;
  background: transparent;
  color: var(--brown-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.cookie-banner__refuse:hover {
  background: var(--brown-btn);
  color: var(--cream);
}

/* ===== RESPONSIVE — TABLETTE (1080px) ===== */
@media (max-width: 1080px) {
  .navbar__links { display: none; }
  .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  .hero__title { font-size: 40px; }

  .realisations__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .atelier__inner { gap: 40px; }
  .atelier__image { flex: 0 0 48%; max-width: 48%; }

  .methode__grid {
    gap: 20px;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .avis__card {
    flex: 0 0 calc(50% - 16px);
  }
}

/* ===== RESPONSIVE — TABLETTE PETITE (768px) ===== */
@media (max-width: 768px) {
  /* Navbar */
  .navbar__inner { padding: 14px 24px; }
  .navbar__mobile { padding: 28px 24px 36px; }
  .navbar__logo img { width: 90px; }

  /* Hero */
  .hero__content { padding: 0 24px; padding-top: 70px; }
  .hero__title { font-size: 32px; white-space: normal; }
  .hero__subtitle { font-size: 15px; }
  .hero__cta { font-size: 14px; padding: 13px 24px; }
  .hero__scroll { bottom: 24px; }

  /* Sections */
  .section-title { font-size: 30px; margin-bottom: 32px; }

  .apropos { padding: 64px 24px 56px; }
  .apropos__text p { font-size: 15px; line-height: 1.75; }

  /* Réalisations */
  .realisations { padding: 48px 24px 64px; }
  .realisations__grid { gap: 16px; }
  .realisations__label { font-size: 16px; padding: 14px 12px; }

  /* Atelier */
  .atelier { padding: 56px 24px 64px; }
  .atelier__inner { flex-direction: column; gap: 36px; }
  .atelier__image { flex: none; max-width: 80%; margin: 0 auto; }
  .atelier__text { padding: 28px 0; }
  .atelier__text p { font-size: 15px; }

  /* Devis */
  .devis { padding: 56px 24px; }
  .devis__inner { flex-direction: column; gap: 36px; }
  .devis__right { flex: none; max-width: 100%; width: 100%; }
  .devis__title { font-size: 28px; }
  .devis__desc { font-size: 15px; }
  .devis__form { padding: 28px 24px; }
  .devis__form-title { font-size: 24px; margin-bottom: 20px; }
  .devis__form-row { flex-direction: column; gap: 0; }
  .devis__line { max-width: 100%; }

  /* Méthode */
  .methode { padding: 56px 24px 64px; }
  .methode__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Avis */
  .avis { padding: 56px 24px 64px; }
  .avis__card { flex: 0 0 calc(100% - 16px); }
  .avis__form-wrapper { margin: 24px 16px 0; }
  .avis__form { padding: 24px 20px; }
  .avis__form-row { flex-direction: column; gap: 0; }
  .avis__arrow { width: 38px; height: 38px; }

  /* Footer */
  .footer { padding: 56px 24px 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__logo { width: 120px; }
  .footer__title { font-size: 20px; margin-bottom: 20px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Cookie / Back to top */
  .cookie-banner { flex-direction: column; padding: 16px 24px; text-align: center; gap: 16px; }
  .back-to-top { width: 42px; height: 42px; bottom: 24px; right: 24px; }
}

/* ===== RESPONSIVE — MOBILE (480px) ===== */
@media (max-width: 480px) {
  /* Hero */
  .hero__title { font-size: 26px; }
  .hero__subtitle { font-size: 13px; line-height: 1.7; }
  .hero__cta { font-size: 13px; padding: 12px 22px; gap: 8px; }
  .hero__cta svg { width: 16px; height: 16px; }

  /* Sections */
  .section-title { font-size: 26px; margin-bottom: 28px; }

  .apropos { padding: 48px 20px 44px; }
  .apropos__text p { font-size: 14px; }

  /* Réalisations */
  .realisations { padding: 40px 20px 56px; }
  .realisations__grid { grid-template-columns: 1fr; gap: 20px; }
  .realisations__label { font-size: 17px; padding: 16px 12px; }

  /* Atelier */
  .atelier { padding: 48px 20px 56px; }
  .atelier__image { max-width: 100%; }

  /* Devis */
  .devis { padding: 48px 20px; }
  .devis__title { font-size: 24px; }
  .devis__form { padding: 24px 20px; }
  .devis__form-title { font-size: 22px; }

  /* Méthode */
  .methode { padding: 48px 20px 56px; }
  .methode__body { padding: 24px 20px 28px; }
  .methode__number { font-size: 36px; }
  .methode__name { font-size: 16px; }
  .methode__desc { font-size: 13.5px; }

  /* Avis */
  .avis { padding: 48px 20px 56px; }
  .avis__btn { padding: 13px 32px; font-size: 14px; }
  .avis__arrow--left { left: 0; }
  .avis__arrow--right { right: 0; }

  /* Footer */
  .footer { padding: 48px 20px 36px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__logo { width: 110px; }
  .footer__desc { font-size: 13px; }
  .footer__cta { font-size: 13px; padding: 10px 24px; }
  .footer__title { font-size: 18px; margin-bottom: 16px; }
  .footer__nav a { font-size: 14px; }
  .footer__nav ul { gap: 12px; }
  .footer__social { width: 46px; height: 46px; }
  .footer__social svg { width: 18px; height: 18px; }
  .footer__map iframe { height: 140px; }
  .footer__bottom { margin-top: 32px; padding-top: 20px; }
  .footer__legal a, .footer__bottom p { font-size: 12px; }

  /* Cookie */
  .cookie-banner { padding: 16px 20px; }
  .cookie-banner p { font-size: 13px; }
  .cookie-banner__accept, .cookie-banner__refuse { padding: 8px 20px; font-size: 13px; }
  .back-to-top { width: 38px; height: 38px; bottom: 20px; right: 16px; }
  .back-to-top svg { width: 16px; height: 16px; }
}
