/* Styles spécifiques à la page d'accueil */

/* Hero */
.hero {
  background: linear-gradient(
      135deg,
      rgba(138, 154, 124, 0.85),
      rgba(94, 108, 83, 0.85)
    ),
    url("../images/pic.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
  color: #fff;
}

.hero p {
  font-size: 20px;
  margin: 0 auto 30px;
  max-width: 820px;
  line-height: 1.7;
}

.hero .btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--vert-sauge);
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

/* Banner */
.banner {
  background: var(--gris-anth);
  color: #fff;
  text-align: center;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 17px;
}

/* Sections alternées */
section:nth-of-type(even) {
  background: #fff;
}

/* Prestations */
.prestations .cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--vert-sauge);
  margin-bottom: 16px;
}

.items {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.item {
  border: 2px dashed #e6e6e6;
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.3s ease;
}

.item:hover {
  border-color: var(--vert-sauge);
}

.item h4 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 700;
}

.item p {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

.tarif {
  font-weight: 800;
  color: var(--vert-sauge);
  font-size: 16px;
}

.cat-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-cta .btn-outline {
  flex: 1;
  min-width: 140px;
  text-align: center;
  font-size: 15px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid var(--vert-sauge);
  color: var(--vert-sauge);
  display: inline-block;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.cat-cta .btn-outline:hover {
  background: #fff;
  color: var(--vert-sauge);
  border-color: var(--vert-fonce);
}

.cat-cta .btn-primary {
  flex: 1;
  min-width: 140px;
  text-align: center;
  font-size: 15px;
  padding: 12px 20px;
  background: var(--vert-sauge);
  color: #fff;
  border: 2px solid var(--vert-sauge);
  display: inline-block;
  border-radius: 50px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.cat-cta .btn-primary:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-fonce);
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* Avis clients - Carousel */
.avis-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 50px;
}

.avis-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 20px;
}

.avis-wrapper::-webkit-scrollbar {
  display: none;
}

.avis-grid {
  display: flex;
  gap: 24px;
  width: max-content;
}

.avis-card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  min-width: 350px;
  max-width: 350px;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 2px solid var(--vert-sauge);
  color: var(--vert-sauge);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: var(--vert-sauge);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: var(--vert-sauge);
  width: 32px;
  border-radius: 6px;
}

.indicator:hover {
  background: var(--vert-fonce);
}

.stars {
  color: #ffb703;
  font-size: 20px;
  margin-bottom: 12px;
}

.avis-text {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.avis-author {
  font-weight: 700;
  color: var(--gris-anth);
}

.avis-meta {
  font-size: 14px;
  color: #888;
}

/* Formulaire de contact */
.contact-intro {
  text-align: center;
  font-size: 20px;
  color: var(--gris-anth);
  margin: -20px auto 40px;
  max-width: 600px;
  font-weight: 600;
  line-height: 1.6;
}

.contact-card {
  background: #fff;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--gris-anth);
  margin-bottom: 12px;
}

.label-text {
  flex: 1;
}

.required-mark {
  color: #dc2626;
  font-size: 20px;
  font-weight: 800;
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 20px;
  border: 3px solid #ddd;
  border-radius: 12px;
  font-family: inherit;
  font-size: 17px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--vert-sauge);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(138, 154, 124, 0.1);
}

.form-group textarea {
  min-height: 150px;
  line-height: 1.6;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-size: 16px;
}

.field-hint {
  font-size: 15px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-input-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  border: 3px dashed #ccc;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-wrapper:hover .file-input-display {
  border-color: var(--vert-sauge);
  background: rgba(138, 154, 124, 0.05);
}

.file-icon {
  font-size: 32px;
}

.file-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--gris-anth);
}

.consent-wrapper {
  margin: 40px 0;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  position: relative;
}

.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 3px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.consent-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--vert-sauge);
  border-color: var(--vert-sauge);
}

.consent-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.consent-label input[type="checkbox"]:focus + .checkbox-custom {
  box-shadow: 0 0 0 4px rgba(138, 154, 124, 0.2);
}

.consent-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--gris-anth);
  line-height: 1.6;
  padding-top: 2px;
}

.consent-note {
  font-size: 14px;
  color: #666;
  margin: 12px 0 0 44px;
  line-height: 1.5;
}

.consent-note a {
  color: var(--vert-sauge);
  text-decoration: underline;
  font-weight: 600;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--vert-sauge), var(--vert-fonce));
  color: #fff;
  border: none;
  padding: 22px 32px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(138, 154, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 154, 124, 0.4);
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-sauge));
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 48px 0;
  position: relative;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #e0e0e0;
}

.contact-divider span {
  padding: 0 20px;
  font-weight: 700;
  font-size: 15px;
  color: #999;
  background: #fff;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 3px solid #dee2e6;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--vert-sauge);
  text-decoration: none;
}

.method-icon {
  font-size: 40px;
}

.method-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--gris-anth);
}

.contact-guarantee {
  text-align: center;
  font-size: 16px;
  color: #666;
  font-weight: 600;
  line-height: 1.6;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--vert-sauge);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

/* Simulateur de tarif */
.simulator-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.simulator-intro {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  font-weight: 500;
}

.simulator-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid var(--vert-sauge);
}

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

.label-icon {
  font-size: 18px;
  margin-right: 8px;
}

.btn-simulator {
  width: 100%;
  background: linear-gradient(135deg, var(--vert-sauge), var(--vert-fonce));
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 154, 124, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-simulator:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 154, 124, 0.4);
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-sauge));
}

.btn-simulator:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 22px;
}

.simulator-result {
  margin-top: 20px;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--vert-sauge), var(--vert-fonce));
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(138, 154, 124, 0.2);
  display: none;
  animation: slideIn 0.4s ease;
}

.simulator-result:not(:empty) {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.simulator-disclaimer {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.6;
}

.disclaimer-icon {
  font-size: 16px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  margin: 16px 0;
}

.consent input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.form-status {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  white-space: pre-line;
}

.form-status.success {
  background: #d1fae5;
  color: #065f46;
  border: 3px solid #10b981;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 3px solid #dc2626;
}

/* Galerie Avant/Après */
.gallery {
  padding: 70px 20px;
}

.gallery .tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gallery .tab {
  border: 2px solid var(--vert-sauge);
  background: #fff;
  color: var(--vert-sauge);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.gallery .tab[aria-selected="true"] {
  background: var(--vert-sauge);
  color: #fff;
}

.gallery .hint {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 8px;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.two-up figure {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.two-up img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.two-up figcaption {
  padding: 10px 14px;
  font-weight: 700;
  color: var(--vert-sauge);
}

.compare {
  position: relative;
  max-width: 980px;
  margin: 18px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.compare__img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.compare__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare__slider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  appearance: none;
  height: 36px;
  background: linear-gradient(90deg, #0000 0 100%);
  outline: none;
  cursor: ew-resize;
}

.compare__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--vert-sauge);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.compare__slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--vert-sauge);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}

.badge--after {
  left: auto;
  right: 10px;
}

/* Media queries spécifiques */
@media (max-width: 900px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 36px;
  }
}

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

@media (max-width: 768px) {
  .container {
    padding: 0;
  }
  section {
    padding: 70px 16px;
  }
  .hero {
    padding: 80px 16px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 18px;
  }
  h2 {
    font-size: 30px;
  }
  .cat-cta {
    flex-direction: column;
  }
  .cat-cta .btn-outline,
  .cat-cta .btn-primary {
    width: 100%;
  }
  .avis-container {
    padding: 0 20px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .avis-card {
    min-width: 300px;
    max-width: 300px;
  }
  .simulator-card {
    padding: 24px 16px;
  }
  .simulator-intro {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .simulator-result {
    font-size: 22px;
    padding: 16px;
  }
  .btn-simulator {
    font-size: 16px;
    padding: 14px 20px;
  }
  .contact-card {
    padding: 32px 16px;
  }
  .contact-intro {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .form-group label {
    font-size: 17px;
  }
  .label-icon {
    font-size: 22px;
  }
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 16px 18px;
  }
  .btn-submit {
    font-size: 18px;
    padding: 18px 24px;
  }
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .contact-method {
    padding: 24px 20px;
  }
  .method-icon {
    font-size: 36px;
  }
  .method-value {
    font-size: 17px;
  }
  .btn-primary {
    padding: 14px 24px;
    font-size: 16px;
  }
  .two-up img {
    height: 240px;
  }
  .compare__img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .simulator-card {
    padding: 20px 12px;
    border-width: 1px;
  }
  .simulator-intro {
    font-size: 15px;
  }
  .simulator-result {
    font-size: 20px;
    padding: 14px;
  }
  .label-icon {
    font-size: 16px;
  }
  .btn-simulator {
    font-size: 15px;
    padding: 12px 16px;
    gap: 6px;
  }
  .btn-icon {
    font-size: 20px;
  }
  .simulator-disclaimer {
    font-size: 12px;
  }
}
