/* ==========================================================================
   1. RESET & SYSTÈME GLOBAL
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-accent, #c2410c);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* Utilitaire — visible uniquement pour les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--c-accent, #c2410c);
  outline-offset: 3px;
  border-radius: 2px;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

body main { animation: fadeIn 0.5s ease; }

/* ==========================================================================
   2. VARIABLES & BASE
   ========================================================================== */
body {
  --c-bg: #1c1917;         /* Noir teinté de brun très chaud */
  --c-surface: #292524;    /* Gris/Brun moyen pour les cartes */
  --c-text: #fafaf9;       /* Blanc très légèrement cassé/chaud */
  --c-text-muted: #a8a29e;
  --c-border: #44403c;
  --c-accent: #c2410c;     /* Terracotta vif / Terre Cuite */

  --f-heading: 'Playfair Display', 'Georgia', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
body .v-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   4. TYPOGRAPHIE
   ========================================================================== */
body h1,
body h2,
body h3 {
  font-family: var(--f-heading);
  font-weight: 400;
  font-style: italic;
}

body h1 strong,
body h2 strong {
  font-style: normal;
  color: var(--c-accent);
  font-weight: 600;
}

/* ==========================================================================
   5. COMPOSANTS GLOBAUX
   ========================================================================== */

/* Liens sans décoration (cartes savoir-faire) */
body a { color: inherit; text-decoration: none; }

/* Bouton */
body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--c-accent);
  background: var(--c-accent);
  color: #fff;
  transition: all 0.3s ease;
  border-radius: 4px;
}
body .btn:hover {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-accent);
}

/* Titre de section */
body .section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 3rem;
  text-align: center;
}

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
body .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(28, 25, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
}

body .header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

body .header__logo {
  display: flex;
  align-items: center;
}

body .header__logo img {
  height: 100px;
  width: auto;
}

body .nav__list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

body .nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

body .nav__link:hover,
body .nav__link--active {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 4px;
}

/* ==========================================================================
   7. DÉCALAGE HEADER FIXE
   ========================================================================== */
body main {
  padding-top: 80px; /* valeur initiale — ajustée dynamiquement par main.js */
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
body .hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

body .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 25, 23, 0.55) 0%,
    rgba(28, 25, 23, 0.75) 100%
  );
  z-index: 0;
}

body .hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 4rem 0;
  text-align: center;
  margin: 0 auto;
}

body .hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

body .hero__subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--c-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

/* ==========================================================================
   9. BANNIÈRE PAGE INTERNE
   ========================================================================== */
body .page-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 40vh;
  min-height: 300px;
  margin-bottom: 4rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body .page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   10. INTRO (bloc texte homepage)
   ========================================================================== */
body .intro {
  padding: 3rem 0 0;
}

body .intro__text {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--c-text-muted);
  text-align: center;
}

body .intro__text a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   11. EXPERTISE (cartes savoir-faire)
   ========================================================================== */
body .expertise {
  padding: 6rem 0;
}

body .expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

body .exp-card {
  background: var(--c-surface);
  padding: 3rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

body .exp-card:hover {
  transform: translateY(-5px);
  border-color: var(--c-accent);
}

body .exp-card__icon {
  color: var(--c-accent);
  font-family: var(--f-heading);
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

body .exp-card__title {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body .exp-card__desc {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   11. À PROPOS (L'Artisan)
   ========================================================================== */
body .about {
  padding: 8rem 0;
}

body .about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

body .about__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 20px 20px 0 var(--c-surface);
  overflow: hidden;
}

body .about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body .about__content p {
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

body .about__content strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ==========================================================================
   12. PAGES DE SERVICE (Intérieur / Extérieur)
   ========================================================================== */
body .service-page {
  padding: 6rem 0;
}

body .service-page__header {
  text-align: center;
  margin-bottom: 4rem;
}

body .service-page__title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

body .service-page__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

body .service-page__text p {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

body .service-list {
  list-style: none;
  margin-bottom: 3rem;
  background: var(--c-surface);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
}

body .service-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--c-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

body .service-list li:last-child {
  border-bottom: none;
}

body .service-list li::before {
  content: '✦' / '';
  color: var(--c-accent);
  font-size: 1.2rem;
}

/* ==========================================================================
   13. CAROUSEL
   ========================================================================== */
body .carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body .carousel__track {
  width: 100%;
  height: 100%;
  position: relative;
}

body .carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

body .carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body .carousel__slide--active {
  opacity: 1;
  z-index: 1;
}

body .carousel__controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 1rem;
  background: rgba(28, 25, 23, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--c-border);
}

body .carousel__btn {
  width: 40px;
  height: 40px;
  background-color: transparent;
  color: var(--c-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

body .carousel__btn:hover {
  color: var(--c-accent);
}


/* ==========================================================================
   13b. SERVICE — sous-titre de section
   ========================================================================== */
body .service-subtitle {
  color: var(--c-text-muted);
}

/* ==========================================================================
   14. CONTACT
   ========================================================================== */
body .contact-wrap {
  padding: 6rem 0;
}

body .form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--c-surface);
  padding: 4rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.honeypot { display: none; }

body .form__group {
  margin-bottom: 2rem;
}

body .form__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}

body .form__input,
body .form__textarea {
  width: 100%;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  padding: 1rem;
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-text);
  transition: border-color 0.3s ease;
}

body .form__input:focus,
body .form__textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 0;
  border-color: var(--c-accent);
}

body .form__textarea {
  min-height: 120px;
  resize: vertical;
}

body .form__feedback {
  display: block;
  padding: 1rem;
  margin-bottom: 2rem;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: 4px;
  text-align: center;
}

body .form__feedback--success {
  background: rgba(22, 163, 74, 0.1);
  border-color: #16a34a;
  color: #16a34a;
}

body .form__input--error {
  border-color: #ef4444;
}

body .form__field-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.required-mark {
  color: var(--c-accent);
  margin-left: 0.2rem;
}

body .contact__required-note {
  display: block;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  color: var(--c-text-muted);
}

body .contact-wrap .section-title {
  margin-bottom: 2rem;
}

body .contact__intro {
  text-align: center;
  color: var(--c-text-muted);
  margin-bottom: 3rem;
}

body .form__submit {
  text-align: center;
  margin-top: 3rem;
}

body .about__content .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
body .footer {
  padding: 4rem 0 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

body .footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

body .footer__nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  transition: color 0.2s;
}

body .footer__nav a:hover {
  color: var(--c-text);
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-underline-offset: 4px;
}

/* ==========================================================================
   17. ZONE D'INTERVENTION
   ========================================================================== */
body .zone-content {
  max-width: 800px;
  margin: 0 auto;
}

body .zone-intro {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

body .zone-intro a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

body .zone-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

body .zone-card strong {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
}

body .zone-card span {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

body .zone-note {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin-bottom: 2.5rem;
}

body .zone-cta { text-align: center; }

body .zone-link {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

body .zone-link a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   18. MENTIONS LÉGALES
   ========================================================================== */
body .legal {
  padding: 6rem 0;
  max-width: 800px;
}

body .legal__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 4rem;
  text-align: center;
}

body .legal__section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--c-border);
}

body .legal__section:last-child {
  border-bottom: none;
}

body .legal__section h2 {
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

body .legal__section p {
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

body .legal__section p:last-child { margin-bottom: 0; }

body .legal__section a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   19. PAGE 404
   ========================================================================== */
body .not-found {
  padding: 10rem 0;
  display: flex;
  justify-content: center;
}

body .not-found__inner {
  text-align: center;
  max-width: 540px;
}

body .not-found__code {
  display: block;
  font-family: var(--f-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-style: italic;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

body .not-found__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

body .not-found__text {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  body .expertise__grid,
  body .about__grid,
  body .service-page__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body .header__inner {
    flex-direction: column;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }

  body .nav__list {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  body .hero__title {
    font-size: 1.9rem;
  }

  body .form {
    padding: 2rem;
  }

  body .about__image {
    box-shadow: none;
  }

  body .page-banner img {
    object-position: -385px center;
  }
}
