/* /css/components.css */

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-on-primary) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-muted); /* Typography token (P1) */
  text-decoration: none;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: background-color 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--text-on-primary) !important;
}

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

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--text-color) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-muted); /* Typography token (P1) */
  text-decoration: none;
  border: 2px solid var(--border-color);
  transition: border-color 0.5s var(--ease-out-expo), color 0.5s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
}

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

.btn-full {
  width: 100%;
}

/* =============================================
   SERVICES
   ============================================= */
.services-section {
  background-color: var(--bg-secondary);
  padding: var(--space-xl) 0;
}

/* --- STICKY SPLIT LAYOUT --- */
.sticky-split .split-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg); /* Spacing token (P1) */
  max-width: 1200px; /* Aligned with standard layout max-width */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .sticky-split .split-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 992px) {
  .sticky-split .split-container {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl); /* Spacing token (P1) */
  }
  
  .split-left {
    position: sticky;
    top: var(--space-xl); /* Spacing token (P1) */
    flex: 0 0 35%;
  }
  
  .split-right {
    flex: 1;
    min-width: 0;
  }
}

.split-title {
  font-size: var(--fs-display); /* Typography token (P1) */
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-color);
}

/* --- Compteur de service actif --- */
.services-counter {
  display: none; /* mobile: caché */
  margin-top: var(--space-md); /* Spacing token (P1) */
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  align-items: baseline;
  gap: 0.25rem;
}

@media (min-width: 992px) {
  .services-counter {
    display: flex;
  }
}

.services-counter__current {
  font-size: 4rem;
  color: var(--primary-color);
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out-expo);
}

.services-counter__current.is-changing {
  opacity: 0;
  transform: translateY(-8px);
}

.services-counter__sep {
  font-size: var(--fs-title); /* Typography token (P1) */
  color: var(--border-color);
  margin: 0 0.25rem;
}

.services-counter__total {
  font-size: var(--fs-title); /* Typography token (P1) */
  color: var(--text-muted);
}

/* --- Barre de progression verticale --- */
.services-progress {
  display: none;
  width: 2px;
  background: var(--border-color);
  border-radius: 2px;
  margin-top: 2rem;
  height: 120px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .services-progress {
    display: block;
  }
}

.services-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: height 0.4s var(--ease-out-expo);
}


.services-massive {
  display: flex;
  flex-direction: column;
  /* Gap éditorial : assez grand pour l'effet scroll, assez court pour ne pas frustrer */
  gap: clamp(5rem, 12vh, 9rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}

/* Reset mobile */
@media (max-width: 991px) {
  .services-massive {
    gap: 0;
    padding-bottom: 0;
  }
}

.service-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transition: padding-left 0.5s var(--ease-out-expo),
              background-color 0.5s var(--ease-out-expo),
              border-color 0.4s ease;
  cursor: default;
}

.service-row:hover {
  padding-left: 2rem;
  background-color: oklch(from var(--text-color) l c h / 0.02);
}

/* Service mis en avant au scroll (JS ajoute .is-active) */
.service-row.is-active .sr-num {
  color: var(--primary-color);
}

.service-row.is-active .sr-title {
  color: var(--primary-color);
}

.service-row.is-active {
  border-top-color: var(--primary-color);
}

@media (min-width: 768px) {
  .service-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.sr-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary-light);
  font-weight: 800;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.sr-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-color);
  transition: color 0.5s var(--ease-out-expo);
}

.service-row:hover .sr-title {
  color: var(--primary-color);
}

.sr-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hosting-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm); /* Spacing token (P1) */
  background: oklch(22% 0.025 var(--hue));
  border: 1px solid oklch(40% 0.03 var(--hue));
  border-left: 3px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: var(--space-md); /* Spacing token (P1) */
  margin-top: var(--space-xl); /* Spacing token (P1) */
}

@media (max-width: 991px) {
  .hosting-note {
    margin-top: var(--space-lg); /* Spacing token (P1) */
    border-left-width: 3px;
  }
}

.hosting-note-icon {
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.hosting-note-text h3 {
  font-size: var(--fs-muted); /* Typography token (P1) */
  margin-bottom: 0.5rem;
}

.hosting-note-text p {
  color: var(--text-muted);
  font-size: var(--fs-small); /* Typography token (P1) */
  margin: 0;
}


/* =============================================
   FEATURES / VALEUR — Layout zigzag pleine largeur
   ============================================= */
.features {
  background-color: var(--bg-color);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .features-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* En-tête centré */
.features-header {
  text-align: center;
  margin-bottom: var(--space-xl); /* Spacing token (P1) */
}

.features-eyebrow {
  font-size: var(--fs-xs); /* Typography token (P1) */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: var(--space-xs); /* Spacing token (P1) */
  opacity: 0.8;
}

.features-title {
  font-size: var(--fs-display); /* Typography token (P1) */
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-color);
}

/* --- feat-item : layout pleine largeur avec filigrane --- */
.feat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(3rem, 6vh, 5rem) 0;
  border-top: 1px solid var(--border-color);
  /* Gap entre items via padding — pas de margin collapse */
}

.feat-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

/* Contenu : max 55% de la largeur pour laisser le filigrane respirer */
.feat-item__content {
  max-width: 52ch;
}

/* Numéro en filigrane — derrière le contenu */
.feat-item__ghost {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(8rem, 20vw, 16rem);
  line-height: 0.85;
  color: var(--text-color);
  opacity: 0.04;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  /* Positionnement par défaut : haut gauche */
  top: 50%;
  left: -2%;
  transform: translateY(-50%);
}

/* Item pair : contenu à droite, filigrane à gauche (déjà le cas par défaut) */
/* Item impair (--right) : contenu à droite, filigrane à droite aussi */
.feat-item--right .feat-item__content {
  align-self: flex-end;
}

.feat-item--right .feat-item__ghost {
  left: auto;
  right: -2%;
}

/* Titres des arguments */
.feat-item h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--text-color);
  line-height: 1.15;
}

.feat-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 50ch;
}

/* Accessibilité — pas d'animation sur fond si réduit */
@media (prefers-reduced-motion: reduce) {
  .feat-item__ghost {
    display: none;
  }
}


/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-section {
  background-color: var(--bg-secondary);
  padding: 8rem 0;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 0.5rem;
}

.badge-in-progress {
  background-color: oklch(from var(--primary-color) l c h / 0.1);
  color: var(--primary-color);
  border: 1px solid oklch(from var(--primary-color) l c h / 0.25);
}

.badge-in-progress::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 oklch(from var(--primary-color) l c h / 0.6);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px oklch(from var(--primary-color) l c h / 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 oklch(from var(--primary-color) l c h / 0);
  }
}

/* --- En-tête Portfolio --- */
.portfolio-header {
  text-align: center;
  margin-bottom: clamp(4rem, 8vh, 6rem);
}

.portfolio-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.portfolio-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-color);
}

/* --- Showcase Editorial --- */
.editorial-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-decoration: none;
}

.showcase-visual {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  box-shadow: 0 10px 30px oklch(0% 0 0 / 0.1);
  transition: border-color 0.8s var(--ease-out-expo), box-shadow 0.8s var(--ease-out-expo);
}

.showcase-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
  display: block;
  transform: scale(1);
  transition: transform 0.8s var(--ease-out-expo);
}

.editorial-showcase:hover .showcase-img {
  transform: scale(1.04);
}

.editorial-showcase:hover .showcase-visual {
  border-color: var(--primary-color);
  box-shadow: 0 20px 45px oklch(0% 0 0 / 0.25);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showcase-info h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--text-color);
  letter-spacing: -0.03em;
  transition: color 0.5s var(--ease-out-expo);
}

.editorial-showcase:hover .showcase-info h3 {
  color: var(--primary-color);
}

.showcase-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary-color);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  width: fit-content;
  margin-top: 0.75rem;
  transition: opacity 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}

.showcase-link:hover {
  opacity: 0.8;
  color: var(--primary-light);
}

.showcase-link .link-icon {
  transition: transform 0.3s var(--ease-out-expo);
}

.showcase-link:hover .link-icon {
  transform: translate(2px, -2px);
}

/* Split-layout on Desktop */
@media (min-width: 992px) {
  .editorial-showcase {
    flex-direction: row;
    align-items: center;
    gap: 4.5rem;
  }

  .showcase-visual {
    flex: 0 0 58%;
  }

  .showcase-info {
    flex: 1;
    padding: 1.5rem 0;
  }
}


/* =============================================
   ABOUT
   ============================================= */
.about-section {
  background-color: var(--bg-color);
  padding: 4rem 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .about-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about-text .btn-primary {
  margin-top: 0.5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}


/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background-color: var(--bg-secondary);
  padding: 4rem 0;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .contact-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.contact-card>p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px oklch(from var(--primary-color) l c h / 0.08);
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  display: none;
}

.form-status.success {
  display: block;
  background-color: oklch(from var(--success-color) l c h / 0.1);
  color: var(--success-color);
  border: 1px solid oklch(from var(--success-color) l c h / 0.2);
}

.form-status.error {
  display: block;
  background-color: oklch(from var(--error-color) l c h / 0.1);
  color: var(--error-color);
  border: 1px solid oklch(from var(--error-color) l c h / 0.2);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/* =============================================
   FAQ SECTION — Editorial Accordion
   ============================================= */
.faq-section {
  background-color: var(--bg-color);
  padding: clamp(6rem, 12vw, 10rem) 0;
  border-top: 1px solid var(--border-color);
}

.faq-accordion {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .faq-accordion {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(2rem, 4vh, 3rem) 0;
  background: none;
  border: none;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s var(--ease-out-expo);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question span:first-child {
  max-width: 85%;
}

/* Custom Icon: Rotating Plus/Minus */
.faq-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out-expo);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out-expo);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

/* Answer Wrap for Animation */
.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
}


.faq-answer-inner {
  padding-bottom: 3rem;
  max-width: 70ch;
}

.faq-answer p {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-icon {
    width: 20px;
    height: 20px;
  }
}


/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 3rem);
  max-width: 600px;
  background-color: oklch(from var(--bg-secondary) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md), 0 0 40px oklch(0% 0 0 / 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.cookie-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s var(--ease-out-expo);
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  border: 2px solid var(--primary-color);
}

.cookie-btn-accept:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.cookie-btn-decline {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.cookie-btn-decline:hover {
  border-color: var(--text-muted);
}


/* =============================================
   RESPONSIVE COMPONENT MEDIA QUERIES
   ============================================= */

/* --- MOBILE FIRST (max-width: 767px) --- */
@media (max-width: 767px) {
  /* Sections padding */
  .services-section {
    padding: 4rem 5%;
  }

  .features {
    padding: 4rem 5%;
  }

  .portfolio-section {
    padding: 4rem 5%;
  }

  .portfolio-header {
    text-align: left;
    margin-bottom: 2.5rem;
  }

  .portfolio-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  /* Services sticky-split */
  .sticky-split .split-container {
    gap: 1.5rem;
  }

  .split-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  /* Service rows */
  .service-row:hover {
    padding-left: 0;
    background-color: transparent;
  }

  .service-row {
    padding: 1.75rem 0;
    gap: 0.75rem;
  }

  .sr-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .sr-desc {
    font-size: 1rem;
  }

  /* Features */
  .features-header {
    text-align: left;
    margin-bottom: 3rem;
  }

  .feat-item__ghost {
    font-size: clamp(5rem, 20vw, 8rem);
    opacity: 0.05;
    top: 0;
    left: 0;
    transform: none;
  }

  .feat-item--right .feat-item__content {
    align-self: flex-start;
  }

  .feat-item--right .feat-item__ghost {
    left: 0;
    right: auto;
  }

  .feat-item__content {
    max-width: 100%;
    padding-top: 2.5rem;
  }

  .features-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .feat-item h3 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .feat-item p {
    font-size: 1rem;
  }

  /* Contact card */
  .contact-card {
    padding: 1.5rem;
  }
}

/* --- SMALL MOBILE (max-width: 576px) --- */
@media (max-width: 576px) {
  /* Cookie banner */
  .cookie-banner {
    bottom: 1rem;
    width: calc(100% - 2rem);
    padding: 1.25rem;
  }
  
  .cookie-actions {
    flex-direction: column-reverse;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- MEDIUM TABLET (min-width: 768px) --- */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .about-text {
    flex: 1;
  }

  .about-visual {
    flex: 1;
  }
}

/* =============================================
   MOBILE LANDSCAPE ADJUSTMENTS (Short viewports)
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  /* Reduce section padding in landscape mode to save vertical space */
  .services-section {
    padding: 2rem 5% !important;
  }
  .features {
    padding: 2rem 5% !important;
  }
  .portfolio-section {
    padding: 2rem 5% !important;
  }
  .about-section {
    padding: 2rem 0 !important;
  }
  .contact-section {
    padding: 2rem 0 !important;
  }
  .faq-section {
    padding: 2rem 0 !important;
  }
  .site-footer {
    padding: 1.5rem 0 1rem !important;
  }

  /* Compress titles */
  .split-title,
  .portfolio-title,
  .features-title {
    font-size: clamp(1.8rem, 4.5vw, 2.35rem) !important;
  }

  /* Compact services list rows */
  .service-row {
    padding: 1.25rem 0 !important;
  }

  /* Compact zigzag items in Valeur section */
  .feat-item {
    margin-bottom: 2rem !important;
  }
  .feat-item__ghost {
    font-size: 3.5rem !important;
  }

  /* Reduce contact card padding */
  .contact-card {
    padding: 1.25rem !important;
  }
  .contact-card > p {
    margin-bottom: 1rem !important;
  }
  .contact-form {
    gap: 0.75rem !important;
  }
}
