/**
 * SERVICES.CSS - Composants et Sections de la Page Services
 * Agence Archimède - Architecture CSS Modulaire
 */

/* Services Page - Design Épuré */

/* Section Hero */
.hero {
    padding: 120px 0 80px;
    background: #fff;
    text-align: center;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section Services */
.services {
    padding: 80px 0;
    background: #fff;
}

.services__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.services__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-item__description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-item__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item__features li {
    font-size: 0.95rem;
    color: #555;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.service-item__features li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Section Processus */
.process {
    padding: 80px 0;
    background: #ffffff;
}

.process__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process__step {
    text-align: center;
    padding: 30px 20px;
}

.process__step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.process__step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.process__step-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Section CTA */
.cta {
    padding: 80px 0;
    background: #fff;
}

.cta__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.cta__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.cta__description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cta__actions {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn--primary:hover {
    background: linear-gradient(135deg, #6f64db 0%, #5a52c7 50%, #7c3aed 100%);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 30px rgba(111, 100, 219, 0.3);
}

/* Responsive - Bouton CTA plus petit sur mobile */
@media (max-width: 768px) {
    .cta .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Section Expertise (Spécialiste site vitrine) */
body[data-page="services"] .expertise {
  padding: 140px 0 90px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
}

/* Si le header est fixe, on ajoute plus d'air pour la première section */
.header + main .expertise {
  padding-top: 160px;
}

body[data-page="services"] .expertise .section__header {
  text-align: center;
  margin-bottom: 36px;
}

body[data-page="services"] .expertise .section__title {
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

body[data-page="services"] .expertise .section__title::after {
  content: '';
  display: block;
  width: 84px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(135deg, #6f64db, #8b7ee8);
  border-radius: 2px;
}

body[data-page="services"] .expertise .section__subtitle {
  color: #6b7280;
  font-size: 1.08rem;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Grille + cartes */
body[data-page="services"] .expertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 460px));
  justify-content: center;
  gap: 24px 28px;
  margin-top: 40px;
}

body[data-page="services"] .expertise__col {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  max-width: 460px;
  width: 100%;
}

body[data-page="services"] .expertise__heading {
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

/* Listes lisibles + coche colorée */
body[data-page="services"] .expertise__list,
body[data-page="services"] .expertise__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

body[data-page="services"] .expertise__list li,
body[data-page="services"] .expertise__features li {
  font-size: 0.98rem;
  color: #374151;
  padding: 8px 0 8px 28px;
  line-height: 1.65;
  position: relative;
}

body[data-page="services"] .expertise__list li::before,
body[data-page="services"] .expertise__features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 3px;
}

/* Bloc SEO sous la grille */
body[data-page="services"] .expertise__seo {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 0 8px;
}

body[data-page="services"] .expertise__seo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 12px 0 10px;
  letter-spacing: -0.01em;
}

body[data-page="services"] .expertise__seo-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(135deg, #6f64db, #8b7ee8);
  border-radius: 2px;
}

body[data-page="services"] .expertise__seo p {
  color: #4b5563;
  margin: 8px 0;
  line-height: 1.75;
  font-size: 1.02rem;
}

/* Méthode enrichie - listes à puces dans chaque étape */
.process__bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    text-align: left;
}

.process__bullets li {
    color: #555;
    font-size: 0.95rem;
    padding: 6px 0 6px 20px;
    line-height: 1.5;
    position: relative;
}

.process__bullets li::before {
    content: '—';
    color: #6b7280;
    position: absolute;
    left: 0;
}

/* Process — FIX: timeline lisible, cartes cadrées et textes alignés à gauche */
body[data-page="services"] .process .timeline {
  position: relative;
  margin-top: 24px;
}

body[data-page="services"] .process .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

/* Grille des étapes: gauche | point | droite */
body[data-page="services"] .timeline__step {
  display: grid;
  grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr);
  gap: 24px;
  align-items: center;
  margin: 28px 0;
}

/* Point central numéroté */
body[data-page="services"] .timeline__dot {
  grid-column: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #6f64db;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}

/* Cartes d'étape */
body[data-page="services"] .timeline__content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 16px 20px;
  max-width: 560px;
  width: 100%;
  text-align: left;
  line-height: 1.7;
}

/* Placement et cadrage par côté */
body[data-page="services"] .timeline__step.is-left .timeline__content {
  grid-column: 1;
  justify-self: end;
}

body[data-page="services"] .timeline__step.is-right .timeline__content {
  grid-column: 3;
  justify-self: start;
}

/* Titres, paragraphes et listes à l'intérieur des cartes */
body[data-page="services"] .timeline__content h3 {
  font-size: 1.1rem;
  margin: 2px 0 8px;
  color: #111827;
}

body[data-page="services"] .timeline__content p {
  margin: 6px 0 10px;
  color: #4b5563;
}

body[data-page="services"] .timeline__list {
  list-style: disc;
  list-style-position: outside;
  margin: 6px 0 8px;
  padding-left: 18px;
}

body[data-page="services"] .timeline__list li {
  margin: 4px 0;
  color: #374151;
}

/* L'élément spacer reste, mais n'a pas de style visible */
body[data-page="services"] .timeline__spacer {
  width: 100%;
  height: 1px;
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .expertise__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    body[data-page="services"] .expertise__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero__title {
        font-size: 2.25rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .services__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-item {
        padding: 20px 0;
    }
    
    .process__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta__title {
        font-size: 1.875rem;
    }
    
    .services,
    .process,
    .cta {
        padding: 40px 0;
    }
    
    .expertise {
        padding: 40px 0;
    }
    
    body[data-page="services"] .expertise {
        padding: 80px 0 50px;
    }
    
    .header + main .expertise {
        padding-top: 100px;
    }
    
    body[data-page="services"] .expertise .section__subtitle {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 5px;
    }
    
    body[data-page="services"] .expertise__col {
        padding: 12px 15px;
        border-radius: 10px;
        margin: 0 5px;
    }
    
    body[data-page="services"] .expertise__list li,
    body[data-page="services"] .expertise__features li {
        padding: 6px 0 6px 28px;
        font-size: 0.92rem;
        line-height: 1.5;
    }
    
    body[data-page="services"] .expertise__heading {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }
    
    body[data-page="services"] .expertise__seo {
        margin-top: 20px;
    }
    
    body[data-page="services"] .expertise__seo p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Mobile: affichage épuré sans éléments parasites */
    body[data-page="services"] .process .timeline::before {
        display: none;
    }
    
    body[data-page="services"] .timeline__step {
        display: block;
        grid-template-columns: none;
        gap: 0;
        margin: 20px 0;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    body[data-page="services"] .timeline__dot {
        display: none !important;
    }
    
    body[data-page="services"] .timeline__step.is-left .timeline__content,
    body[data-page="services"] .timeline__step.is-right .timeline__content {
        grid-column: auto;
        justify-self: auto;
        max-width: 100%;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    body[data-page="services"] .timeline__spacer {
        display: none;
    }
    
    /* Suppression complète des listes à puces parasites */
    body[data-page="services"] .timeline__list {
        list-style: none;
        list-style-type: none;
        padding-left: 0;
        margin: 8px 0;
    }
    
    body[data-page="services"] .timeline__list li {
        margin: 6px 0;
        padding-left: 0;
        color: #374151;
        position: relative;
    }
    
    body[data-page="services"] .timeline__list li::before {
        content: none;
        display: none;
    }
    
    /* Nettoyage des pseudo-éléments parasites */
    body[data-page="services"] .timeline__content *::before,
    body[data-page="services"] .timeline__content *::after {
        content: none !important;
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }
    
    .section__title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    
    .cta__title {
        font-size: 1.5rem;
    }
    
    .services__container,
    .process__container,
    .cta__container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    body[data-page="services"] .expertise {
        padding: 70px 0 40px;
    }
    
    .header + main .expertise {
        padding-top: 90px;
    }
    
    body[data-page="services"] .expertise .section__title {
        font-size: clamp(1.7rem, 6vw, 2rem);
    }
    
    body[data-page="services"] .expertise__col {
        padding: 10px 12px;
        margin: 0 2px;
    }
    
    body[data-page="services"] .expertise__list li,
    body[data-page="services"] .expertise__features li {
        padding: 4px 0 4px 24px;
        font-size: 0.88rem;
        line-height: 1.4;
    }
    
    body[data-page="services"] .expertise__heading {
        margin-bottom: 6px;
        font-size: 1.05rem;
    }
    
    body[data-page="services"] .expertise__grid {
        gap: 15px;
        margin-top: 30px;
    }
    
    /* Mobile 480px: maintien de l'affichage épuré */
    body[data-page="services"] .timeline__step {
        display: block;
        grid-template-columns: none;
        gap: 0;
        margin: 15px 0;
        padding: 15px;
    }
    
    body[data-page="services"] .timeline__dot {
        display: none !important;
    }
    
    body[data-page="services"] .timeline__content {
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }
    
    body[data-page="services"] .process .timeline::before {
        display: none;
    }
    
    /* Suppression des éléments parasites sur très petits écrans */
    body[data-page="services"] .timeline__list li::before {
        content: none !important;
        display: none !important;
    }
    
    body[data-page="services"] .timeline__content *::before,
    body[data-page="services"] .timeline__content *::after {
        content: none !important;
        display: none !important;
    }
}
/* Spécifique à la page Services: forcer le fond blanc sur les sections demandées */
body[data-page="services"] .services {
    background: #ffffff;
}

body[data-page="services"] .process {
    background: #ffffff;
}