/* Styles généraux et réinitialisation */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fafafa;
  font-size: 16px; /* base comfortable for mobile */
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

/* En-tête : barre fixe en haut */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #3498db;
  text-decoration: none;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
}
.nav a:hover {
  color: #3498db;
}

/* Hero principal */
.hero {
  position: relative;
  height: 60vh;               /* réduit sur mobile */
  min-height: 300px;          /* pas trop petit */
  background: url('Photo/ECG-blog_how-to-interpret_1.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero .container {
  position: relative;
  text-align: center;
  z-index: 1;
}
.hero h1 {
  font-size: 2rem;            /* adaptée en mobile */
  margin-bottom: 1rem;
}
.hero p {
  max-width: 90%;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}
.btn {
  background-color: #3498db;
  color: #fff;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 0.95rem;
}
.btn:hover {
  background-color: #2980b9;
}

/* Section Mission */
.mission {
  background-color: #fff;
  padding: 2rem 1rem;
}
.mission h2 {
  text-align: center;
  color: #3498db;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}
.mission p {
  margin: 1rem 0;
  font-size: 1rem;
}

/* Section Valeurs */
.valeurs {
  background-color: #f2f6f9;
  padding: 2rem 1rem;
}
.valeurs h2 {
  text-align: center;
  color: #3498db;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.valeurs-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.valeur-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.valeur-item i {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 0.75rem;
}
.valeur-item h3 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.2rem;
}
.valeur-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Section Équipe */
.equipe {
  background-color: #fff;
  padding: 2rem 1rem;
}
.equipe h2 {
  text-align: center;
  color: #3498db;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}
.card {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3/4;         /* maintient ratio fixe */
  perspective: 1000px;
  position: relative;
}
.card-front, .card-back {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  overflow: hidden;
  position: absolute;
  top: 0; left: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.6s;
}
.card-front {
  background-color: #fff;
  text-align: center;
}
.card-front img {
  width: 100%;
  height: 60%;
  object-fit: cover;
}
.card-front h3 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}
.card-front p {
  font-size: 0.85rem;
  color: #777;
}
.card-back {
  background-color: #3498db;
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}
.card:hover .card-front {
  transform: rotateY(180deg);
}
.card:hover .card-back {
  transform: rotateY(360deg);
}

/* Pied de page */
.site-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}

/* Section Fondateur */
.founder {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.founder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.founder-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.founder-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 4px solid white;
}

.founder-photo:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 123, 255, 0.4);
}

/* Styles pour le placeholder (gardé pour référence) */
.founder-photo-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-photo-placeholder:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 123, 255, 0.4);
}

.founder-photo-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.founder-photo-placeholder p {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.founder-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.founder-quote {
  position: relative;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #007bff;
}

.founder-quote blockquote {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: #2c3e50;
  margin: 0;
  position: relative;
  font-weight: 400;
}

.quote-mark {
  color: #007bff;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  display: inline-block;
  margin: 0 5px;
}

.founder-bio h3 {
  font-size: 1.5rem;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: 600;
}

.founder-bio p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.founder-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.founder-actions .btn {
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.founder-actions .btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.founder-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.founder-actions .btn-secondary {
  background: transparent;
  color: #007bff;
  border-color: #007bff;
}

.founder-actions .btn-secondary:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero {
    height: 50vh;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .mission h2,
  .valeurs h2,
  .equipe h2 {
    font-size: 1.6rem;
  }
  
  /* Section fondateur responsive */
  .founder-content {
    gap: 40px;
  }
  .founder-photo {
    width: 250px;
    height: 250px;
  }
  .founder-photo-placeholder {
    width: 250px;
    height: 250px;
  }
  .founder-quote blockquote {
    font-size: 1.2rem;
  }
}
@media (max-width: 768px) {
  .hero {
    height: 40vh;
    min-height: 250px;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .logo {
    font-size: 1.3rem;
  }
  .nav ul {
    gap: 1rem;
  }
  
  /* Section fondateur responsive */
  .founder-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .founder-photo {
    width: 200px;
    height: 200px;
  }
  .founder-photo-placeholder {
    width: 200px;
    height: 200px;
  }
  .founder-photo-placeholder i {
    font-size: 3rem;
  }
  .founder-quote {
    padding: 20px;
  }
  .founder-quote blockquote {
    font-size: 1.1rem;
  }
  .founder-actions {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 30vh;
    min-height: 200px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .mission p,
  .valeur-item p {
    font-size: 0.85rem;
  }
  .valeur-item h3 {
    font-size: 1.1rem;
  }
  .card-front h3 {
    font-size: 0.95rem;
  }
  
  /* Section fondateur responsive mobile */
  .founder {
    padding: 40px 0;
  }
  .founder-photo {
    width: 150px;
    height: 150px;
  }
  .founder-photo-placeholder {
    width: 150px;
    height: 150px;
  }
  .founder-photo-placeholder i {
    font-size: 2.5rem;
  }
  .founder-photo-placeholder p {
    font-size: 0.9rem;
  }
  .founder-quote {
    padding: 15px;
  }
  .founder-quote blockquote {
    font-size: 1rem;
  }
  .founder-bio h3 {
    font-size: 1.3rem;
  }
  .founder-bio p {
    font-size: 1rem;
  }
  .founder-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}



@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  nav a.btn {
    margin-top: 5px;
  }
}
/* === NAVIGATION RESPONSIVE MOBILE === */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
  }

  nav a.btn {
    padding: 10px 14px;
    width: 100%;
    text-align: left;
    border: 1px solid #e0e0e0;
  }
}
