/* RESET */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins',sans-serif; }
:root { --main-color:#d86f38; --second-color:#4d71b7; --bg-color:#fff; --text-color:#222; --muted:#6b7280; --surface:#f6f7fb; }

/* ACCESSIBILITY */
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:fixed; left:16px; top:16px; width:auto; height:auto; padding:10px 14px; background:#000; color:#fff; z-index:1100; border-radius:6px; }

/* HEADER */
.header {
  position: fixed; top:0; width:100%; padding:16px 40px;
  background: var(--bg-color); display:flex; justify-content:space-between; align-items:center; z-index:1000; border-bottom:1px solid #eee;
}
.logo { color:var(--text-color); font-weight:700; font-size:22px; text-decoration:none; transition: transform 0.6s cubic-bezier(0.25,0.8,0.25,1); }
.logo:hover { transform: scale(1.08); }
.navbar { display:flex; align-items:center; gap:24px; }
.navbar a { color:var(--text-color); text-decoration:none; font-weight:600; transition: color 0.3s; }
.navbar a:hover { color:var(--main-color); }
.nav-toggle { display:none; background:transparent; border:0; color:var(--text-color); font-size:28px; cursor:pointer; }

/* MOBILE NAVIGATION DRAWER */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-nav-close:hover {
  color: var(--main-color);
}

.mobile-nav-menu {
  padding: 20px 0;
}

.mobile-nav-menu a {
  display: block;
  padding: 16px 24px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
  color: var(--main-color);
  background: rgba(255, 107, 53, 0.1);
  border-left-color: var(--main-color);
}

.mobile-nav-menu .btn {
  margin: 20px 24px;
  text-align: center;
  display: block;
  padding: 12px 24px;
  background: var(--main-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-nav-menu .btn:hover {
  background: var(--second-color);
  transform: translateY(-2px);
}

/* BUTTONS */
.btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:999px; background:var(--main-color); color:#fff; text-decoration:none; font-weight:700; box-shadow:0 10px 20px rgba(216,111,56,0.25); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow:0 14px 26px rgba(216,111,56,0.35); background:#c45f2c; }
.btn-small { padding:10px 14px; font-weight:600; }
.btn-outline { background:transparent; color:var(--main-color); border:2px solid var(--main-color); box-shadow:none; }
.btn-outline:hover { background:var(--main-color); color:#fff; }

/* HOME SECTION */
.home { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  min-height: 100vh; 
  padding: 100px 0 40px 0; 
  background: linear-gradient(120deg, #f1f2f6 0%, #ffffff 60%); 
  position: relative; 
  overflow: hidden;
}

/* Force PC layout - no responsive */
@media (max-width: 1200px) {
  .home-container {
    flex-direction: row !important;
    gap: 40px !important;
  }
  .home-content {
    order: 1 !important;
    flex: 1 !important;
  }
  .home-img {
    order: 2 !important;
    flex: 0 0 350px !important;
  }
}

@media (max-width: 768px) {
  .home-container {
    flex-direction: row !important;
    gap: 30px !important;
  }
  .home-content {
    order: 1 !important;
    flex: 1 !important;
  }
  .home-img {
    order: 2 !important;
    flex: 0 0 300px !important;
  }
  .home-img img {
    width: 300px !important;
  }
}
.home-container { 
  display: flex !important; 
  flex-direction: row !important;
  align-items: center !important; 
  justify-content: center !important;
  max-width: 1200px; 
  width: 100%; 
  gap: 80px; 
  padding: 0 40px; 
  margin: 0 auto;
  min-height: 85vh;
}

/* PHOTO */
.home-img { 
  flex: 0 0 400px;
  order: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.photo-frame { position:relative; }
.photo-frame::before { content:""; position:absolute; inset:-16px -16px -16px -16px; background:radial-gradient(1200px 400px at 70% 30%, rgba(77,113,183,0.15), transparent 60%); border-radius:32px; z-index:-1; }
.home-img img {
  width:380px !important; max-width:100%; display:block; border-radius:24px;
  box-shadow:0 30px 60px rgba(0,0,0,0.18); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.home-img img:hover { transform:translateY(-6px); box-shadow:0 40px 70px rgba(0,0,0,0.22); }

/* TEXTE */
.home-content { 
  display: flex !important; 
  flex-direction: column !important; 
  justify-content: center !important; 
  align-items: flex-start !important;
  flex: 1;
  order: 1;
  height: 100%;
  padding-left: 0;
  max-width: 600px;
}
.kicker { color:var(--second-color); font-weight:600; letter-spacing:.04em; text-transform:uppercase; margin-bottom:10px; font-size:16px; }
.title-xl { font-size:48px; color:var(--text-color); margin-bottom:6px; font-weight:800; line-height:1.1; }
.subtitle { font-size:24px; color:var(--main-color); margin-bottom:16px; font-weight:600; }
.home-description { font-size:18px; line-height:1.8; margin-bottom:26px; color:var(--muted); max-width:100%; }
.cta-row { display:flex; gap:16px; align-items:center; margin-bottom:20px; flex-wrap:wrap; }
.trust-row { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; background:var(--surface); color:var(--text-color); border:1px solid #e5e7eb; border-radius:999px; font-size:14px; font-weight:600; }

/* SOCIAL MEDIA */
.social-media { display:flex; gap:16px; justify-content:flex-start; margin-top:8px; }
.social-media a { font-size:28px; color:var(--text-color); transition:0.3s; }
.social-media a:hover { color:var(--second-color); transform:translateY(-2px); }

/* FLECHE SCROLL - centered bottom */
.scroll-down {
  position:absolute; left:50%; bottom:20px; transform:translate(-50%, 0);
  display:inline-flex; justify-content:center; align-items:center; width:52px; height:52px; border-radius:50%; border:2px solid var(--second-color); font-size:22px; color:var(--second-color);
  animation:bounce 2s infinite; text-decoration:none; background:#fff; z-index:2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.scroll-down:hover { color:#fff; background:var(--second-color); transform:translate(-50%, -2px); }
.scroll-down i { display: block; }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translate(-50%, 0);} 40%{transform:translate(-50%, -8px);} 60%{transform:translate(-50%, -4px);} }

/* GENERIC SECTION LAYOUT */
.section { 
  padding:120px max(10%, calc((100% - 1200px) / 2)); 
  scroll-margin-top: 100px;
}

.section-header { text-align:center; margin-bottom:28px; }
.section-header h2 { font-size:36px; color:var(--text-color); margin-bottom:8px; }
.section-header p { color:var(--muted); }

/* ABOUT */
.about-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; max-width:1100px; margin:0 auto; }
.about-card { background:#fff; border:1px solid #eee; border-radius:14px; padding:24px; text-align:center; box-shadow:0 8px 20px rgba(0,0,0,0.05); }
.about-card i { font-size:30px; color:var(--second-color); }
.about-card h3 { margin:8px 0; }
.about-card p { color:var(--muted); font-size:15px; }

/* SERVICES */
.cards-grid { 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:22px; 
  max-width:1200px; 
  margin:0 auto; 
  align-items:stretch;
}
.card { 
  background:#fff; 
  border:1px solid #eee; 
  border-radius:14px; 
  padding:24px; 
  box-shadow:0 10px 22px rgba(0,0,0,0.06); 
  transition:transform .2s ease, box-shadow .2s ease;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:400px;
}
.card:hover { transform:translateY(-4px); box-shadow:0 16px 32px rgba(0,0,0,0.08); }
.card i { font-size:32px; color:var(--main-color); }
.card h3 { margin:10px 0 6px; }
.card p { color:var(--muted); font-size:15px; flex-grow:1; }

/* Service card illustrations */
.card-illustration { 
  width:100%; 
  height:200px; 
  border-radius:12px; 
  overflow:hidden; 
  margin-bottom:14px; 
  background:linear-gradient(135deg, #f8fafc, #eef2f7);
  display:block;
  position:relative;
}
.card-illustration-badges { 
  position:absolute; 
  left:10px; 
  bottom:10px; 
  display:flex; 
  gap:6px; 
  flex-wrap:wrap;
}
.mini-chip { 
  display:inline-flex; 
  align-items:center; 
  gap:6px; 
  background:rgba(255,255,255,0.92); 
  border:1px solid rgba(0,0,0,0.06); 
  color:var(--text-color); 
  border-radius:999px; 
  padding:6px 10px; 
  font-size:12px; 
  font-weight:600; 
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}
.mini-chip i { color:var(--main-color); font-size:14px; }
.card-illustration img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
  transform:scale(1.02); 
  transition:transform .35s ease;
}
.card:hover .card-illustration img { transform:scale(1.06); }

/* SKILLS */
.skills-grid { 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:22px; 
  max-width:1200px; 
  margin:0 auto; 
}

.skill-card { 
  background:#fff; 
  border:1px solid #eee; 
  border-radius:16px; 
  padding:20px; 
  box-shadow:0 8px 24px rgba(0,0,0,0.06); 
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  position:relative;
  overflow:hidden;
  min-height:320px;
}
/* Reorder: icon + title on top, illustration at bottom */
.skill-icon { order:1; }
.skill-content { order:2; }
.skill-illustration { order:3; margin-top:6px; }

.skill-card::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, var(--main-color), var(--second-color));
  transform:scaleX(0);
  transition:transform 0.3s ease;
}

.skill-card:hover::before {
  transform:scaleX(1);
}

.skill-card:hover { 
  transform:translateY(-2px); 
  box-shadow:0 12px 32px rgba(0,0,0,0.1); 
  border-color:var(--main-color);
}

.skill-icon { 
  width:44px; 
  height:44px; 
  background:linear-gradient(135deg, var(--main-color), var(--second-color)); 
  border-radius:12px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  flex-shrink:0;
  box-shadow:0 8px 20px rgba(216,111,56,0.25);
}

.skill-icon i { 
  font-size:22px; 
  color:#fff; 
}

.skill-content { 
  flex:1 1 auto; 
  min-height:0;
}

.skill-content h3 { 
  font-size:18px; 
  font-weight:700; 
  color:var(--text-color); 
  margin:0; 
  line-height:1.3;
}

.skill-content p { 
  margin-top:6px; 
  color:var(--muted); 
  font-size:14px; 
  line-height:1.55;
}


/* PORTFOLIO */
.portfolio-filters { 
  display:flex; 
  justify-content:center; 
  gap:12px; 
  margin-bottom:40px; 
  flex-wrap:wrap; 
}
.filter-btn { 
  padding:10px 20px; 
  border:2px solid #e5e7eb; 
  background:#fff; 
  color:var(--muted); 
  border-radius:999px; 
  font-weight:600; 
  cursor:pointer; 
  transition:all 0.3s ease; 
  font-size:14px;
}
.filter-btn:hover { 
  border-color:var(--main-color); 
  color:var(--main-color); 
  transform:translateY(-2px); 
}
.filter-btn.active { 
  background:var(--main-color); 
  border-color:var(--main-color); 
  color:#fff; 
  box-shadow:0 4px 12px rgba(216,111,56,0.25); 
}

.portfolio-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fill, minmax(450px, 1fr)); 
  gap:30px; 
  max-width:95%; 
  margin:0 auto; 
  padding:0 20px;
}

.work {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.work:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.work-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.work-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
}

.work-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.work-header {
  margin-bottom: 12px;
}

.work h3 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  color: #333;
}

.work-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.chip {
  background: #f0f0f0;
  color: #555;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.duration {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.work-location,
.work-audience {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #666;
  font-size: 0.9rem;
}

.work-location i,
.work-audience i {
  color: #d86f38;
}

.work-objectives {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.work-objectives h4 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: #444;
}

.work-objectives ul {
  padding-left: 20px;
  margin: 0;
}

.work-objectives li {
  margin-bottom: 6px;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.work-link-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.work-link-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--second-color);
  font-weight: 600;
  text-decoration: none;
}

.work-link-row a:hover {
  color: var(--main-color);
}

.work-link-row i {
  font-size: 16px;
}

/* TESTIMONIALS */
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; max-width:1200px; margin:0 auto; }
.testi { 
  background:#fff; 
  border:1px solid #eee; 
  border-radius:16px; 
  padding:24px; 
  box-shadow:0 8px 24px rgba(0,0,0,0.06); 
  transition:transform 0.2s ease, box-shadow 0.2s ease;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.testi:hover { 
  transform:translateY(-2px); 
  box-shadow:0 12px 32px rgba(0,0,0,0.1); 
}

.testi-header { 
  display:flex; 
  flex-direction:column;
  align-items:center; 
  gap:16px; 
  margin-bottom:20px;
  text-align: center;
}

.testi-avatar { 
  width: 100%;
  max-width: 450px;
  height: 250px;
  border-radius: 12px; 
  object-fit: contain;
  border: 3px solid var(--main-color);
  background-color: #fff;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  filter: brightness(1.1) contrast(1.2);
}

.testi-header { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  gap: 8px; 
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
}

.testi {
  align-items: center;
}

.testi-info h4 { 
  margin: 8px 0 4px; 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--text-color);
}

.testi-info span { 
  font-size: 14px; 
  color: var(--muted); 
  font-weight: 500;
  display: block;
}

.testi p { 
  margin:0; 
  color:var(--text-color); 
  line-height:1.6; 
  font-style:italic;
}
.testi-link { 
  margin-top:auto; 
  padding-top:12px; 
  border-top:1px solid #f0f0f0;
}
.testi-link a { 
  display:inline-flex; 
  align-items:center; 
  gap:6px; 
  color:var(--second-color); 
  font-weight:600; 
  text-decoration:none; 
  font-size:14px;
}
.testi-link a:hover { color:var(--main-color); }
.testi-link i { font-size:16px; }

/* Commentaires clients */
.testi-comments { 
  margin-top:48px; 
  text-align:center;
}
.testi-comments h3 { 
  font-size:24px; 
  color:var(--text-color); 
  margin-bottom:32px; 
  font-weight:700;
}
.comments-grid { 
  display:grid; 
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); 
  gap:16px; 
  max-width:1200px; 
  margin:0 auto;
}
.comment { 
  background:#fff; 
  border:1px solid #eee; 
  border-radius:12px; 
  padding:20px; 
  box-shadow:0 4px 12px rgba(0,0,0,0.04); 
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.comment:hover { 
  transform:translateY(-2px); 
  box-shadow:0 8px 20px rgba(0,0,0,0.08); 
}
.comment p { 
  margin:0; 
  color:var(--text-color); 
  line-height:1.6; 
  font-style:italic; 
  font-size:15px;
}

/* FAQ */
.faq-item { max-width:900px; margin:12px auto; border:1px solid #eee; border-radius:12px; padding:14px 16px; background:#fff; }
.faq-item summary { cursor:pointer; font-weight:600; }
.faq-item p { color:var(--muted); margin-top:8px; }

/* CONTACT */
.contact-container { 
  display:grid; 
  grid-template-columns:1fr 1.2fr; 
  gap:48px; 
  max-width:1400px; 
  margin:0 auto; 
  align-items:start;
}

/* RESPONSIVE HOME */
@media (max-width: 1024px) {
  .home-container { 
    gap: 60px; 
    padding: 0 30px; 
  }
  .home-img { 
    flex: 0 0 350px; 
  }
  .home-img img { 
    width: 320px !important; 
  }
  .title-xl { 
    font-size: 42px; 
  }
  .subtitle { 
    font-size: 22px; 
  }
}

@media (max-width: 768px) {
  .home-container { 
    flex-direction: column !important; 
    gap: 30px; 
    text-align: center; 
    padding: 0 20px;
    min-height: 90vh;
  }
  .home-content { 
    order: 2; 
    align-items: center !important; 
    max-width: 100%;
  }
  .home-img { 
    order: 1; 
    flex: none; 
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .home-img img { 
    width: 250px !important; 
    height: auto;
  }
  .kicker { 
    font-size: 14px; 
    margin-bottom: 8px;
  }
  .title-xl { 
    font-size: 32px; 
    margin-bottom: 8px;
    line-height: 1.2;
  }
  .subtitle { 
    font-size: 18px; 
    margin-bottom: 16px;
  }
  .home-description { 
    font-size: 16px; 
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
  }
  .cta-row { 
    justify-content: center; 
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .cta-row .btn {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 16px;
  }
  .trust-row { 
    justify-content: center; 
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .badge {
    padding: 10px 16px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .social-media { 
    justify-content: center; 
    gap: 20px;
    margin-top: 16px;
  }
  .social-media a {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .home-container { 
    padding: 0 16px; 
    gap: 24px; 
    min-height: 85vh;
  }
  .home-img img { 
    width: 220px !important; 
  }
  .kicker { 
    font-size: 13px; 
  }
  .title-xl { 
    font-size: 28px; 
    line-height: 1.1;
  }
  .subtitle { 
    font-size: 16px; 
  }
  .home-description { 
    font-size: 15px; 
    line-height: 1.5;
  }
  .cta-row .btn { 
    width: 100%; 
    max-width: 260px; 
    padding: 12px 20px;
    font-size: 15px;
  }
  .badge {
    padding: 8px 14px;
    font-size: 13px;
    max-width: 280px;
  }
  .social-media a {
    font-size: 22px;
  }
}

/* RESPONSIVE CONTACT */
@media (max-width: 1024px) {
  .contact-container { 
    grid-template-columns: 1fr; 
    gap: 40px; 
  }
  .google-form-container { 
    padding: 24px; 
  }
  .contact-info { 
    padding: 32px; 
  }
}

@media (max-width: 768px) {
  .contact-container { 
    gap: 32px; 
  }
  .google-form-container { 
    padding: 20px; 
  }
  .google-form-embed { 
    margin: 16px 0; 
  }
  .google-form-embed iframe { 
    height: 500px; 
  }
  .contact-info { 
    padding: 24px; 
  }
  .contact-methods { 
    gap: 16px; 
  }
  .contact-method { 
    padding: 16px; 
  }
  .contact-buttons { 
    flex-direction: column; 
    align-items: center; 
  }
  .contact-buttons .btn { 
    width: 100%; 
    max-width: 200px; 
  }
}

@media (max-width: 480px) {
  .google-form-container { 
    padding: 16px; 
  }
  .google-form-embed iframe { 
    height: 450px; 
  }
  .contact-info { 
    padding: 20px; 
  }
  .contact-method { 
    padding: 12px; 
  }
  .contact-icon i { 
    font-size: 20px; 
  }
  .contact-details h4 { 
    font-size: 16px; 
  }
  .contact-details a { 
    font-size: 14px; 
  }
}

/* RESPONSIVE HEADER */
.logo, .navbar a { white-space: nowrap; }
/* Le menu complet (9 liens) demande environ 1200 px, ou 1090 px une fois resserré. */
@media (max-width: 1240px) {
  .navbar { gap: 14px; }
  .header { padding: 16px 24px; }
}
@media (max-width: 1120px) {
  .navbar {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 16px 20px; 
  }
}

/* RESPONSIVE GENERAL */
@media (max-width: 1024px) {
  .section { 
    padding: 80px max(5%, calc((100% - 1200px) / 2)); 
  }
  .section-title { 
    font-size: 36px; 
  }
  .section-subtitle { 
    font-size: 18px; 
  }
}

@media (max-width: 768px) {
  .section { 
    padding: 60px 20px; 
  }
  .section-title { 
    font-size: 32px; 
    margin-bottom: 16px;
  }
  .section-subtitle { 
    font-size: 16px; 
    margin-bottom: 32px;
  }
  
  /* Services */
  .cards-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  .card {
    padding: 24px;
    text-align: center;
    min-height: auto;
  }
  .card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .card p {
    font-size: 15px;
    line-height: 1.6;
  }
  .card-illustration {
    height: 160px;
  }
  
  /* Skills */
  .skills-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  .skill-card {
    padding: 20px;
    text-align: center;
  }
  .skill-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .skill-card p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Portfolio */
  .portfolio-filters { 
    flex-wrap: wrap; 
    gap: 8px; 
    justify-content: center;
    margin-bottom: 32px;
  }
  .portfolio-filters .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .portfolio-grid { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
  .work {
    padding: 20px;
  }
  .work h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .work p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Testimonials */
  .testimonials-grid { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
  .testi-card {
    padding: 20px;
    text-align: center;
  }
  .testi-avatar {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 16px;
  }
  .testi-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .testi-info p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .section { 
    padding: 40px 16px; 
  }
  .section-title { 
    font-size: 28px; 
    margin-bottom: 12px;
  }
  .section-subtitle { 
    font-size: 14px; 
    margin-bottom: 24px;
  }
  
  /* Services */
  .cards-grid {
    gap: 16px;
  }
  .card {
    padding: 20px;
    min-height: auto;
  }
  .card h3 {
    font-size: 18px;
  }
  .card p {
    font-size: 14px;
  }
  .card-illustration {
    height: 140px;
  }
  
  /* Skills */
  .skills-grid { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  .skill-card {
    padding: 16px;
  }
  .skill-card h3 {
    font-size: 16px;
  }
  .skill-card p {
    font-size: 13px;
  }
  
  /* Portfolio filters */
  .portfolio-filters { 
    flex-direction: column; 
    align-items: center; 
    gap: 8px;
  }
  .portfolio-filters .btn { 
    width: 100%; 
    max-width: 200px; 
    padding: 10px 16px;
    font-size: 14px;
  }
  .work {
    padding: 16px;
  }
  .work h3 {
    font-size: 16px;
  }
  .work p {
    font-size: 13px;
  }
  
  /* Testimonials */
  .testi-card {
    padding: 16px;
  }
  .testi-avatar {
    width: 70px !important;
    height: 70px !important;
  }
  .testi-info h4 {
    font-size: 15px;
  }
  .testi-info p {
    font-size: 13px;
  }
}

/* Google Forms */
.google-form-container { 
  background:#fff; 
  border-radius:16px; 
  padding:32px; 
  box-shadow:0 8px 32px rgba(0,0,0,0.1); 
}
.google-form-embed { 
  margin:24px 0; 
  border-radius:12px; 
  overflow:hidden; 
}
.google-form-embed iframe { 
  border:none; 
  border-radius:12px; 
}
.form-alternative { 
  margin-top:24px; 
  padding-top:24px; 
  border-top:1px solid #eee; 
  text-align:center; 
}
.form-alternative p { 
  margin-bottom:16px; 
  color:#666; 
}
.contact-buttons { 
  display:flex; 
  gap:16px; 
  justify-content:center; 
  flex-wrap:wrap; 
}

/* Informations de contact */
.contact-info { 
  background:linear-gradient(135deg, #f8fafc, #ffffff 100%); 
  border:1px solid #e2e8f0; 
  border-radius:20px; 
  padding:40px; 
  box-shadow:0 20px 40px rgba(0,0,0,0.08); 
  position:relative;
}
.contact-info::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, var(--main-color), var(--second-color));
}

.contact-info-header h3 { 
  font-size:28px; 
  font-weight:700; 
  color:var(--text-color); 
  margin-bottom:12px; 
}
.contact-info-header p { 
  color:var(--muted); 
  font-size:16px; 
  line-height:1.6; 
  margin-bottom:32px; 
}

.contact-methods { 
  margin-bottom:32px; 
}
.contact-method { 
  display:flex; 
  align-items:flex-start; 
  gap:16px; 
  margin-bottom:24px; 
  padding:20px; 
  background:#fff; 
  border-radius:12px; 
  border:1px solid #f1f5f9; 
  transition:all 0.3s ease;
}
.contact-method:hover { 
  transform:translateY(-2px); 
  box-shadow:0 8px 25px rgba(0,0,0,0.1); 
  border-color:var(--main-color);
}

.contact-icon { 
  width:48px; 
  height:48px; 
  background:linear-gradient(135deg, var(--main-color), var(--second-color)); 
  border-radius:12px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  flex-shrink:0;
}
.contact-icon i { 
  font-size:24px; 
  color:#fff; 
}

.contact-details h4 { 
  font-size:18px; 
  font-weight:600; 
  color:var(--text-color); 
  margin-bottom:4px; 
}
.contact-details a { 
  color:var(--second-color); 
  text-decoration:none; 
  font-weight:500; 
  display:block; 
  margin-bottom:4px; 
}
.contact-details a:hover { 
  color:var(--main-color); 
}
.contact-details span { 
  color:var(--muted); 
  font-size:14px; 
  display:block; 
}

.contact-badges { 
  display:flex; 
  gap:12px; 
  flex-wrap:wrap; 
}
.contact-badges .badge { 
  background:#fff; 
  border:1px solid #e2e8f0; 
  color:var(--text-color); 
  font-size:13px; 
  padding:8px 12px; 
  border-radius:20px; 
  display:flex; 
  align-items:center; 
  gap:6px; 
  font-weight:500;
}
.contact-badges .badge i { 
  color:var(--main-color); 
  font-size:16px; 
}

/* Formulaire de contact */
.contact-form-container { 
  background:#fff; 
  border:1px solid #e2e8f0; 
  border-radius:20px; 
  padding:40px; 
  box-shadow:0 20px 40px rgba(0,0,0,0.08); 
  position:relative;
}
.contact-form-container::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, var(--second-color), var(--main-color));
}

.form-header { 
  margin-bottom:32px; 
  text-align:center; 
}
.form-header h3 { 
  font-size:24px; 
  font-weight:700; 
  color:var(--text-color); 
  margin-bottom:8px; 
}
.form-header p { 
  color:var(--muted); 
  font-size:16px; 
}

.form-fields { 
  margin-bottom:24px; 
}
.field-group { 
  display:grid; 
  grid-template-columns:1fr 1fr; 
  gap:16px; 
  margin-bottom:8px; 
}
.field-group .field { 
  margin-bottom:0; 
}
.field { 
  margin-bottom:20px; 
}
.field label { 
  display:block; 
  margin-bottom:8px; 
  font-weight:600; 
  color:var(--text-color); 
  font-size:14px; 
}
.field input, .field textarea, .field select { 
  width:100%; 
  padding:14px 16px; 
  border:2px solid #e2e8f0; 
  border-radius:12px; 
  outline:none; 
  font-size:15px; 
  transition:all 0.3s ease; 
  background:#fff;
}
.field input:focus, .field textarea:focus, .field select:focus { 
  border-color:var(--second-color); 
  box-shadow:0 0 0 4px rgba(77,113,183,0.1); 
  transform:translateY(-1px);
}
.field textarea { 
  resize:vertical; 
  min-height:100px; 
}
.field select { 
  cursor:pointer; 
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); 
  background-position:right 12px center; 
  background-repeat:no-repeat; 
  background-size:16px; 
  padding-right:40px; 
  appearance:none; 
  -webkit-appearance:none; 
  -moz-appearance:none; 
}

.error { 
  display:block; 
  color:#dc2626; 
  font-size:12px; 
  min-height:16px; 
  margin-top:6px; 
  font-weight:500; 
}

.btn-large { 
  width:100%; 
  padding:16px 24px; 
  font-size:16px; 
  font-weight:600; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:8px; 
  margin-bottom:16px; 
}

.form-note { 
  text-align:center; 
  color:var(--muted); 
  font-size:13px; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  gap:6px; 
}
.form-note i { 
  color:var(--second-color); 
  font-size:16px; 
}

/* FOOTER */
.footer { background:#0b1022; color:#cbd5e1; padding:36px 10%; margin-top:56px; border-top:1px solid #1f2a44; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-content { display:flex; flex-direction:column; gap:16px; }
.footer a { color:#cbd5e1; text-decoration:none; }
.footer a:hover { color:#fff; }
.footer-nav { display:flex; flex-wrap:wrap; gap:8px 14px; }

/* FOOTER SOCIAL */
.footer-social { display:flex; gap:20px; flex-wrap:wrap; }
.footer-social a { 
  display:flex; 
  align-items:center; 
  gap:8px; 
  padding:8px 12px; 
  border-radius:8px; 
  transition:all 0.3s ease;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { 
  background:rgba(255,255,255,0.1); 
  transform:translateY(-2px);
  border-color:rgba(255,255,255,0.2);
}
.footer-social i { font-size:18px; }
.footer-social span { font-size:14px; font-weight:500; }

/* REVEAL ANIMATIONS - Optimized */
[data-reveal] { 
  opacity: 1 !important; 
  transform: translateY(0) !important; 
  transition: opacity 0.4s ease, transform 0.4s ease; 
}
[data-reveal].visible { 
  opacity: 1 !important; 
  transform: translateY(0) !important; 
}

/* Ensure all sections are visible by default */
section { 
  display: block !important; 
  visibility: visible !important;
  opacity: 1 !important;
}

/* GENERIC SECTIONS (legacy) */
section { padding:96px max(10%, calc((100% - 1200px) / 2)); }
section h2 { font-size:36px; margin-bottom:20px; color:var(--text-color); }
.expertise ul { list-style-type:disc; margin-left:20px; }
.expertise li { margin-bottom:12px; font-size:17px; color:var(--text-color); }
.contact a { color:var(--main-color); text-decoration:none; }
.contact a:hover { color:var(--second-color); }

/* RESPONSIVE */
@media (max-width:1200px) {
  .cards-grid { 
    grid-template-columns:repeat(2,1fr); 
    gap: 20px;
  }
  .portfolio-grid { grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); }
  .card-illustration { height:180px; }
}
@media (max-width: 900px) {
  .cards-grid { 
    grid-template-columns: 1fr; 
    gap: 18px;
  }
  .card {
    min-height: auto;
  }
  .card-illustration { 
    height:170px; 
  }
}
@media (max-width:760px) {
  .card-illustration { height:160px; }
}

@media (max-width:1024px) {
  .about-grid { grid-template-columns:1fr 1fr; }
  .skills-grid { grid-template-columns:repeat(2,1fr); }
  .skill-card { padding:20px; gap:16px; }
  .skill-icon { width:50px; height:50px; }
  .skill-icon i { font-size:24px; }
  .skill-content h3 { font-size:16px; }
  .testi-grid { grid-template-columns:1fr; }
  .testi { padding:20px; }
  .testi-header { flex-direction:column; text-align:center; gap:12px; }
  .testi-avatar { max-width: 480px; height: 280px; }
}
/* Téléphones : une seule colonne (doit rester après le bloc 1024px ci-dessus, qui sinon l'écrase). */
@media (max-width:640px) {
  .about-grid, .skills-grid { grid-template-columns:1fr; }
  .portfolio-grid, .contact-container { grid-template-columns:minmax(0, 1fr); }
  .contact-container iframe { max-width:100%; }
}

/* Styles dupliqués supprimés - voir plus haut dans le fichier */

/* Portfolio filter hidden state */
.work.hidden { 
  display: none !important; 
  opacity: 0; 
  transform: scale(0.8); 
  transition: all 0.3s ease; 
}
.work-link-row i { font-size:16px; }

/* Skill card illustrations */
.skill-card { position:relative; }
.skill-illustration { 
  width:100%; 
  height:180px; 
  border-radius:12px; 
  overflow:hidden; 
  margin-bottom:12px; 
  background:linear-gradient(135deg, #f8fafc, #eef2f7);
  display:flex;
  align-items:center;
  justify-content:center;
  will-change:transform;
}
.skill-illustration img { 
  width:100%; 
  height:100%; 
  object-fit:cover; 
  display:block; 
  transition:transform 0.2s ease;
  border-radius:12px;
  will-change:transform;
  transform:translateZ(0);
}
.skill-card:hover .skill-illustration img { transform:scale(1.02); }

/* Optimisation du chargement des images */
.skill-illustration img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-illustration img[loading="lazy"].loaded {
  opacity: 1;
}

@media (max-width:1200px) {
  .skill-illustration { height:150px; }
}
@media (max-width:760px) {
  .skill-illustration { height:140px; }
}