:root {
  --rouge:   #E8212A;
  --jaune:   #FFD600;
  --bleu:    #1565C0;
  --blanc:   #FFFFFF;
  --texte:   #1A1A2E;
  --gris-bg: #F9F9F9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--texte);
  background: var(--blanc);
}

h1, h2, h3, h4, nav a, .btn {
  font-family: 'Baloo 2', cursive;
}

/* ===== HEADER ===== */
header {
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img { height: 52px; width: 52px; object-fit: contain; }

.logo-text {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--rouge);
  line-height: 1.15;
}

.logo-text span { color: var(--bleu); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  text-decoration: none;
  color: var(--texte);
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 50px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { background: var(--jaune); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f3f3;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.nav-social a:hover { background: var(--jaune); transform: scale(1.1); }
.nav-social svg { width: 17px; height: 17px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--texte);
  border-radius: 3px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--blanc);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 16px 24px 24px;
  z-index: 99;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu ul a {
  display: block;
  padding: 11px 16px;
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  color: var(--texte);
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.2s;
}

.mobile-menu ul a:hover { background: var(--jaune); }

.mobile-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f3f3;
  transition: background 0.2s;
}

.mobile-social a:hover { background: var(--jaune); }
.mobile-social svg { width: 18px; height: 18px; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--rouge); color: var(--blanc); box-shadow: 0 4px 16px rgba(232,33,42,0.3); }
.btn-secondary { background: var(--blanc); color: var(--texte); border: 2px solid var(--jaune); }

/* ===== PAGE HERO (internes) ===== */
.page-hero {
  background: linear-gradient(135deg, #FFF9E6, #FFF0F0);
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/logo.jpeg') center/40% no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  position: relative;
}

.page-hero h1 .rouge { color: var(--rouge); }
.page-hero h1 .bleu  { color: var(--bleu); }

.page-hero p {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 14px auto 0;
  line-height: 1.7;
  position: relative;
}

/* ===== SECTION GÉNÉRIQUE ===== */
.section { padding: 70px 24px; }
.section-bg { background: var(--gris-bg); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  background: var(--jaune);
  color: var(--texte);
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
}

.section-desc {
  font-size: 1rem;
  color: #666;
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.7;
}

/* ===== GRILLE PHOTOS ===== */
.photo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 4/3;
}

.photo-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.16); }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.photo-card:hover img { transform: scale(1.05); }

.photo-card .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--blanc);
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 1rem;
  padding: 20px 16px 14px;
}

/* ===== FOOTER ===== */
footer {
  background: #111;
  color: #aaa;
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #888;
  margin-top: 10px;
  line-height: 1.6;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover { background: var(--rouge); transform: scale(1.1); }
.footer-social svg { width: 17px; height: 17px; fill: var(--blanc); }

.footer-col h4 {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--jaune);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul a {
  color: #888;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--blanc); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 0.82rem;
  color: #555;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* ===== SECTION RÉALISATIONS (LOGOS) ===== */

.galerie-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 20px !important;
  padding: 10px 0 !important;
}

.galerie-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.client-logo-box {
  width: 100% !important;
  height: 250px !important;
  background: white !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
}

.client-logo-box img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.client-name {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  color: var(--texte) !important;
  font-size: 0.95rem !important;
  margin: 0 !important;
  padding: 0 !important;
}