/* ==========================================================================
   Loïc Kocher Peinture — feuille de style principale
   ========================================================================== */

:root {
  --color1: #2b2118;
  --color1-light: #4a3826;
  --color1-lighter: #8a7250;
  --color1-dark: #1a140d;
  --color1-darker: #100c07;

  --color2: #c4a882;
  --color2-light: #f5f0e8;
  --color2-mid: #ddd4c4;
  --color2-dark: #6b5a48;

  --accent: #e2661f;
  --accent-dark: #b84f16;

  --font-main: "Bellota Text", "Helvetica Neue", Arial, sans-serif;

  --container-width: 1200px;
  --gap: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: var(--color1); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 400;
  color: #000;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Boutons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s all;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ---- Header ---- */
#site-header {
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 100px;
}

.logo img {
  max-height: 110px;
  height: 110px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color1);
}

.logo-text:hover { color: var(--accent); }

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-nav a {
  display: block;
  font-size: 20px;
  color: var(--color2-dark);
  padding: 10px;
  margin-left: 5px;
  text-transform: uppercase;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  transition: 0.2s all;
}

.main-nav li.active a,
.main-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--color1);
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .logo h2 { font-size: 22px; }
  .logo img { max-height: 60px; height: 60px; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding-bottom: 10px;
  }

  .main-nav a {
    margin-left: 0;
    padding: 12px 6px;
    border-bottom: 1px solid var(--color2-light);
  }
}

/* ---- Hero (accueil) ---- */
.hero {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color1-dark) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.hero-logo {
  max-width: 360px;
  width: 80%;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

.hero h1 {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color2-light);
  font-size: 17px;
}

.hero .btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Logo texte provisoire (en attendant un logo définitif) ---- */
.brand-wordmark {
  display: inline-block;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 auto 1.5rem;
  color: #fff;
  text-shadow: 2px 2px 0 var(--accent-dark), 4px 4px 12px rgba(0, 0, 0, 0.4);
}

.brand-wordmark .brand-wordmark__main {
  display: block;
  font-size: clamp(36px, 6vw, 56px);
  color: var(--accent);
}

.brand-wordmark .brand-wordmark__sub {
  display: block;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color2-light);
  text-shadow: none;
  margin-top: 4px;
}

/* ---- Cartes de services ---- */
.services-section {
  padding: 60px 0;
}

.services-section h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--color2-light);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
}

.service-card i {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}

/* ---- Section mise en avant (image + texte sur fond foncé) ---- */
.highlight-section {
  background: var(--color1);
  color: var(--color2-light);
  padding: 60px 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .highlight-grid { grid-template-columns: 1fr; text-align: center; }
}

.highlight-grid img {
  max-width: 260px;
  margin: 0 auto;
}

.highlight-grid h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.highlight-grid p {
  color: var(--color2-mid);
}

/* ---- Bandeau CTA ---- */
.cta-section {
  background: var(--color2-light);
  text-align: center;
  padding: 50px 0;
}

.cta-section h2 {
  font-size: 22px;
  margin-bottom: 1.2rem;
}

/* ---- Page de choix (racine) ---- */
.chooser-hero {
  background: linear-gradient(135deg, var(--color1) 0%, var(--color1-dark) 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}

.chooser-hero h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.chooser-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color2-light);
}

.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 50px 0 70px;
}

@media (max-width: 800px) {
  .chooser-grid { grid-template-columns: 1fr; }
}

.chooser-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color2-light);
  border-radius: 8px;
  padding: 44px 32px;
  transition: 0.2s transform, 0.2s box-shadow;
}

.chooser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.chooser-card img {
  max-width: 180px;
  margin-bottom: 1.5rem;
}

.chooser-card .brand-wordmark {
  color: var(--color1);
  text-shadow: none;
  margin-bottom: 1.5rem;
}

.chooser-card .brand-wordmark__main { color: var(--accent); }
.chooser-card .brand-wordmark__sub { color: var(--color1-light); }

.chooser-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.chooser-card p {
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 1.8rem;
}

/* ---- Sections vitrine (accueil) ---- */
.feature-section {
  padding: 40px 0 0;
}

.feature-section.bg-white {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap);
  align-items: center;
}

.feature-grid--reverse {
  grid-template-columns: 5fr 7fr;
}

.feature-grid--reverse .feature-text { order: 1; }
.feature-grid--reverse .feature-images { order: 2; }

.feature-images__main {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
}

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

.feature-images__row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--gap);
  margin-top: var(--gap);
}

.feature-images__small {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
}

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

.feature-text {
  padding: 20px;
}

.feature-text h1,
.feature-text h2 {
  font-size: 24px;
  font-weight: 700;
}

.feature-text p { color: rgba(0, 0, 0, 0.6); }

.feature-text .btn { margin-top: 2rem; }

@media (max-width: 992px) {
  .feature-grid,
  .feature-grid--reverse {
    grid-template-columns: 1fr;
  }

  .feature-grid--reverse .feature-text,
  .feature-grid--reverse .feature-images {
    order: initial;
  }

  .feature-text { padding: 20px 0; }
}

/* ---- Footer ---- */
#site-footer {
  background: #fff;
  color: var(--color1-light);
  text-align: center;
  padding: 40px 0;
  margin-top: 40px;
  border-top: 1px solid var(--color2-light);
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--color1);
  margin-bottom: 0.8rem;
}

.footer-company { margin-bottom: 1.5rem; }
.footer-company a { text-decoration: underline; }

.social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: var(--color1);
  font-size: 28px;
  transition: 0.2s color;
}

.social-icons a:hover { color: var(--color1-dark); }

.footer-copyright { font-size: 14px; }

/* ---- Retour en haut ---- */
#scrollToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s all;
  z-index: 500;
  border: none;
  cursor: pointer;
}

#scrollToTop.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---- Bandeau cookies ---- */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 520px;
  background: #fff;
  color: #222;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  font-size: 14px;
}

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

.cookie-consent a { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.cookie-actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; }

.cookie-settings {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 14px;
  margin-top: 14px;
}

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

.cookie-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

/* ---- Page Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 50px 0;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-form .form-group { margin-bottom: 1.2rem; }

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 15px;
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color1);
}

.form-message {
  margin-bottom: 1rem;
}

.form-message .alert {
  background: #eef1f1;
  border: 1px solid var(--color2);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--color1);
}

.form-message .alert.success {
  background: #eaf5ea;
  border-color: #8fc98f;
  color: #2c5c2c;
}

.form-message ul { margin: 6px 0 0 20px; padding: 0; }

.contact-info-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.contact-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.contact-info .lead div { margin-bottom: 6px; }

.map-holder {
  position: relative;
  height: 400px;
  filter: grayscale(100%);
}

.map-holder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-consent {
  position: absolute;
  left: 35px;
  right: 35px;
  top: 25px;
  padding: 25px;
  background: #fff;
  box-shadow: 5px 5px 25px -7px rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.map-consent p { margin-bottom: 6px; }
.map-consent small { color: #666; display: block; margin-bottom: 14px; }

@media (max-width: 600px) {
  .map-consent { left: 15px; right: 15px; padding: 16px; }
}

/* ---- Animation légère au scroll (remplace AOS) ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Écran de chargement ---- */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#pageLoader.loaded {
  opacity: 0;
  pointer-events: none;
}

#pageLoader svg { width: 60px; height: 60px; animation: spin 1.4s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

#pageLoader circle {
  fill: none;
  stroke: var(--color1);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
}
