/* ===================================
   ACCORDOMICILE - DESIGN MODERNE & RESPONSIVE
   Optimisé pour TOUS les appareils
   =================================== */

:root {
  --primary-color: #00a8cc;
  --secondary-color: #005a7d;
  --accent-color: #00d4ff;
  --light-bg: #f8f9fa;
  --dark-text: #1a1a1a;
  --light-text: #666666;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--secondary-color);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--secondary-color);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--primary-color);
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--dark-text);
}

p {
  margin-bottom: 1rem;
  color: var(--light-text);
  line-height: 1.8;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  color: white;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  white-space: nowrap;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.language-switcher {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
}

.lang-btn.active {
  background: var(--accent-color);
  color: var(--secondary-color);
  border-color: var(--accent-color);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.call-btn {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.6rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  white-space: nowrap;
}

.call-btn:hover {
  background: white;
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: clamp(3rem, 10vw, 6rem) 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
}

/* ===================================
   TYPEWRITER TEXT
   =================================== */
.rotating-text {
  display: inline-block;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: black;
  overflow: hidden;
  border-right: 2px solid ; /* curseur */
  white-space: nowrap;
  width: 16ch; /* largeur max visible */
  margin-bottom: 1.5rem;
  animation: blinkCaret 0.75s step-end infinite;
}

/* Curseur clignotant */
@keyframes blinkCaret {
  50% { border-color: transparent; }
}

/* ===================================
   CTA BUTTONS
   =================================== */
.cta-button {
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: clamp(0.7rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  border: none;
  border-radius: 50px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  margin: 0.5rem;
}

.cta-button:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: white;
}

.cta-button.secondary:hover {
  background: var(--accent-color);
  color: var(--secondary-color);
}
  /* ===================================
   SECTIONS GÉNÉRALES
   =================================== */

section {
  padding: clamp(2rem, 8vw, 4rem) 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* ===================================
   PROFILS LES PLUS DEMANDÉS
   =================================== */

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
}

/* TABLETTE */
@media (max-width: 992px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARD ===== */
.profile-card {
  background: white;
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-color);
}

/* ===== ICÔNE AVEC IMAGE ===== */
.profile-icon {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);

  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));

  border-radius: 50%;
  margin: 0 auto 1.5rem;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden; /* important pour image ronde */
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== TEXTES ===== */
.profile-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.profile-card p {
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

/* ===== BOUTON ===== */
.profile-btn {
  display: inline-block;
  font-size: 0.9rem !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 25px;
}

/* ===================================
   AVANTAGES SECTION
   =================================== */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: 2rem;
}

.advantage-item {
  background: linear-gradient(135deg, rgba(0, 168, 204, 0.1), rgba(0, 212, 255, 0.1));
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.advantage-item:hover {
  border-left-color: var(--accent-color);
  transform: translateX(5px);
}

.advantage-item h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.advantage-item p {
  color: var(--light-text);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

/* ===================================
   QUALITÉ SECTION
=================================== */

.quality-section {
  background: linear-gradient(135deg, var(--light-bg), white);
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3rem);
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

/* ===== TEXTES ===== */

.quality-content h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.quality-content p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--light-text);
  line-height: 1.5;
}

.quality-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.quality-stat-number {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-color);
}

.quality-stat-text {
  color: var(--light-text);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
}


/* ===================================
   FORMULAIRE DE CONTACT
   =================================== */

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--light-bg);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: clamp(0.6rem, 1vw, 0.75rem);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===================================
   FOOTER
   =================================== */

footer {
  background: var(--secondary-color);
  color: white;
  padding: clamp(2rem, 5vw, 3rem) 1rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 100%, 280px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

/* ===================================
   WHATSAPP BUTTON
   =================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: clamp(50px, 10vw, 60px);
  height: clamp(50px, 10vw, 60px);
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #20ba5a;
}

html[dir="rtl"] .whatsapp-btn {
  right: auto;
  left: 2rem;
}

/* ===================================
   RESPONSIVE DESIGN - TABLETTE
   =================================== */

@media (max-width: 1024px) {
  .header-container {
    padding: 0 0.75rem;
  }

  .quality-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quality-image {
    height: 250px;
  }

  section {
    padding: clamp(1.5rem, 6vw, 3rem) 0.75rem;
  }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE LARGE
   =================================== */

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: clamp(2rem, 6vw, 4rem) 1rem;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .quality-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .quality-image {
    height: 200px;
  }

  .language-switcher {
    gap: 0.2rem;
  }

  .lang-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }

  .call-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  html[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE MOYEN
   =================================== */

@media (max-width: 640px) {
  .header-container {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.2rem;
    gap: 0.3rem;
  }

  .call-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
  }

  .lang-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    margin: 0.4rem;
  }

  .profiles-grid {
    gap: 1rem;
  }

  .profile-card {
    padding: 1.2rem;
  }

  .profile-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .advantages-grid {
    gap: 1rem;
  }

  .advantage-item {
    padding: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .quality-stat-number {
    font-size: 1.8rem;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  section {
    padding: 1.5rem 0.5rem;
  }

  .contact-form {
    padding: 1.2rem;
  }

  .footer-content {
    gap: 1rem;
  }

  .whatsapp-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 1rem;
    right: 1rem;
  }

  html[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 1rem;
  }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE PETIT
   =================================== */

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .header-container {
    padding: 0.5rem;
    gap: 0.3rem;
  }

  .logo {
    font-size: 1rem;
    gap: 0.2rem;
  }

  .nav-menu {
    padding: 0.75rem;
  }

  .nav-menu a {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .call-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }

  .lang-btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.6rem;
  }

  .hero {
    padding: 1.5rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin: 0.3rem;
  }

  .profiles-grid {
    gap: 0.8rem;
  }

  .profile-card {
    padding: 1rem;
  }

  .profile-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .profile-card h3 {
    font-size: 1rem;
  }

  .profile-card p {
    font-size: 0.8rem;
  }

  .advantages-grid {
    gap: 0.8rem;
  }

  .advantage-item {
    padding: 1rem;
  }

  .advantage-item h4 {
    font-size: 0.95rem;
  }

  .advantage-item p {
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section-title {
    margin-bottom: 1.2rem;
  }

  .section-title::after {
    width: 60px;
  }

  section {
    padding: 1.2rem 0.5rem;
  }

  .quality-section {
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .quality-content h2 {
    font-size: 1.2rem;
  }

  .quality-stat {
    gap: 0.75rem;
    margin: 1rem 0;
  }

  .quality-stat-number {
    font-size: 1.5rem;
  }

  .quality-stat-text {
    font-size: 0.8rem;
  }

  .quality-image {
    height: 150px;
    font-size: 2.5rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .footer-content {
    gap: 1rem;
  }

  .footer-section h4 {
    font-size: 0.9rem;
  }

  .footer-section a,
  .footer-section p {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1rem;
  }

  .whatsapp-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }

  html[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 0.75rem;
  }
}

/* ===================================
   RESPONSIVE DESIGN - TRÈS PETIT MOBILE
   =================================== */

@media (max-width: 360px) {
  body {
    font-size: 13px;
  }

  .header-container {
    padding: 0.4rem;
    gap: 0.2rem;
  }

  .logo {
    font-size: 0.9rem;
  }

  .call-btn {
    padding: 0.3rem 0.4rem;
    font-size: 0.6rem;
  }

  .lang-btn {
    padding: 0.2rem 0.3rem;
    font-size: 0.55rem;
  }

  .hero {
    padding: 1.2rem 0.5rem;
  }

  .hero h1 {
    font-size: 1.1rem;
  }

  .hero .subtitle {
    font-size: 0.8rem;
  }

  .cta-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    margin: 0.25rem;
  }

  .profiles-grid {
    gap: 0.6rem;
  }

  .profile-card {
    padding: 0.8rem;
  }

  .profile-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .section-title {
    margin-bottom: 1rem;
  }

  section {
    padding: 1rem 0.4rem;
  }

  .gallery-grid {
    gap: 0.6rem;
  }

  .contact-form {
    padding: 0.8rem;
  }

  .whatsapp-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  html[dir="rtl"] .whatsapp-btn {
    right: auto;
    left: 0.5rem;
  }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* ===================================
   UTILITAIRES
   =================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* ===================================
   OPTIMISATION PERFORMANCE
   =================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Custom Styles for Logo and Single Line Grid */

.header-logo {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.header-logo:hover {
  transform: scale(1.05);
}

.single-line-grid {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Pour Firefox */
  scrollbar-color: var(--primary-color) var(--light-bg); /* Pour Firefox */
}

.single-line-grid > * {
  flex: 0 0 auto;
  width: clamp(280px, 80vw, 320px);
  scroll-snap-align: start;
  margin-right: 1.5rem;
}

.single-line-grid::-webkit-scrollbar {
  height: 8px;
}

.single-line-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.single-line-grid::-webkit-scrollbar-track {
  background: var(--light-bg);
  border-radius: 10px;
}

/* Ajustement pour la responsivité des grilles */
@media (max-width: 768px) {
  .profiles-grid.single-line-grid,
  .advantages-grid.single-line-grid {
    grid-template-columns: 1fr;
    display: flex;
    overflow-x: auto;
  }
}


/* ===================================
   GALERIE ALBUM JS
   =================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  pointer-events: none; /* <-- empêche la lightbox de bloquer les clics quand fermée */
}

.lightbox.open {
  display: block;       /* Affiche la lightbox */
  pointer-events: auto; /* Active les clics seulement quand ouverte */
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
  text-decoration: none;
}


/* ===================================
   AVIS CLIENTS (TESTIMONIALS)
   =================================== */

.testimonials-section {
  background: linear-gradient(135deg, var(--light-bg), white);
  border-radius: 12px;
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  margin: 2rem auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 5px solid var(--primary-color);
}

/* ========== RECTANGLE DU SCREENSHOT ========== */
.testimonial-screenshot-placeholder {
  width: 100%;
  height: 180px; /* légèrement plus petit et plus propre */
  background: #f1f3f5;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit bien le rectangle */
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-text);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   ARTICLES & ACTUALITÉS
   =================================== */

.articles-section {
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, white);
  border-radius: 12px;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.article-card h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
}

.article-card p {
  font-size: 0.95rem;
  color: var(--light-text);
  margin-bottom: 1rem;
}

.article-card .cta-button {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.article-card .cta-button:hover {
  background: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
/* ===================================
   PRINCIPES ET VALEURS
   =================================== */

.principles-section {
  background: linear-gradient(135deg, #f8f9fa, white);
  padding: clamp(2rem, 5vw, 3rem) 1rem;
  border-radius: 12px;
  margin: 2rem auto;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.principle-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.principle-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.principle-card h3 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.principle-card p {
  color: var(--light-text);
  font-size: 0.95rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CONTACT INFO GRID (MODERNE & PRO)
===================================================== */

.contact-info-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 14px;
  background: #ffffff;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.info-icon-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.info-card h4 {
  margin: 0 0 .3rem;
  color: var(--secondary-color);
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  font-weight: 600;
  color: var(--dark-text);
}

.info-note {
  font-size: 0.85rem;
  color: var(--light-text);
  display: block;
  margin-top: .3rem;
}

/* Horaires */
.info-hours {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
}

.info-hours h3 {
  margin-bottom: .8rem;
  color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}



