/* ============================================
   CORRECTION FOOTER & DESIGN GLOBAL - PREMIUM
   Audit visuel complet + corrections UX
   ============================================ */

/* FOOTER - CORRECTIONS DESKTOP */
.footer {
  margin-top: auto;
  background: linear-gradient(180deg, #0b0b0d 0%, #080809 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  opacity: 0.8;
}

/* Container footer avec padding cohérent */
.footer .container.footer-inner,
.footer .container {
  padding-left: max(clamp(2.5rem, 5vw, 3.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(2.5rem, 5vw, 3.5rem), env(safe-area-inset-right));
  box-sizing: border-box;
}

/* Grille footer desktop - 5 colonnes équilibrées */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(3, minmax(130px, 1fr)) minmax(240px, 300px);
  gap: 0;
  padding: clamp(2.5rem, 4.5vw, 3.5rem) 0;
  column-gap: clamp(2.5rem, 4.5vw, 3.5rem);
  min-width: 0;
}

/* Séparateurs verticaux entre colonnes */
.footer-inner > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: clamp(1.75rem, 3.5vw, 2.5rem);
  min-width: 0;
}

/* FOOTER BRAND - Logo et tagline */
.footer-brand {
  min-width: 0;
  padding-right: 0.75rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-brand .logo-accent {
  color: var(--gold);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 260px;
  margin: 0;
}

/* FOOTER NAV - Colonnes de liens */
.footer-nav {
  display: block;
  min-width: 0;
}

.footer-col-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 0;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.footer-col,
.footer-col-details .footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

/* Titres des colonnes */
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0;
  display: block;
  line-height: 1.3;
}

/* Liens footer */
.footer-col a,
.footer-col-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
  display: block;
}

.footer-col a:hover,
.footer-col-links a:hover {
  color: var(--gold-light);
}

/* FOOTER CONTACT - Bloc contact */
.footer-contact {
  padding-top: 0;
  min-width: 0;
}

.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
  line-height: 1.3;
}

.footer-contact a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-contact a:last-child {
  margin-bottom: 0;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

/* Numéro de téléphone - mise en avant */
.footer-tel {
  font-weight: 600;
  font-size: 1.0625rem !important;
  color: var(--text) !important;
  letter-spacing: 0.02em;
  margin-bottom: 0.625rem !important;
}

.footer-tel:hover {
  color: var(--gold-light) !important;
}

/* WhatsApp - couleur verte */
.footer-whatsapp {
  color: var(--whatsapp) !important;
  font-weight: 500;
}

.footer-whatsapp:hover {
  color: var(--whatsapp-hover) !important;
}

/* FOOTER BOTTOM - Copyright */
.footer-bottom {
  padding: clamp(1.25rem, 3vw, 1.5rem) 0;
  padding-bottom: max(clamp(1.25rem, 3vw, 1.5rem), env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom .container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* FOOTER TABLETTE - 2 colonnes */
@media (max-width: 1100px) and (min-width: 901px) {
  .footer-inner:not(:has(.footer-col-details)) {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
    row-gap: 3rem;
  }

  .footer-inner:not(:has(.footer-col-details)) > * + * {
    border-left: none;
    padding-left: 0;
  }

  .footer-inner:not(:has(.footer-col-details)) .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    padding-right: 0;
  }

  .footer-inner:not(:has(.footer-col-details)) .footer-brand p {
    max-width: none;
    margin: 0 auto;
  }

  .footer-inner:not(:has(.footer-col-details)) .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
    grid-column: 1;
    grid-row: 2;
  }

  .footer-inner:not(:has(.footer-col-details)) .footer-contact {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
}

/* FOOTER MOBILE - Accordéons */
.footer-col-details {
  margin: 0;
}

.footer-col-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.footer-col-details summary::-webkit-details-marker {
  display: none;
}

/* Suppression du ] - utilisation d'un vrai chevron */
.footer-col-details summary::after {
  content: '›' !important;
  font-size: 1.25rem !important;
  color: var(--gold) !important;
  margin-left: auto !important;
  transition: transform 0.25s var(--ease-out) !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  transform: rotate(90deg) !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
}

.footer-col-details[open] summary::after {
  transform: rotate(-90deg) !important;
}

/* Desktop : pas d'accordéon */
@media (min-width: 901px) {
  .footer-col-details summary {
    cursor: default;
    padding: 0;
  }

  .footer-col-details summary::after {
    display: none !important;
  }

  .footer-col-details .footer-col-links {
    display: flex !important;
  }
}

/* Mobile : forcer le chevron propre */
@media (max-width: 900px) {
  .footer-col-details summary::after {
    content: '›' !important;
    display: inline-block !important;
    font-size: 1.25rem !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }
}

/* FOOTER MOBILE - Une seule colonne */
@media (max-width: 900px) {
  .footer-inner,
  .footer-inner:not(:has(.footer-nav)) {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2.5rem;
    padding: 3rem 0 2rem;
    text-align: center;
  }

  .footer-inner > * + * {
    border-left: none;
    padding-left: 0;
  }

  .footer .container.footer-inner,
  .footer .container {
    padding-left: max(1.75rem, env(safe-area-inset-left));
    padding-right: max(1.75rem, env(safe-area-inset-right));
  }

  .footer-brand,
  .footer-nav,
  .footer-contact {
    grid-column: 1;
    text-align: center;
  }

  .footer-brand .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-col-details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0;
  }

  .footer-col-details:last-child {
    border-bottom: none;
  }

  .footer-col-details summary {
    padding: 0.875rem 0;
  }

  .footer-col-title {
    font-size: 0.8125rem;
  }

  .footer-col-links {
    padding-bottom: 0.875rem;
    margin-top: 0.625rem;
    gap: 0.625rem;
  }

  .footer-col-links a {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-contact a {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .footer-tel {
    font-size: 1.375rem !important;
    margin-bottom: 1rem !important;
    font-weight: 700;
  }

  .footer-whatsapp {
    font-size: 1.0625rem !important;
  }

  .footer-contact-label {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

/* CORRECTIONS DESIGN GLOBAL */

/* Espacement sections cohérent */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section:first-of-type {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Titres de section - hiérarchie claire */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Sous-titres */
.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Boutons - taille et espacement cohérents */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
  min-height: 56px;
}

.btn-primary {
  background: var(--gold);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Cards - espacement et ombres cohérents */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Formulaires - cohérence */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-out);
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.1);
}

/* Listes - espacement cohérent */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

li:last-child {
  margin-bottom: 0;
}

/* Paragraphes - espacement */
p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

p:last-child {
  margin-bottom: 0;
}

/* Liens - style cohérent */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--gold-light);
}

/* Container - padding cohérent */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(clamp(1.5rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.5rem, 4vw, 2.5rem), env(safe-area-inset-right));
}

/* Mobile - ajustements */
@media (max-width: 768px) {
  .section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }

  .btn {
    width: 100%;
    max-width: 100%;
  }

  .btn-lg {
    padding: 1rem 1.75rem;
  }

  .container {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
}

/* Corrections spécifiques CTA blocks */
.cta-block {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.cta-block-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.cta-block-btn {
  margin-bottom: 1rem;
}

.cta-block-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Corrections hero sections */
.hero-title,
.page-hero-title {
  font-size: clamp(1.5rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle,
.page-hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Corrections alignement global */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Corrections espacement vertical */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
