@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap");

:root {
  /* Violet tech élégant issu de la carte de visite */
  --primary-color: #7c3aed;
  /* Bleu marine/Indigo très sombre pour les textes (Zéro Noir) */
  --title-color: #1e1b4b;

  --bg-color: #fafafa;
  --bg-secondary: #f3f4f6;
  /* Remplacez les anciennes valeurs par celles-ci (plus proches du noir pur) */
  --text-color: #1f2937; /* Gris très foncé pour le texte principal */
  --text-light: #4b5563; /* Gris foncé pour les textes secondaires */

  --font-title: "Montserrat", sans-serif;
  --font-text: "Open Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* La correction magique : on garde 100px de marge en haut pour le menu */
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-text);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden; /* <-- Ajoutez cette ligne pour empêcher le défilement horizontal */
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  color: var(--title-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- HEADER & NAVIGATION --- */
header {
  background-color: #ffffff;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 15px rgba(30, 27, 75, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px; /* Ajustez cette valeur selon la taille désirée */
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

.burger-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--title-color);
}

/* --- LAYOUT GLOBAL --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--title-color);
}

/* --- SUR-TITRES (EYEBROWS) --- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center; /* Centré par défaut pour les sections comme 'Services' */
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #007c89; /* Le bleu/sarcelle de votre image */
  margin-bottom: 0.8rem;
}

/* La petite ligne colorée avant le texte */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 3px;
  margin-right: 12px;
  background: linear-gradient(
    90deg,
    #059669,
    #ea580c
  ); /* Dégradé vert vers orange */
  border-radius: 2px;
}

/* Pour que les sur-titres s'alignent à gauche dans les sections divisées */
.text-content .eyebrow {
  justify-content: flex-start;
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero {
  background-color: white; /* Fond propre blanc */
  height: auto; /* Hauteur dynamique */
  padding: 6rem 5%; /* Padding important pour aérer, ou 5rem 5% sur `.container` si appliqué */
  display: flex;
  align-items: center; /* Alignement vertical */
  text-align: left; /* Alignement du texte à gauche */
  color: var(--text-color); /* Couleur de texte par défaut */
}

/* Styles pour le titre HUGE de la hero */
.hero h1 {
  color: #4ade80; /* Un vert clair moderne et frais (style vert menthe/tech) */
  font-size: clamp(
    2.2rem,
    6vw,
    3.8rem
  ); /* Taille réduite, s'adapte parfaitement de l'écran mobile à l'ordinateur */
  margin-bottom: 0.8rem;
  line-height: 1.2;
  font-weight: 800;
}

.hero h2 {
  display: block; /* On réaffiche le sous-titre */
  color: #0ea5e9; /* Utilise votre bleu nuit profond pour un beau contraste avec le vert */
  font-size: clamp(
    1.8rem,
    4.5vw,
    3.2rem
  ); /* Taille dynamique, imposante sur PC et adaptée sur mobile */
  font-weight: 800; /* Typographie très grasse pour l'impact */
  line-height: 1.15; /* Interlignage très resserré, typique des designs modernes */
  letter-spacing: -0.02em; /* Rapproche très légèrement les lettres pour un effet plus dense */
  margin-bottom: 1.5rem; /* Laisse respirer le paragraphe qui viendra en dessous */
}

/* Styles pour la description sur la gauche */
.hero .hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 680px;
  color: var(--text-light); /* Couleur douce comme sur l'image */
  line-height: 1.8;
  margin-bottom: 0;
  font-weight: bold; /* Ajout du texte en gras */
}

/* Styles spécifiques pour le grand texte sur deux colonnes de la hero */
.hero.split-section {
  gap: 4rem; /* Gap important entre texte et carte image */
}

/* Styles pour la carte d'image dans la hero (droite) */
.hero-image-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(30, 27, 75, 0.08); /* Ombre portée douce */
  overflow: hidden; /* Pour que l'image épouse les coins arrondis */
  width: 100%; /* Prend toute la flex basis */
  max-width: 700px; /* Cap optionnel pour la largeur */
  margin-left: auto; /* Aligne la carte à droite sur desktop */
  transform: translateY(-40px);
}

.hero-image-card .image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px 12px 0 0; /* Coins arrondis en haut seulement pour l'image */
}

.hero-image-card .card-caption {
  padding: 2rem;
  text-align: left;
}

.hero-image-card .card-caption h3 {
  font-size: 1.4rem;
  color: var(--title-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-image-card .card-caption p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: bold; /* Ajout du texte en gras */
}

/* --- SPLIT SECTION --- */
.split-section {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.split-section > * {
  flex: 1;
}
.hero-image-card {
  flex: 1.2; /* Permet à la colonne de droite de prendre un peu plus de largeur */
}

.image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.08);
}

.text-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* --- SERVICES GRID --- */
/* --- SECTION SERVICES --- */
.full-width-bg {
  width: 100%; /* Plus besoin de 100vw ni des marges négatives */
  background: linear-gradient(135deg, #e0f2fe 0%, #ecfdf5 40%, #fff7ed 100%);
  padding: 6rem 5%;
  margin: 0; /* Élimine la bande grise */
}
.services-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.services-header .section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.services-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Nouvelles boîtes à icônes */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff7ed 100%);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-box {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 20px; /* Coins plus arrondis, très moderne */
  border: none; /* Suppression de la barre supérieure pour un effet plus pur */
  box-shadow: 0 10px 30px rgba(30, 27, 75, 0.03); /* Ombre par défaut très légère */
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
}

.service-box h3 {
  color: var(--title-color); /* Titre foncé pour la lisibilité */
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-box:hover {
  transform: translateY(-12px) scale(1.02);
  /* L'ombre violette très appuyée au survol ! */
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.35);
}

/* --- GALERIE PHOTOS --- */
.photo-grid-two-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(30, 27, 75, 0.06);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.gallery-info-box {
  text-align: center;
  margin-top: 1.5rem;
}

.gallery-info-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  display: inline-block;
  padding: 0.4rem 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 20px;
}

/* --- BOUTONS --- */
.btn-popup-trigger {
  display: inline-block;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.8rem 2rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-popup-trigger:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* --- FORMULAIRE --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: var(--font-text);
  background: white;
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* --- MODAL LIGHTBOX (LE CARROUSEL) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.modal.show {
  display: flex;
}

.modal-image-wrapper {
  max-width: 80%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content {
  max-width: 100%;
  max-height: 70vh; /* Légèrement réduit pour faire de la place au bouton */
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(30, 27, 75, 0.4);
}

#modal-caption {
  color: white;
  margin-top: 1.5rem;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 500;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    background 0.3s,
    transform 0.2s;
}

.modal-nav-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2600;
}

.close-modal:hover {
  color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
  background-color: #ffffff; /* Fond blanc comme le header */
  color: var(--text-color); /* Texte gris foncé pour la lisibilité */
  text-align: center;
  padding: 3rem 5%;
  /* Une ombre douce inversée (vers le haut) pour délimiter le footer du fond noir de contact */
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* Bouton de retour à l'accueil dans les tons pastel cyan */
.btn-back-home {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  background-color: #e0f2fe; /* Cyan pastel très doux */
  color: #007c89; /* Cyan plus profond pour le texte */
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-back-home:hover {
  background-color: #007c89;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 124, 137, 0.2);
}

/* --- STYLES SPÉCIFIQUES PORTFOLIO --- */
.portfolio-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  color: var(--text-light);
  font-size: 1.25rem; /* On agrandit la police de la description */
  line-height: 1.8;
}

.btn-large {
  padding: 1.2rem 3rem; /* Bouton plus grand (plus de hauteur et de largeur) */
  font-size: 1.3rem; /* Texte du bouton plus grand */
  border-width: 3px; /* Bordure un peu plus épaisse pour marquer l'impact */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 850px) {
  .burger-menu {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(30, 27, 75, 0.05);
  }
  nav ul.show {
    display: flex;
  }
  .split-section,
  .services-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .photo-grid-two-rows {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }
}
/* Ajustements spécifiques pour la hero énorme sur mobile */
.hero.split-section {
  padding: 2rem 5%; /* Réduire padding vertical sur mobile */
  gap: 3rem; /* Réduire gap */
}
.hero h1 {
  font-size: clamp(
    2.5rem,
    8vw,
    4rem
  ); /* Police plus petite mais reste grande sur mobile */
  text-align: left;
  max-width: none;
}
.hero .hero-description {
  text-align: left;
  margin-bottom: 1rem;
}
.hero-image-card {
  margin: 0 auto; /* Centrer la carte d'image sur mobile */
}

/* ============================================================
   SECTION CONTACT — FOND SOMBRE (FG Création)
   ============================================================ */

.contact-dark-section {
  /* Le nouveau fond noir très profond avec un léger halo indigo */
  background-color: #030305;
  background-image: radial-gradient(
    circle at top right,
    #110e2c 0%,
    #030305 60%
  );
  padding: 6rem 5%;
  width: 100%;
  margin: 0; /* Sécurité pour éliminer toute bande grise résiduelle */
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 5rem;
}

/* --- Colonne gauche --- */
.contact-left {
  flex: 1;
  min-width: 0;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00d4aa;
  margin-bottom: 1.2rem;
}

.eyebrow-line {
  display: inline-block;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #00d4aa, #7c3aed);
  border-radius: 2px;
  flex-shrink: 0;
}

.contact-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: #a0a8c0;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 420px;
}

.contact-card-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.15),
    0 20px 50px rgba(124, 58, 237, 0.25);
  display: inline-block;
  max-width: 100%;
}

.contact-card-img {
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  display: block;
}

/* --- Colonne droite : formulaire --- */
.contact-right {
  flex: 1.1;
  min-width: 0;
}

.contact-form-dark {
  background: #1c1c2e;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

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

.form-group label {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.contact-form-dark input[type="text"],
.contact-form-dark input[type="email"],
.contact-form-dark select,
.contact-form-dark textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: #2a2a3e;
  border: 1.5px solid #3a3a55;
  border-radius: 10px;
  color: #e2e8f0;
  font-family: var(--font-text);
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form-dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a8c0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form-dark input::placeholder,
.contact-form-dark textarea::placeholder {
  color: #5a6080;
}

.contact-form-dark input:focus,
.contact-form-dark select:focus,
.contact-form-dark textarea:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.contact-form-dark textarea {
  resize: vertical;
  min-height: 130px;
}

/* Bouton dégradé violet → orange */
.btn-contact-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(90deg, #9333ea 0%, #f97316 100%);
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 6px 25px rgba(147, 51, 234, 0.4);
  margin-top: 0.4rem;
}

.btn-contact-submit:hover {
  opacity: 0.92;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.55);
}

/* --- Responsive contact --- */
@media (max-width: 850px) {
  .contact-inner {
    flex-direction: column;
    gap: 3rem;
  }

  .contact-card-wrapper {
    max-width: 100%;
  }

  .contact-form-dark {
    padding: 1.8rem 1.4rem;
  }
}

/* ============================================================
   BOUTON "CLIQUEZ POUR AGRANDIR" + MODALE CARTE DE VISITE
   ============================================================ */

/* Curseur pointer sur la carte pour indiquer le clic */
.contact-card-wrapper {
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-card-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.3),
    0 28px 60px rgba(124, 58, 237, 0.4);
}

/* Bouton sous la carte */
.btn-card-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 1rem;
  padding: 0.55rem 1.4rem;
  background: transparent;
  border: 1.5px solid rgba(124, 58, 237, 0.5);
  border-radius: 50px;
  color: #a78bfa;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-card-zoom:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: #7c3aed;
  color: #c4b5fd;
  transform: translateY(-2px);
}

/* --- Overlay de la modale --- */
.card-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 3, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.card-modal-overlay.show {
  display: flex;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Boîte de la modale --- */
.card-modal-box {
  position: relative;
  background: #1c1c2e;
  border-radius: 20px;
  padding: 2rem;
  max-width: 680px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.25),
    0 30px 80px rgba(0, 0, 0, 0.7);
  animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Image agrandie --- */
.card-modal-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
  display: block;
}

/* --- Légende --- */
.card-modal-caption {
  margin-top: 1.2rem;
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: #a0a8c0;
  letter-spacing: 0.04em;
}

/* --- Bouton fermer --- */
.card-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border: none;
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-modal-close:hover {
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.7);
}

@media (max-width: 600px) {
  .card-modal-box {
    padding: 1.4rem;
    border-radius: 14px;
  }
}
/* Conteneur interne pour le portfolio */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Portfolio : Dégradé pastel orangé --- */
/* --- Portfolio : Dégradé pastel orangé --- */
.portfolio-bg {
  width: 100%;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  padding: 6rem 5%;
  margin: 0; /* Élimine la bande grise */
}
