body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}


h1, h2, h3 {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}


.nav,
.btn,
.cta {
  font-family: 'Poppins', sans-serif;
}




html {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-synthesis: none;
}

/* RESET COMPLET DES CONTRAINTES DE style.css POUR SECTION 1 & 3 */
.about-section,
.values-section {
  max-width: none !important; /* empêche le var(--maxw) 1200px */
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Version desktop */
@media (min-width: 1100px) {
  .about-section,
  .values-section {
    max-width: 1300px !important;
    padding-left: 80px !important;
    padding-right: 80px !important;
  }
}


/* Mobile */
@media (max-width: 600px) {
  .about-section,
  .values-section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* ========================================================= */
/* MOBILE — max-width 600px                                 */
/* ========================================================= */

@media (max-width: 600px) {

  .about-section,
  .values-section {
    padding-left: 64px !important;
    padding-right: 64px !important;
    max-width: 100% !important;
  }

  /* Image plus petite et centrée */
  .about-image img {
    width: 220px;
    height: 220px;
  }
}

/* Section À propos en pleine largeur */
.full-width {
  width: 100%;
  padding: 0;              /* plus AUCUNE marge */
}

/* Container interne : texte à gauche, image à droite */
.full-width .about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;            /* prend tout l’écran */
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Colle le texte au bord gauche */
.full-width .about-text {
  margin-left: 0;
  padding-left: 0;
}

/* Colle l’image au bord droit */
.full-width .about-image {
  margin-right: 0;
  padding-right: 0;
}
  
  /* MOBILE */
  @media (max-width: 600px) {
    .page-container {
      padding-left: 16px;
      padding-right: 16px;
    }
  }
  
  .about-section {
    width: 100%;
    max-width: 1300px;   /* comme values-section */
    margin: 0 auto;      /* comme values-section */
    padding-left: 80px;  /* même marge interne */
    padding-right: 80px; 
    padding-top: 104px;
    padding-bottom: 104px;
  }
  
  
  .about-title {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
  }
  
  /* VERSION CORRIGÉE – UN SEUL BLOC about-container */
  .about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .about-text {
    flex: 1;
    max-width: 600px;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #fff;
  }
  
  .about-text p {
    margin-bottom: 0px;
  }
  
  .about-image img {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    object-fit: cover;
     /* 👇 Contour (stroke) autour de la photo */
   border: 2px solid rgba(255, 255, 255, 0.8);
   box-shadow: 0 0 14px rgba(245, 246, 247, 0.18);
   display: flex;
   justify-content: flex-end;
  }
  
  
  
  /* TABLETTE : image au-dessus + texte centré */
  @media (max-width: 1225px) {
  
    .about-title {
        margin-bottom: 48px;
    }
  
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
  
    .about-image {
        order: -1;
    }
  
    .about-image img {
        width: 300px;
        height: 300px;
    }
  
    .about-text {
        text-align: left;
        width: 100%;
        max-width: 600px;
    }
  }
  
  /* ====================== */
  /*     SÉPARATEUR         */
  /* ====================== */
  
  .about-separator {
    width: 100%;
    margin: 0px 0 104px;   /* 👈 réduit l’espace avec le texte au-dessus */
    overflow: hidden;
  }
  
  .about-separator img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
  }
  
  /* TABLETTE */
  @media (max-width: 900px) {
    .about-section {
      padding-bottom: 54px;   /* au lieu de 104px */
    }

    .about-separator {
      margin: 0px 0 54px;  /* réduit aussi sur tablette */
    }
  }
  
  /* MOBILE */
  @media (max-width: 600px) {
    .about-section {
      padding-bottom: 48px;   /* au lieu de 104px */
    }

    .about-separator {
      margin: 0px 0 48px;  /* encore moins d’espace sur mobile */
    }
  
    .about-separator img {
      width: 120%;
      margin-left: -10%;
    }
  }
  
  /* ============================== */
  /* SECTION — VALEURS / FORCES / ATOUTS */
  /* ============================== */
  
  .values-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
  
  .values-item img {
    width: 100%;                /* 👈 occupe toute la largeur du conteneur */
    height: auto;
    border-radius: 28px;
    display: block;
    border: 1.8px solid rgba(255, 255, 255, 0.70);
    box-shadow: 0 0 14px rgba(245, 246, 247, 0.18);
  }
  
 /* TABLETTE */
 @media (max-width: 1100px) {
  .values-section {
    gap: 40px !important;
  }
}

  
  /* MOBILE */
  @media (max-width: 600px) {
    .values-item img {
      border-radius: 22px;
    }
  }
  
  /* ============================================= */
  /* IMAGES — VERSION DESKTOP (affichage normal) */
  /* ============================================= */
  
  .valeur img {
    content: url("img-apropos/1-mes-valeurs.png");
  }
  
  .forces img {
    content: url("img-apropos/2-mes-forces.png");
  }
  
  .atouts img {
    content: url("img-apropos/3-mes-attouts.png");
  }
  
  /* ============================================= */
  /* VERSION TABLETTE */
  /* ============================================= */
  
  @media (max-width: 1225px) {
  
    .valeur img {
      content: url("img-apropos/1-mes-valeurs-tablette.png");
    }
  
    .forces img {
      content: url("img-apropos/2-mes-forces - Tablette.png");
    }
  
    .atouts img {
      content: url("img-apropos/3-mes-attouts - Tablette.png");
    }
  
  }
  
  /* ================================================= */
  /* MOBILE — < 600px — Images en version mobile       */
  /* ================================================= */
  @media (max-width: 600px) {
  
    .valeur img {
      content: url("img-apropos/1-mes-valeurs-mobile.png");
    }
  
    .forces img {
      content: url("img-apropos/2-mes-forces - Mobile.png");
    }
  
    .atouts img {
      content: url("img-apropos/3-mes-attouts - Mobile.png");
    }
    }


/* ================================
   NAV — LIEN ACTIF (SIMPLE & FIABLE)
   ================================ */

.nav ul li a[aria-current="page"] {
  position: relative;
  color: var(--text);
}

.nav ul li a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--btn-primary-bg);
  border-radius: 2px;
}

/* =========================================
   SÉPARATEUR "À PROPOS" — SWITCH THEME
   ========================================= */

/* Par défaut : LIGHT */
.about-separator--theme .separator-dark {
  display: none;
}

.about-separator--theme .separator-light {
  display: block;
}

/* DARK MODE */
html.theme-dark .about-separator--theme .separator-dark {
  display: block;
}

html.theme-dark .about-separator--theme .separator-light {
  display: none;
}

/* Sécurité visuelle */
.about-separator--theme img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   THEME LIGHT — PAGE "À PROPOS"
   ===================================================== */

html.theme-light .about-section {
  color: var(--text-main);
}

/* Texte principal */
html.theme-light .about-text,
html.theme-light .about-text p {
  color: var(--text-main);
}

/* Titre */
html.theme-light .about-title {
  color: var(--text-main);
}

/* Séparateur (sécurité visuelle) */
html.theme-light .about-separator {
  background: transparent;
}

/* Valeurs / forces / atouts */
html.theme-light .values-section {
  color: var(--text-main);
}

/* Images (légère harmonisation fond clair) */
html.theme-light .values-section img,
html.theme-light .about-image img {
  background: var(--bg-soft);
}

/* =========================================
   OMBRE ROUGE — PHOTO (THEME LIGHT)
   ========================================= */

/* Ombre douce et discrète – thème light */
html.theme-light .about-image img {
  border-color: color-mix(
    in srgb,
    var(--btn-primary-bg) 55%,
    white
  );

  box-shadow:
    0 0 18px color-mix(
      in srgb,
      var(--btn-primary-bg) 25%,
      transparent
    );
}


/* =========================================
   PHOTO — BORDURE ROUGE DOUCE (THEME LIGHT)
   ========================================= */

html.theme-light .about-image img {
  border-color: color-mix(
    in srgb,
    var(--btn-primary-bg) 0%,
    white
  );

  box-shadow:
    0 0 24px color-mix(
      in srgb,
      var(--btn-primary-bg) 0%,
      transparent
    );
}

/* Ombre douce et discrète – thème light */
html.theme-light .about-image img {
  border-color: color-mix(
    in srgb,
    var(--btn-primary-bg) 21%,
    white
  );

  box-shadow:
    0 0 18px color-mix(
      in srgb,
      var(--btn-primary-bg) 40%,
      transparent
    );
}

/* =========================================
   IMAGE "MES VALEURS" — THEME LIGHT
   ========================================= */

html.theme-light .valeur img {
  content: url("img-apropos/mes-valeurs-rouge.png");
}

html.theme-light .forces img {
  content: url("img-apropos/mes-forces-rouge.png");
}

html.theme-light .atouts img {
  content: url("img-apropos/mes-atouts-rouge.png");
}


/* =====================================================
   FIX STROKE — IMAGES "MES ATOUTS / VALEURS"
   ===================================================== */

/* On enlève toute bordure directe sur l’image */
html.theme-light .values-section img {
  border: none !important;
  box-shadow: none !important;
}

html.theme-light .values-item {
  border-radius: 28px;
  border: 2px solid color-mix(
    in srgb,
    var(--btn-primary-bg) 21%,
    transparent
  );

  box-shadow:
    0 0 18px color-mix(
      in srgb,
      var(--btn-primary-bg) 40%,
      transparent
    );

  overflow: hidden; /* 🔑 essentiel pour le masque */
}

/* Sécurité responsive */
html.theme-light .values-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================
   IMAGES — THEME LIGHT / TABLETTE
   ========================================= */

@media (min-width: 600px) and (max-width: 1225px) {

  html.theme-light .valeur img {
    content: url("img-apropos/mes-valeurs-rouge-tablette.png");
  }

  html.theme-light .forces img {
    content: url("img-apropos/mes-forces-rouge-tablette.png");
  }

  html.theme-light .atouts img {
    content: url("img-apropos/mes-atouts-rouge-tablette.png");
  }
}

/* =========================================
   FIX IMAGE TABLETTE — FULL COVER
   ========================================= */

@media (min-width: 600px) and (max-width: 1225px) {

  /* Le conteneur garde sa taille */
  .values-item {
    width: 100%;
    overflow: hidden;
    border-radius: 28px;
  }

  /* L’image remplit parfaitement le bloc */
  .values-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
}


/* =========================================
   IMAGES — THEME LIGHT / MOBILE
   ========================================= */

@media (max-width: 600px) {

  html.theme-light .valeur img {
    content: url("img-apropos/mes-valeurs-rouge-mobile.png");
  }

  html.theme-light .forces img {
    content: url("img-apropos/mes-forces-rouge-mobile.png");
  }

  html.theme-light .atouts img {
    content: url("img-apropos/mes-atouts-rouge-mobile.png");
  }
}

/* =====================================================
   🔥 TABLETTE — OVERRIDE FINAL (PRIORITÉ MAXIMALE)
   ===================================================== */
@media (min-width: 600px) and (max-width: 1225px) {

  /* 🔒 Largeur contrôlée + padding tablette */
  .about-section,
  .values-section {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  /* 🔒 Images calées EXACTEMENT sur la largeur du texte */
  .values-item,
  .values-item img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .values-item img {
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* 🔒 Sécurité anti-décalage */
  .values-section * {
    box-sizing: border-box !important;
  }
}

/* =========================================
   TABLETTE LARGE (900px → 1225px)
   ========================================= */
@media (min-width: 950px) and (max-width: 1225px) {

  /* Largeur harmonisée texte + images */
  .about-section,
  .values-section {
    max-width: 700px !important;
    margin: 0 auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  /* Texte */
  .about-text {
    max-width: 700px !important;
    width: 100%;
  }

  /* Images */
  .values-item,
  .values-item img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================================
   SÉPARATEUR FULL WIDTH — MOBILE ONLY
   ========================================= */
@media (max-width: 600px) {

  .about-separator {
    width: 110vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    display: flex;
    justify-content: center;
    overflow: hidden;
  }

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

/* =========================================
   SÉPARATEUR — ROTATION (LIGHT MODE ONLY)
   ========================================= */
@media (max-width: 600px) {

  html.theme-light .about-separator {
    transform: rotate(2.7deg);
    transform-origin: center;
  }

  html.theme-light .about-separator img {
    transform: rotate(0deg);
  }
}

/* =========================================
   TITRE – COULEUR "TU"
   ========================================= */
.about-title .highlight {
  color: var(--btn-primary-bg);
}

.values-item img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.values-item img {
  opacity: 0;
  transition: opacity 0.15s ease;
}

html.loaded .values-item img {
  opacity: 1;
}

.values-item {
  overflow: hidden; /* coupe tout ce qui dépasse */
  border-radius: 48px !important;
  background: transparent;
}

/* ===========================
   ESPACEMENT BAS DE PAGE
   =========================== */
   
/* DESKTOP */
@media (min-width: 1101px) {
  body {
    padding-bottom: 64px;
  }
}

/* TABLETTE */
@media (min-width: 600px) and (max-width: 1100px) {
  body {
    padding-bottom: 64px;
  }
}

/* ======================================
   ABOUT — IMAGE À CÔTÉ DU TEXTE (DARK)
   ====================================== */

html.theme-dark .about-image img {
  border: 2px solid color-mix(
    in srgb,
    var(--btn-primary-bg) 88%,
    transparent
  ) !important;
}

/* ======================================
   VALUES — DARK FIX (ANTI GLOW)
   ====================================== */

/* 1️⃣ On enlève TOUT effet lumineux sur l’image */
html.theme-dark .values-item img {
  border: none;
  box-shadow: none;
}

/* 2️⃣ On met la stroke propre sur le conteneur */
html.theme-dark .values-item {
  border: 2px solid color-mix(
    in srgb,
    var(--btn-primary-bg) 88%,
    transparent
  ) !important;
}

/* ===============================
   MOBILE — FIX TITRE "QUI ES-TU"
   même taille que "Projets"
   =============================== */

@media (max-width: 767px) {
  .about-page .about-title {
    font-size: 32px !important;
    line-height: 1.2;
  }
}

/* ===============================
   MOBILE — ESPACEMENT TITRE À PROPOS
   =============================== */

@media (max-width: 767px) {
  .about-title {
    margin-bottom: 40px;
  }
}

/* ===============================
   MOBILE — ESPACEMENT PHOTO → TEXTE
   =============================== */

@media (max-width: 767px) {
  .about-container {
    gap: 24px;
  }
}

/* ===============================
   MOBILE — ESPACEMENT HAUT TITRE À PROPOS
   =============================== */

@media (min-width: 600px) and (max-width: 769px) {
  .about-section {
    padding-top: 48px !important;
  }
}

@media (min-width: 100px) and (max-width: 599px) {
  .about-section {
    padding-top: 120px !important;
  }
}
