/* ══════════════════════════════════════════
   Devis Carport Solaire — CSS
   Inspire de dv-hero, tokens :root uniquement.
   ══════════════════════════════════════════ */

.dc-page { font-family: var(--ff-body); color: var(--c-text); overflow-x: clip; }
.dc-wrap { max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--pad-desktop); }
@media (max-width:1024px) { .dc-wrap { padding: 0 var(--pad-tablet); } }
@media (max-width:640px)  { .dc-wrap { padding: 0 var(--pad-mobile); } }

/* Breadcrumb */
.dc-bc { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0 0 32px; padding-top: 32px; }
.dc-bc a { color: var(--c-text-muted); text-decoration: none; }
.dc-bc a:hover { color: var(--c-accent); }
.dc-bc-sep { margin: 0 8px; }

/* Hero */
.dc-hero { background: var(--c-bg); padding: 0 0 var(--space-section); }
.dc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width:940px) { .dc-grid { grid-template-columns: 1fr; } }

/* Copy */
.dc-h1 { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); color: var(--c-text); margin: 0 0 16px; }
.dc-sub { font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--c-text-muted); margin: 0 0 24px; }
.dc-reassure { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.dc-reassure li { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text); }
.dc-reassure svg { color: var(--c-success); flex-shrink: 0; }

/* Formcard */
.dc-formwrap { position: relative; }
.dc-formcard { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 32px 28px; border-top: 4px solid var(--c-accent); }
.dc-form-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--c-text); margin: 0 0 4px; }
.dc-form-subtitle { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0 0 24px; }

/* Fields */
.dc-form-field { margin: 0 0 16px; }
.dc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width:480px) { .dc-form-row { grid-template-columns: 1fr; } }

.dc-label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text); margin: 0 0 6px; }
.dc-opt { font-weight: var(--fw-regular); color: var(--c-text-muted); }

.dc-form input[type="text"],
.dc-form input[type="tel"],
.dc-form input[type="email"],
.dc-form textarea,
.dc-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-navy-12);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  appearance: none;
  -webkit-appearance: none;
}
.dc-form input:focus,
.dc-form textarea:focus,
.dc-form select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: var(--shadow-focus);
}
.dc-form input::placeholder,
.dc-form textarea::placeholder { color: var(--c-gray-light); }

/* Select custom arrow */
.dc-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.dc-form textarea { resize: vertical; min-height: 72px; }

/* Consent */
.dc-consent { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: var(--lh-normal); margin: 0 0 20px; cursor: pointer; }
.dc-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--c-accent); }
.dc-consent a { color: var(--c-accent); text-decoration: underline; }

/* Honeypot */
.dc-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Submit */
.dc-submit {
  width: 100%;
  padding: 16px;
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  border: none !important;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--dur-base), box-shadow var(--dur-base), transform var(--dur-fast);
}
.dc-submit:hover { background: var(--c-accent-hover) !important; box-shadow: var(--shadow-focus); transform: translateY(-1px); }
.dc-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Messages */
.dc-msg { font-size: var(--fs-sm); margin: 12px 0 0; min-height: 20px; }
.dc-msg--ok { color: var(--c-success); }
.dc-msg--err { color: var(--c-error); }

/* ═══ Carrousel photo ═══ */
.dc-carousel { margin-top: 32px; position: relative; overflow: hidden; border-radius: var(--radius-md); }
.dc-carousel-track {
  display: flex;
  width: 100%;
  transition: transform var(--dur-medium) var(--ease-in-out);
  will-change: transform;
}
.dc-carousel-slide { flex: 0 0 100%; min-width: 0; }
.dc-img-frame { border-radius: var(--radius-md); overflow: hidden; background: var(--c-navy-4); }
.dc-img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3/2; }

/* Dots */
.dc-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  position: relative;
  z-index: 2;
}
.dc-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none !important;
  background: var(--c-navy-18);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-base), width var(--dur-base);
  flex-shrink: 0;
}
.dc-carousel-dot.is-active {
  background: var(--c-accent) !important;
  width: 20px;
}
.dc-carousel-dot:hover { background: var(--c-orange-45); }

/* ═══ Icone decorative formcard ═══ */
.dc-formcard { position: relative; }
.dc-formcard-ico {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 80px;
  height: 80px;
  pointer-events: none;
  user-select: none;
}

/* ═══ Sections SEO ═══ */
.dc-seo { padding: var(--space-section-sm) 0; background: var(--c-white); }
.dc-seo-content { max-width: var(--w-content); }
.dc-seo-block { margin: 0 0 40px; }
.dc-seo-block:last-child { margin-bottom: 0; }
.dc-seo-block h2 { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--c-text); margin: 0 0 12px; line-height: var(--lh-snug); }
.dc-seo-block p { font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--c-text-secondary); margin: 0 0 14px; }
.dc-seo-block p:last-child { margin-bottom: 0; }
.dc-seo-block a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.dc-seo-block a:hover { color: var(--c-accent-hover); }

/* ═══ FAQ Devis Carport ═══ */
.dc-faq { padding: var(--space-section-sm) 0 var(--space-section); background: var(--c-bg); }
.dc-faq-title { font-size: var(--fs-h2); font-weight: var(--fw-extrabold); color: var(--c-text); margin: 0 0 var(--space-header-gap); text-align: center; line-height: var(--lh-tight); }
.dc-faq-list { max-width: var(--w-content); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.dc-faq-item { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.dc-faq-item.is-open { border-color: var(--c-orange-30); box-shadow: var(--shadow-card-hover); }
.dc-faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; background: transparent !important; border: none !important; cursor: pointer; text-align: left; font-family: var(--ff-body); color: var(--c-text) !important; }
.dc-faq-q:hover .dc-faq-q-text { color: var(--c-accent) !important; }
.dc-faq-q:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.dc-faq-q-text { flex: 1 1 auto; font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: var(--lh-snug); }
.dc-faq-q-icon { flex: 0 0 auto; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--c-bg); border-radius: var(--radius-sm); color: var(--c-accent); transition: transform var(--dur-medium) var(--ease-in-out), background var(--dur-base), color var(--dur-base); }
.dc-faq-item.is-open .dc-faq-q-icon { transform: rotate(135deg); background: var(--c-accent); color: var(--c-white); }
.dc-faq-a { padding: 0 24px; font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--c-text-secondary); }
.dc-faq-a p { margin: 0 0 20px; }
.dc-faq-a a { color: var(--c-accent); text-decoration: underline; }
.dc-faq-a[hidden] { display: none; }
