/* ==========================================================================
   ART'YSS - SYSTEME DE DESIGN & STYLES GLOBAUX RESPONSIVE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #322A6B;
  --primary-hover: #241D52;
  --accent: #4AE3CE;
  --accent-hover: #36cbba;
  --bg-light: #F7F7F9;
  --bg-white: #FFFFFF;
  --text-dark: #1E1E24;
  --text-muted: #6B6B78;
  --border-light: #E6E6EC;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 35px rgba(50, 42, 107, 0.08);
  --shadow-lg: 0 16px 40px rgba(50, 42, 107, 0.18);
  --font-title: 'Montserrat', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --- TYPOGRAPHIE DES TITRES --- */
h1, h2, h3, .title-font {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.italic { 
  font-style: italic; 
  font-weight: 700;
  color: var(--primary);
}

.badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* --- LOGO IMAGE --- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* --- BOUTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary { background-color: var(--primary); color: #FFF; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-accent { background-color: var(--accent); color: var(--primary); }
.btn-accent:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--primary); background: transparent; color: var(--primary); font-weight: 700; }
.btn-outline:hover { background-color: var(--primary); color: #FFFFFF; transform: translateY(-2px); }

/* --- HEADER & NAVIGATION (DESKTOP) --- */
.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
}

/* --- SECTIONS & CONTAINERS --- */
.section { padding: 4.5rem 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

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

.grid-2-mobile-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.card-service {
  background: var(--bg-white);
  padding: 2.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px;
  height: 48px;
  background: #E8FAF6;
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* --- BLOC BON A SAVOIR (DISPOSITION CENTREE) --- */
.bon-a-savoir-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #FFF;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.bon-a-savoir-card .content-box {
  max-width: 820px;
  margin: 0 auto;
}

/* --- FORMULAIRE & CONFIGURATEUR --- */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  padding: 3.5rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
  align-items: start;
}

.interactive-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.wizard-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.2rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-light);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: var(--accent);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

.wizard-step-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  transition: var(--transition);
}

.wizard-step-node.active { border-color: var(--primary); background: var(--primary); color: #FFF; }
.wizard-step-node.completed { border-color: var(--accent); background: var(--accent); color: var(--primary); }

.form-step-panel { display: none; }
.form-step-panel.active { display: block; animation: fadeInStep 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

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

.choice-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 1.8rem;
}

.choice-card {
  border: 2px solid var(--border-light);
  border-radius: 12px;
  padding: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--bg-white);
}

.choice-card .icon { font-size: 1.4rem; margin-bottom: 0.2rem; }
.choice-card .title { font-weight: 700; color: var(--primary); font-size: 0.92rem; }
.choice-card .desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.choice-card:hover { border-color: var(--primary); background: rgba(50, 42, 107, 0.02); }
.choice-card.selected { border-color: var(--primary); background: rgba(50, 42, 107, 0.04); box-shadow: 0 0 0 2px var(--primary); }

.form-group { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-weight: 600; font-size: 0.88rem; color: var(--primary); }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(50, 42, 107, 0.1);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-light);
}

/* --- TABLEAUX RESPONSIVES --- */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
}

/* --- PAGES JURIDIQUES --- */
.legal-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.8rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid rgba(50, 42, 107, 0.08);
}

.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li { font-size: 0.92rem; line-height: 1.7; }
.legal-card ul { margin-left: 1.5rem; margin-bottom: 1.2rem; }

/* --- AVIS CLIENTS --- */
.reviews-container {
  background: var(--bg-white);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.elfsight-app-80076f95-9035-4668-aedd-ba3fa317dd6d [class*="Header__Title"],
.elfsight-app-80076f95-9035-4668-aedd-ba3fa317dd6d [class*="Header__Container"] {
  display: none !important;
}

/* --- ENCART FLOTTANT (DESKTOP) --- */
.quick-contact-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background-color: var(--accent);
  padding: 1.2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: var(--transition);
}

.widget-close-btn {
  display: none !important;
}

.quick-contact-widget .widget-header h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 0.2rem;
}

.quick-contact-widget .widget-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.quick-contact-widget .widget-btn {
  background-color: var(--bg-white);
  color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.quick-contact-widget .widget-btn:hover { transform: translateY(-2px); background-color: var(--primary); color: var(--bg-white); }
.quick-contact-widget .widget-icon { width: 18px; height: 18px; stroke: var(--primary); flex-shrink: 0; }

/* --- PROCESSUS & PORTFOLIO --- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.process-step { text-align: center; }
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #E8FAF6;
  color: var(--primary);
  font-weight: 800;
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.filter-bar { display: flex; gap: 0.8rem; margin: 1.5rem 0 2.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: 30px;
  background: var(--bg-light);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--primary); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-item { border-radius: 12px; overflow: hidden; height: 280px; position: relative; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(50, 42, 107, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { color: #FFF; font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; }

.cta-banner { background-color: var(--primary); color: #FFF; padding: 3.5rem 2rem; border-radius: 16px; text-align: center; }
.cta-banner h2 { color: #FFF; margin-bottom: 1rem; }

.site-footer { background-color: var(--bg-white); border-top: 1px solid var(--border-light); padding: 3.5rem 1.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.8rem; }
.footer-column h4 { font-size: 0.85rem; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; font-weight: 800; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.5rem; }
.footer-column a { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.8rem; border-top: 1px solid var(--border-light); font-size: 0.82rem; color: var(--text-muted); }

/* ==========================================================================
   ADAPTATION MOBILE & REORGANISATION RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {

  /* --- 1. TAILLE DU LOGO REDUITE EN HAUT ET EN BAS --- */
  .logo-img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
  }

  .footer-brand .logo-img {
    height: 28px !important;
    max-height: 28px !important;
    width: auto !important;
    margin: 0 auto 0.6rem auto !important;
  }

  /* --- 2. SECTIONS & TITRE HERO DE LA PAGE D'ACCUEIL EN PLUS GRAND --- */
  .section, .contact-hero, .hero-home {
    padding: 2.2rem 1rem !important;
  }

  .hero-home h1 {
    font-size: 2.1rem !important;
    line-height: 1.2 !important;
  }

  h1 { font-size: 1.8rem !important; line-height: 1.25 !important; }
  h2 { font-size: 1.35rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.15rem !important; }

  /* --- 3. REORGANISATION INTELLIGENTE : TITRE -> PHOTO -> TEXTE --- */
  .grid-2-mobile-stack, .contact-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }

  .mobile-text-col {
    display: contents !important;
  }

  .mobile-text-col .badge-tag { order: 1 !important; }
  .mobile-text-col h1, .mobile-text-col h2 { order: 2 !important; }

  .mobile-img-col {
    order: 3 !important;
    width: 100% !important;
  }

  .mobile-img-col img, 
  .hero-home img, 
  .contact-hero img {
    width: 100% !important;
    max-height: 240px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    margin: 0.4rem 0 0.8rem 0 !important;
  }

  .mobile-text-col p { order: 4 !important; margin-top: 0.2rem !important; }
  .mobile-text-col ul { order: 5 !important; }
  .mobile-text-col div, .mobile-text-col .btn { order: 6 !important; }

  /* --- 4. BLOC BON A SAVOIR SUR MOBILE --- */
  .bon-a-savoir-card {
    padding: 2rem 1.2rem !important;
    text-align: center !important;
  }

  /* --- 5. FOOTER ENTIEREMENT CENTRE SUR MOBILE --- */
  .site-footer {
    text-align: center !important;
    padding: 2.5rem 1rem 1.5rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
    text-align: center !important;
    justify-items: center !important;
  }

  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .footer-column ul {
    padding: 0 !important;
    text-align: center !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.8rem !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* --- 6. TABLEAUX & GRILLES RESPONSIVES --- */
  .table-responsive-wrapper {
    margin-top: 1rem;
    border-radius: 12px;
  }

  table {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
  }

  table th, table td {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
    min-width: 130px !important;
    line-height: 1.4 !important;
  }

  .grid-2, .grid-3, .process-grid, .portfolio-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .portfolio-item {
    height: 220px !important;
    width: 100% !important;
  }

  .interactive-card {
    padding: 1.2rem !important;
    border-radius: 16px !important;
  }

  .choice-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* --- 7. MENU BURGER & ENCART FLOTTANT --- */
  .nav-container {
    padding: 0.7rem 1rem !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
  }

  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #FFFFFF !important;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--primary);
    z-index: 1001;
    transform: none !important;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
  }

  .nav-container > .btn-primary {
    display: none;
  }

  .quick-contact-widget {
    right: 10px !important;
    left: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    padding: 0.7rem 0.9rem !important;
    border-radius: 14px !important;
  }

  .widget-close-btn {
    display: flex !important;
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
  }

  .quick-contact-widget .widget-header h3 { font-size: 0.9rem; margin-bottom: 0.2rem; }
  .quick-contact-widget .widget-actions { flex-direction: row; gap: 0.4rem; }
  .quick-contact-widget .widget-btn { flex: 1; justify-content: center; padding: 0.55rem 0.3rem; font-size: 0.78rem; }
}