/* =============================================
   ITWIN TECHNOLOGIES – propos.css
   Styles spécifiques à la page "À Propos"
   Dépend de style.css (chargé en premier)
   ============================================= */

/* =============================================
   SECTION HÉROS – À PROPOS
   Fond blanc, contenu texte à gauche, image à droite
   ============================================= */
.about-hero {
  background: #fff;
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Padding interne de la colonne gauche */
.about-hero-left { padding-right: 40px; }

/* Titre principal en majuscules, très gras */
.about-hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: -1px;
}
/* Partie du titre colorée en vert */
.about-hero-title .line-green {
  color: var(--green-light);
  display: block;
}

/* Décoration sous le titre : deux barres colorées */
.about-title-deco {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0 32px;
}
.deco-line-dark { width: 40px; height: 3px; background: var(--green); }
.deco-line-red  { width: 20px; height: 3px; background: var(--red); }

/* ---- Blocs d'information (Qui sommes-nous, Histoire…) ---- */
/* Chaque bloc s'anime à l'entrée dans le viewport (IntersectionObserver JS) */
.about-info-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.about-info-block.visible {
  opacity: 1;
  transform: none;
}

/* Cercle icône vert */
.info-icon-wrap {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

/* Titre du bloc (ex: "Qui sommes-nous ?") */
.info-block-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}

/* Texte descriptif sous le titre du bloc */
.info-block-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
}
.info-block-text strong { color: var(--dark); }

/* ---- Colonne droite : photo de l'entreprise ---- */
.about-hero-right {
  position: relative;
  display: flex;
  align-items: flex-end;
}

/* Conteneur image avec coin arrondi en bas à gauche */
.hero-img-container {
  position: relative;
  width: 100%;
  border-radius: 0 0 0 80px;
  overflow: hidden;
}
.hero-img-container img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 0 0 0 80px;
}

/* Dégradé vert en overlay sur la photo */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,107,60,.35) 0%, transparent 60%);
  border-radius: 0 0 0 80px;
  pointer-events: none;
}

/* ---- Carte statistique flottante sur la photo ---- */
.hero-stat-float {
  position: absolute;
  bottom: 40px; left: -30px;   /* Déborde légèrement de la photo */
  background: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  min-width: 160px;
  animation: floatCard 3s ease-in-out infinite;  /* Animation lévitation */
}
.hero-stat-float .stat-icon {
  font-size: 1.4rem;
  color: var(--green-light);
  margin-bottom: 4px;
}
.hero-stat-float .stat-num {
  font-family: var(--font);
  font-weight: 900;
  font-size: 2rem;
  color: var(--green-light);
  line-height: 1;
}
.hero-stat-float .stat-label {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* Keyframe : légère lévitation de la carte statistique */
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* =============================================
   SECTION NOS VALEURS (page À Propos)
   ============================================= */
.valeurs-section {
  background: #fff;
  padding: 60px 0;
}

/* Label en petite majuscule au-dessus du titre */
.section-label {
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 6px;
}
/* Suppression du pseudo-élément du .section-title global */
.section-label::after { display: none; }

/* Titre de section avec ligne en pointillé s'étirant à droite */
.valeurs-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.valeurs-title-line {
  flex: 1;
  height: 1px;
  background: #ddd;
}

/* ---- Carte de valeur individuelle ---- */
.valeur-card {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: default;
  /* Animation d'entrée au scroll (IntersectionObserver) */
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .5s ease,
    transform .5s ease,
    box-shadow .3s,
    border-color .3s;
}
.valeur-card.visible { opacity: 1; transform: none; }

/* Effet de soulèvement et bordure verte au hover */
.valeur-card:hover {
  box-shadow: 0 8px 32px rgba(26,107,60,.12);
  border-color: var(--green-light);
  transform: translateY(-4px) !important; /* Prioritaire sur l'animation CSS */
}

/* Cercle icône centré */
.valeur-icon-wrap {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  background: var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--green);
  transition: background .3s, color .3s;
}
/* Inversion couleurs du cercle au hover sur la carte */
.valeur-card:hover .valeur-icon-wrap {
  background: var(--green);
  color: #fff;
}
.valeur-card h6 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}
.valeur-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #777;
  margin: 0;
}

/* =============================================
   SECTION MISSION / VISION
   Deux cartes côte à côte sur fond gris
   ============================================= */
.mv-section {
  background: var(--gray);
  padding: 50px 0;
}

/* Carte Mission ou Vision */
.mv-card {
  background: #fff;
  border-radius: 8px;
  padding: 30px 28px;
  height: 100%;
  border-left: 4px solid transparent;  /* Couleur définie par .mission ou .vision */
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  /* Animation d'entrée depuis la gauche */
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity .6s ease,
    transform .6s ease,
    box-shadow .3s;
}
.mv-card.mission { border-left-color: var(--red); }
.mv-card.vision  { border-left-color: var(--green); }
.mv-card.visible { opacity: 1; transform: none; }

/* Légère lévitation au hover */
.mv-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform: translateY(-3px) !important;
}

/* Icône circulaire en haut de chaque carte */
.mv-icon-wrap {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}
.mv-icon-wrap.red   { background: var(--red); }
.mv-icon-wrap.green { background: var(--green); }

/* Sous-titre de la carte (NOTRE MISSION / NOTRE VISION) */
.mv-card .mv-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mv-card .mv-title.red   { color: var(--red); }
.mv-card .mv-title.green { color: var(--green); }
.mv-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

/* =============================================
   BARRE DE STATISTIQUES (identique à index.html)
   Réutilisation des classes .stat-item de style.css
   Surcharges spécifiques à la page À Propos
   ============================================= */
.stats-section { background: var(--green); padding: 0; }

/* Barre flex contenant tous les items statistiques */
.stats-bar { display: flex; flex-wrap: wrap; }

.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.stat-item:last-child { border-right: none; }

/* Léger fond clair au survol */
.stat-item:hover { background: rgba(255,255,255,.08); }

/* Icône du stat */
.stat-item i {
  font-size: 1.4rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
  display: block;
  transition: color .3s, transform .3s;
}
.stat-item:hover i { color: #fff; transform: scale(1.15); }

/* Chiffre principal (animé par le compteur JS) */
.stat-item h3 {
  font-family: var(--font);
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-item p {
  font-size: 0.78rem;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* =============================================
   RESPONSIVE – Tablette (< 992px)
   ============================================= */
@media (max-width: 991px) {
  .about-hero-title { font-size: 2.2rem; }
  .about-hero-right { display: none; }     /* Masquer la photo sur tablette */
  .about-hero       { padding: 40px 0 20px; min-height: auto; }
}

/* =============================================
   RESPONSIVE – Mobile (< 768px)
   ============================================= */
@media (max-width: 767px) {
  .topbar-right { display: none !important; }
  .about-hero-title { font-size: 1.8rem; }
  /* Stats en grille 2×N */
  .stats-bar  { flex-wrap: wrap; }
  .stat-item  {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    min-width: 50%;  /* 2 colonnes sur mobile */
  }
}