/* ==========================================================================
   Grafic7 - feuille de style principale
   ========================================================================== */

:root {
  --red: #E31E24;
  --red-dark: #B8181D;
  --grey: #B1B1B1;
  --grey-light: #F4F4F5;
  --grey-lighter: #FAFAFA;
  --black: #1A1A1A;
  --black-soft: #222222;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.16);
  --font-head: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden; /* keeps the off-canvas mobile menu (translated off-screen) from
                         expanding the page's scrollable width and de-syncing mobile taps */
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 0.5em; line-height: 1.15; }
p { margin: 0 0 1em; color: #4a4a4a; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; border-radius: 999px; border: 2px solid transparent;
  padding: 13px 28px; font-size: 0.95rem; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227,30,36,0.3); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--black); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--black);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  position: relative; overflow: hidden;
}
.logo-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--red) 0%, transparent 55%); }
.logo-text .accent { color: var(--red); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--black-soft); position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .2s ease; }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 6px; font-size: 0.8rem; font-weight: 700; }
.lang-switch a { padding: 4px 8px; border-radius: 6px; color: #888; touch-action: manipulation; }
.lang-switch a.active { background: var(--black); color: #fff; }
.lang-switch-mobile { display: none; }

.nav-toggle {
  display: none; position: relative; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; background: none; border: none; padding: 0;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; z-index: 210;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--black); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, width .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }
.nav-mobile-cta { display: none; }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--black) 0%, #2b2b2b 60%, var(--black) 100%);
  color: #fff; padding: 110px 0 130px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(227,30,36,0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(177,177,177,0.15), transparent 40%);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.hero-subtitle { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 560px; }
.hero-cta { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* --- Sections generales --- */
.section { padding: 90px 0; }
.section-alt { background: var(--grey-lighter); }
.section-dark { background: var(--black); color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tag {
  display: inline-block; font-weight: 800; color: var(--red); font-size: 0.85rem;
  border: 2px solid var(--red); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.tag-light { color: #fff; border-color: rgba(255,255,255,0.5); }

.grid { display: grid; gap: 26px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04); transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; background: rgba(227,30,36,0.1);
  color: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: 0.94rem; margin: 0; }

/* --- About / process --- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.about-text p { white-space: pre-line; font-size: 1.02rem; }
.process { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.process h3 { font-size: 1.15rem; margin-bottom: 20px; }
.process-list li { display: flex; gap: 16px; margin-bottom: 22px; }
.process-list li:last-child { margin-bottom: 0; }
.process-list strong { display: block; margin-bottom: 4px; font-family: var(--font-head); }
.process-list p { margin: 0; font-size: 0.92rem; }
.step {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}

/* --- Gallery --- */
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--black), #3a3a3a);
  position: relative; overflow: hidden;
}
.gallery-item::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: overlay;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px);
}
.gallery-item.ph-2, .gallery-item.ph-5 { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.gallery-item.ph-3, .gallery-item.ph-6 { background: linear-gradient(135deg, var(--grey), #8f8f8f); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.contact-list { margin-top: 26px; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list strong { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--red); }

.contact-form { color: var(--black); }
.form-row { margin-bottom: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row-2 .form-row { margin-bottom: 0; }
.contact-form label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid #e2e2e2;
  font-family: inherit; font-size: 0.95rem; background: #fcfcfc; transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
}
.form-required-note { font-size: 0.78rem; color: var(--grey); margin: 10px 0 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; }
.form-alert.success { background: #e6f6ea; color: #1e7d3c; }
.form-alert.error { background: #fdecec; color: var(--red-dark); }

/* --- Footer --- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.7); padding: 46px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-footer .logo { color: #fff; }
.footer-tagline { margin: 8px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-meta { text-align: right; font-size: 0.82rem; }
.footer-meta p { margin: 2px 0; color: rgba(255,255,255,0.55); }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease; z-index: 120; border: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 960px) {
  .services-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 82vw);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 96px 26px 26px; gap: 4px; overflow-y: auto;
    box-shadow: -12px 0 40px rgba(0,0,0,0.18);
    transform: translateX(100%); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    z-index: 190;
    height: 100vh;
  }
  .main-nav.open {
    transform: translateX(0); opacity: 1; visibility: visible;
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear 0s;
  }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 1.02rem; touch-action: manipulation; }
  .nav-toggle { display: flex; }
  .header-actions .lang-switch-desktop { display: none; }
  .header-actions .btn-sm { display: none; }
  .lang-switch-mobile { display: flex; gap: 10px; margin: 18px 0 6px; }
  .lang-switch-mobile a {
    flex: 1; text-align: center; padding: 10px 8px; border: 1.5px solid #e2e2e2; border-radius: 8px;
    font-weight: 700; color: var(--black-soft);
  }
  .lang-switch-mobile a.active { background: var(--black); border-color: var(--black); color: #fff; }
  .nav-mobile-cta { display: flex; margin-top: 10px; }
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 90px 0 90px; }
  .footer-inner { text-align: center; justify-content: center; }
  .footer-meta { text-align: center; }
}

body.nav-open { overflow: hidden; }
