/* ============================================
   iCARE by Eric - Feuille de style principale
   Palette : Crème #F8F3ED | Orange #F4B183 | Marron #A68160
   ============================================ */

/* --- Variables CSS --- */
:root {
  --color-cream: #F8F3ED;
  --color-orange: #F4B183;
  --color-orange-light: #f8c9a3;
  --color-brown: #A68160;
  --color-brown-dark: #8a6a4e;
  --color-text: #3d3d3d;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Lato', sans-serif;
  --shadow-soft: 0 4px 20px rgba(166, 129, 96, 0.12);
  --shadow-card: 0 8px 30px rgba(166, 129, 96, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

ul {
  list-style: none;
}

/* --- Typographie --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-brown-dark);
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
  padding: 0.75rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-brown-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-brown);
}

/* --- Menu déroulant (Dropdown) --- */
.has-dropdown {
  position: relative;
}

.has-dropdown > .nav-link::after {
  content: '&#9660;
  position: static;
  margin-left: 4px;
  font-size: 0.7rem;
  background: none;
  width: auto;
  height: auto;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  min-width: 200px;
  padding: 0.75rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--color-cream);
  color: var(--color-brown);
  padding-left: 1.5rem;
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-brown);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  background: var(--color-brown);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-brown-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-brown);
  color: var(--color-brown);
}

.btn-outline:hover {
  background: var(--color-brown);
  color: var(--color-white);
}

.btn-follow {
  background: linear-gradient(135deg, var(--color-orange), var(--color-brown));
  color: var(--color-white);
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
}

.btn-follow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--color-white);
}

/* --- Menu Burger (Mobile) --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--color-brown);
  border-radius: 3px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* --- Main Content --- */
main {
  padding-top: 80px;
}

/* --- Section commune --- */
.section {
  padding: 5rem 0;
}

.section-cream {
  background: var(--color-cream);
}

.section-white {
  background: var(--color-white);
}

.section-orange {
  background: var(--color-orange-light);
}

.section-brown {
  background: var(--color-brown);
  color: var(--color-white);
}

.section-brown h2,
.section-brown h3 {
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-orange);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  min-height: auto;
  padding: 3rem 0;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-orange-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(circle, rgba(244, 177, 131, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: var(--color-brown-dark);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(166, 129, 96, 0.1);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-orange-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
}

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

.card-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  gap: 0.75rem;
}

/* --- Blog/Articles --- */
.article-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-orange-light);
}

.article-card-content {
  padding: 1.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.article-card h3 {
  margin-bottom: 0.75rem;
}

.article-excerpt {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Billet d'humeur --- */
.billet {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-orange);
}

.billet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.billet-date {
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: var(--color-cream);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.billet-insight {
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1.5rem;
  border-left: 3px solid var(--color-brown);
}

.billet-insight-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

/* --- Timeline (En cours de construction) --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-orange);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-item.completed::before {
  background: var(--color-orange);
}

.timeline-item.in-progress::before {
  background: var(--color-brown);
  border-color: var(--color-brown);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 129, 96, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(166, 129, 96, 0); }
}

.timeline-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-in-progress {
  background: #fff3cd;
  color: #856404;
}

.status-planned {
  background: var(--color-cream);
  color: var(--color-text-light);
}

/* --- Page Projet V2 --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card {
  text-align: center;
  padding: 2rem;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* --- Formulaire Contact --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-brown-dark);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(166, 129, 96, 0.2);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(244, 177, 131, 0.2);
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-cream);
  border-radius: var(--radius-sm);
}

/* --- Social Links --- */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-white);
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: var(--color-white);
}

.social-link.tiktok {
  background: #000;
  color: var(--color-white);
}

/* --- Footer --- */
.footer {
  background: var(--color-brown-dark);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
}

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

.footer h4 {
  color: var(--color-orange);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-orange);
}

/* --- Page Header (pour pages internes) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-orange-light) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Encadré spécial --- */
.highlight-box {
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid var(--color-brown);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 2rem 2rem;
  background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-dark) 100%);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .logo-text {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Animations d'entrée --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* --- Utilitaires --- */
.text-center { text-align: center; }
.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; }

/* ============================================
   CARROUSEL PHOTOS
   ============================================ */

.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-white);
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(166, 129, 96, 0.9);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background: var(--color-brown-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: var(--color-white);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 2px solid var(--color-brown);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.carousel-counter {
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: var(--color-white);
}

/* Carousel dans une grille texte/image */
.carousel-inline {
  max-width: 100%;
  margin: 0;
}

/* Placeholder pour photos à venir */
.carousel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-light);
  background: linear-gradient(135deg, var(--color-cream), var(--color-orange-light));
}

.carousel-placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.carousel-placeholder-text {
  font-size: 0.95rem;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .carousel-btn-prev {
    left: 5px;
  }
  
  .carousel-btn-next {
    right: 5px;
  }
}

/* Layout texte + carousel côte à côte */
.content-with-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.content-with-carousel .content-text {
  padding-right: 1rem;
}

.content-with-carousel .content-carousel {
  position: sticky;
  top: 100px;
}

@media (max-width: 900px) {
  .content-with-carousel {
    grid-template-columns: 1fr;
  }
  
  .content-with-carousel .content-carousel {
    order: -1;
    position: relative;
    top: 0;
  }
  
  .content-with-carousel .content-text {
    padding-right: 0;
  }
}
/* ============================================== */
/* RESPONSIVE CSS - À AJOUTER À LA FIN DE style.css */
/* iCARE by Eric - tableautablettes.fr */
/* ============================================== */

/* ===== RESET RESPONSIVE GLOBAL ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ===== RESPONSIVE TABLETTE (max 1100px) ===== */
@media (max-width: 1100px) {
  
  /* Grilles de cartes : 2 colonnes */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem;
  }
  
  /* Grilles 4 colonnes forcées : 2 colonnes */
  .cards-grid[style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Grilles 3 colonnes forcées : 2 colonnes */
  .cards-grid[style*="repeat(3, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
}

/* ===== RESPONSIVE TABLETTE PORTRAIT (max 900px) ===== */
@media (max-width: 900px) {
  
  /* Hero : 1 colonne */
  .hero-grid,
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
  }
  
  /* Image hero : en premier */
  .hero-image {
    order: -1;
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Masquer le décor derrière l'image */
  .hero-image::before,
  div[style*="position: absolute"][style*="border:"] {
    display: none !important;
  }
  
  /* Centrer les boutons */
  .hero-buttons {
    justify-content: center;
  }
  
  /* Cartes : 1 colonne sur tablette portrait */
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Section avec image + texte : inverser l'ordre */
  .section-cream .container > div[style*="grid-template-columns: 1fr 1fr"] > div:last-child {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* Masquer le décor des images */
  .section-cream .container > div[style*="grid-template-columns: 1fr 1fr"] > div:last-child > div[style*="position: absolute"] {
    display: none !important;
  }
  
}

/* ===== RESPONSIVE MOBILE (max 768px) ===== */
@media (max-width: 768px) {
  
  /* Container : padding réduit */
  .container {
    padding: 0 1rem;
  }
  
  /* Sections : padding réduit */
  .section {
    padding: 2rem 0;
  }
  
  /* Titres de section */
  .section-title {
    font-size: 1.5rem;
  }
  
  /* Page header */
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .page-header p {
    font-size: 1rem;
  }
  
  /* Cartes */
  .card {
    padding: 1.25rem;
  }
  
  .card h3 {
    font-size: 1.1rem;
  }
  
  .card p {
    font-size: 0.9rem;
  }
  
  /* Miniatures des cartes */
  .card-thumb,
  .card img[style*="border-radius: 50%"] {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Articles de blog */
  .article-card {
    flex-direction: column;
  }
  
  .article-card-img {
    height: 120px;
  }
  
  /* Billets d'humeur */
  .billet {
    padding: 1.5rem;
  }
  
  .billet-header h3 {
    font-size: 1.1rem;
  }
  
  /* Formulaires */
  .contact-form,
  .enquete-form {
    padding: 1.5rem 1rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Empêche le zoom sur iOS */
  }
  
  /* CTA Section */
  .cta-section {
    padding: 2rem 1rem !important;
  }
  
  .cta-section h2 {
    font-size: 1.3rem;
  }
  
  .cta-section p {
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  /* Highlight box */
  .highlight-box {
    padding: 1.25rem;
  }
  
  /* Grilles inline avec style */
  div[style*="display: grid"][style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Carrousels */
  .carousel-slide img {
    max-height: 250px;
  }
  
  /* Content with carousel (mise-en-oeuvre.html) */
  .content-with-carousel {
    flex-direction: column;
  }
  
  .content-text,
  .content-carousel {
    width: 100% !important;
    max-width: 100% !important;
  }
  
}

/* ===== RESPONSIVE PETIT MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  
  /* Titres */
  h1, .page-header h1 {
    font-size: 1.5rem;
  }
  
  h2, .section-title {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  /* Paragraphes */
  p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Boutons */
  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Boutons réseaux sociaux */
  a[style*="border-radius: 50px"][style*="padding"] {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }
  
  /* Flex containers de boutons : en colonne */
  div[style*="display: flex"][style*="gap: 1rem"][style*="justify-content: center"] {
    flex-direction: column;
    align-items: center;
  }
  
  /* Cards miniatures encore plus petites */
  .card-thumb,
  .card img[style*="border-radius: 50%"],
  img[style*="width: 80px"] {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Section title avec image inline */
  .section-title img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 0.5rem !important;
  }
  
  /* Listes */
  ul {
    padding-left: 1.25rem;
  }
  
  li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  /* Navigation retour */
  .page-header p a {
    font-size: 0.9rem;
  }
  
}

/* ===== CORRECTIONS SPÉCIFIQUES PAR PAGE ===== */

/* --- qui-je-suis.html --- */
@media (max-width: 768px) {
  /* Photo + texte intro */
  .section-white .container > div > div[style*="grid-template-columns: 1fr 280px"],
  .section-white .container > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Photo en premier */
  .section-white .container > div > div[style*="grid-template-columns"] > div:last-child {
    order: -1;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .section-white .container > div > div[style*="grid-template-columns"] > div:last-child img {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* --- projet-v2.html --- */
@media (max-width: 900px) {
  /* Grille 2 colonnes */
  .cards-grid[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- axes-projet.html --- */
@media (max-width: 768px) {
  /* Les 3 axes en colonne */
  .cards-grid[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- mise-en-oeuvre.html --- */
@media (max-width: 768px) {
  /* Carrousel + texte : empilés */
  .content-with-carousel {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .content-text {
    order: 1;
  }
  
  .content-carousel {
    order: 2;
    margin-top: 1.5rem;
  }
}

/* --- blog.html & billet-dhumeur.html --- */
@media (max-width: 768px) {
  .article-card-content {
    padding: 1rem;
  }
  
  .article-excerpt {
    font-size: 0.9rem;
  }
  
  .billet-insight {
    padding: 1rem;
  }
}

/* --- contact.html --- */
@media (max-width: 768px) {
  .contact-form {
    max-width: 100%;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
}

/* --- ressources.html --- */
@media (max-width: 768px) {
  .ressource-card {
    padding: 1.25rem;
  }
}

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 900px) {
  /* Menu burger visible */
  .burger {
    display: flex !important;
  }
  
  /* Navigation cachée par défaut */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }
  
  /* Dropdown */
  .dropdown {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: none;
  }
  
  .has-dropdown.active .dropdown {
    display: block;
  }
}

/* ===== ANIMATIONS DÉSACTIVÉES SUR MOBILE (performance) ===== */
@media (max-width: 768px) {
  .fade-in,
  .fade-in.delay-1,
  .fade-in.delay-2 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== FIX iOS SAFARI ===== */
@supports (-webkit-touch-callout: none) {
  /* Fix pour les inputs sur iOS */
  input, textarea, select {
    font-size: 16px;
  }
  
  /* Fix pour le scroll */
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================== */
/* FIN DU FICHIER RESPONSIVE */
/* ============================================== */

