/* ============================================================
   CloisolSud – Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── VARIABLES ─── */
:root {
  --ink:         #1a1a18;
  --ink-2:       #3d3d38;
  --ink-3:       #7a7a72;
  --paper:       #f5f3ee;
  --paper-2:     #eceae3;
  --paper-3:     #e0ddd4;
  --accent:      #c85c28;
  --accent-dark: #9e421a;
  --accent-light:#f0e8e0;
  --steel:       #2c3340;
  --white:       #ffffff;
  --radius:      4px;
  --radius-lg:   10px;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container:   1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── UTILITAIRES ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 100px 0; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: white; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  transition: gap var(--transition);
}
.btn-ghost::after { content: '→'; }
.btn-ghost:hover { gap: 14px; }

/* ─── NAVIGATION ─── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper-3);
  transition: border-color var(--transition);
}
#site-header.scrolled { border-bottom-color: rgba(0,0,0,0.08); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.site-logo-text span { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu .nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 500;
}
.nav-menu .nav-cta:hover { background: var(--accent); color: white; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--transition);
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 88px;
  background: var(--paper);
  z-index: 99;
  padding: 40px;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--paper-3);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
  width: fit-content;
  margin-bottom: 32px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(44px, 5.5vw, 74px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.hero-desc {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--paper-3);
}
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}
.hero-stat-label { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.hero-right {
  background: var(--steel);
  position: relative;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 60px
  );
}

.hero-right-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px;
}

.hero-art-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.15;
}
.hero-art-wrap svg { width: 100%; height: 100%; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-card-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}
.qualibat-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 92, 40, 0.2);
  border: 1px solid rgba(200, 92, 40, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius);
  color: #f4a070;
  font-size: 13px;
  font-weight: 500;
}

/* ─── ENTREPRISE ─── */
.section-entreprise { background: var(--steel); }

.entreprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-entreprise .section-label { color: #f4a070; }
.section-entreprise .section-label::before { background: #f4a070; }
.section-entreprise .section-title { color: white; }
.section-entreprise .section-sub { color: rgba(255,255,255,0.55); }

.entreprise-text {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-top: 28px;
  font-weight: 300;
}

.entreprise-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.e-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background var(--transition);
}
.e-card:hover { background: rgba(255,255,255,0.09); }
.e-card.full { grid-column: span 2; }

.e-card-icon {
  font-size: 22px;
  margin-bottom: 14px;
  display: block;
}
.e-card-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: white;
  display: block;
  letter-spacing: -1px;
}
.e-card-label { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 4px; }
.e-card-heading {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
}

.certif-row { display: flex; gap: 10px; flex-wrap: wrap; }
.certif-pill {
  background: rgba(200,92,40,0.2);
  border: 1px solid rgba(200,92,40,0.35);
  color: #f4a070;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ─── SERVICES ─── */
.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--paper-3);
  border: 2px solid var(--paper-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--paper);
  padding: 40px 36px;
  transition: background var(--transition);
  display: block;
  color: inherit;
}
.service-card:hover { background: var(--white); }

.service-icon {
  width: 48px; height: 48px;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: border-color var(--transition), background var(--transition);
}
.service-card:hover .service-icon {
  border-color: var(--accent);
  background: var(--accent-light);
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--ink-2); fill: none; stroke-width: 1.5; }

.service-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.service-desc { font-size: 14px; color: var(--ink-3); line-height: 1.65; }
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ─── SECTEURS ─── */
.section-partenaires { background: var(--paper-2); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.sector-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--paper-3);
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.sector-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.sector-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.sector-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ─── GALERIE ─── */
.galerie-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item {
  background: var(--steel);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(20%);
}
.gallery-item:hover img { transform: scale(1.06); filter: grayscale(0%); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-label { font-size: 13px; color: white; font-weight: 500; }

/* ─── CONTACT ─── */
.section-contact { background: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.section-contact .section-label { color: #f4a070; }
.section-contact .section-label::before { background: #f4a070; }
.section-contact .section-title { color: white; }
.section-contact .section-sub { color: rgba(255,255,255,0.5); font-size: 16px; }

.contact-infos { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-info-label {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.contact-info-value { font-size: 15px; color: rgba(255,255,255,0.75); }

.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 28px;
}

/* Styles pour Contact Form 7 */
.wpcf7-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-form label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 500;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.25); }
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
}
.wpcf7-form select option { background: var(--ink); color: white; }
.wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.wpcf7-form input[type="submit"]:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ─── FOOTER ─── */
#site-footer {
  background: #111110;
  padding: 48px 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: rgba(255,255,255,0.7);
}
.footer-logo span { color: var(--accent); }
.footer-nav { display: flex; gap: 28px; list-style: none; }
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-nav a:hover { color: rgba(255,255,255,0.65); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up    { opacity: 0; animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards; }
.delay-1    { animation-delay: 0.1s; }
.delay-2    { animation-delay: 0.2s; }
.delay-3    { animation-delay: 0.3s; }
.delay-4    { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 80px 40px; }
  .entreprise-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 220px);
  }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .hero-left { padding: 60px 24px; }
  .hero-stats { gap: 28px; }
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item { height: 220px; }
  .gallery-item:first-child { grid-column: span 1; }
  .entreprise-cards { grid-template-columns: 1fr; }
  .e-card.full { grid-column: span 1; }
  .wpcf7-form .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .galerie-intro { flex-direction: column; align-items: flex-start; }
  #site-footer { padding: 48px 24px; }
}
