@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:       #0f172a;
  --navy-light: #1e293b;
  --blue:       #1e40af;
  --blue-mid:   #2563eb;
  --blue-light: #3b82f6;
  --orange:     #f97316;
  --orange-dk:  #ea6c10;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --text:       #1e293b;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(15,23,42,.10);
  --shadow-lg:  0 10px 40px rgba(15,23,42,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: var(--blue-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-light); }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .6rem; }
h4 { font-size: 1rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
p { margin-bottom: .9rem; color: var(--navy-light); }
p:last-child { margin-bottom: 0; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { color: var(--navy); }
.section-title p { color: var(--muted); font-size: 1.1rem; max-width: 580px; margin: .5rem auto 0; }

.badge { display: inline-block; background: rgba(37,99,235,.1); color: var(--blue-mid); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3rem .8rem; border-radius: 20px; margin-bottom: 1rem; }
.badge-orange { background: rgba(249,115,22,.12); color: var(--orange-dk); }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: .75rem 1.75rem; border-radius: 6px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.35); }
.btn-outline { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.btn-blue { background: var(--blue-mid); color: #fff; }
.btn-blue:hover { background: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HEADER / NAV ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; max-width: 190px; }
.nav-links { display: flex; gap: .25rem; }
.nav-links a { color: var(--navy-light); font-size: .9rem; font-weight: 500; padding: .45rem .9rem; border-radius: 6px; transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--bg); }
.nav-cta { background: #e30613; color: #fff !important; padding: .45rem 1.1rem !important; border-radius: 6px; }
.nav-cta:hover { background: #c0040f !important; color: #fff !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }

/* ── HERO ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--navy); overflow: hidden; padding-top: 68px; }
.hero-bg { position: absolute; inset: 0; background-image: url('../img/hero-bg.jpg'); background-size: cover; background-position: center; opacity: .25; }
.hero-content { position: relative; z-index: 2; max-width: 700px; padding: 5rem 0; }
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content h1 em { color: var(--orange); font-style: normal; }
.hero-content p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 2rem; max-width: 540px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: .4rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; }

/* ── SERVICES CARDS ── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); transition: all .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }
.service-card-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.service-card-icon.blue { background: rgba(37,99,235,.1); }
.service-card-icon.orange { background: rgba(249,115,22,.1); }
.service-card h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .75rem; }
.service-card p { color: var(--muted); }
.service-card .card-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--blue-mid); margin-top: 1.25rem; font-size: .9rem; }
.service-card .card-link:hover { gap: .7rem; }

/* ── STATS ── */
.stats { background: var(--navy); padding: 4rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--orange); line-height: 1; }
.stat-label { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .4rem; }

/* ── PAGE HERO (pages internes) ── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1a2a5e 100%); padding: 8rem 0 4rem; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero .breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 600px; }

/* ── CARDS COMPETENCES ── */
.comp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.comp-card h3 { display: flex; align-items: center; gap: .75rem; color: var(--navy); font-size: 1.1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.comp-card h3 .icon-badge { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.comp-list { display: flex; flex-direction: column; gap: .5rem; }
.comp-list li { display: flex; align-items: flex-start; gap: .65rem; color: var(--text); font-size: .95rem; }
.comp-list li::before { content: '✓'; color: var(--blue-mid); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }

/* ── PARTNER BLOCK ── */
.partner-block { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 2.5rem; display: flex; align-items: center; gap: 2rem; }
.partner-block .partner-icon { width: 64px; height: 64px; background: var(--blue-mid); border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.75rem; }
.partner-block h3 { color: var(--navy); margin-bottom: .4rem; }
.partner-block p { color: var(--muted); margin: 0; }

/* ── BIO SECTION ── */
.bio-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3.5rem; align-items: start; }
.bio-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.bio-photo img { width: 100%; height: 420px; object-fit: cover; }
.bio-tag { display: inline-flex; align-items: center; gap: .5rem; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: .35rem .9rem; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.bio-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; }
.bio-chip { background: rgba(37,99,235,.08); color: var(--blue); border-radius: 20px; padding: .3rem .85rem; font-size: .82rem; font-weight: 600; }
.bio-chip.orange { background: rgba(249,115,22,.1); color: var(--orange-dk); }

/* ── ACHIEVEMENTS ── */
.achievement-item { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.achievement-item:last-child { border-bottom: none; }
.achievement-icon { width: 44px; height: 44px; background: rgba(37,99,235,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.achievement-item h4 { font-size: .95rem; color: var(--navy); margin-bottom: .25rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.achievement-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ── GEAR TABLE ── */
.gear-section { background: var(--bg); border-radius: var(--radius); padding: 2rem; }
.gear-group { margin-bottom: 1.75rem; }
.gear-group:last-child { margin-bottom: 0; }
.gear-group h4 { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.gear-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.gear-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: .3rem .75rem; font-size: .85rem; color: var(--text); }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, var(--navy) 0%, #1a2a5e 100%); padding: 5rem 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.contact-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.contact-card .icon { font-size: 1.75rem; margin-bottom: .75rem; }
.contact-card h3 { color: #fff; font-size: 1rem; margin-bottom: .4rem; }
.contact-card a, .contact-card p { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; }
.contact-card a:hover { color: var(--orange); }

/* ── LEGAL ── */
.legal-content { max-width: 820px; }
.legal-content h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 2.5rem 0 .75rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content p { font-size: .95rem; }
.legal-intro { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 2.5rem; }
.legal-intro p { margin: 0; }
.legal-intro strong { color: var(--navy); }

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .83rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--orange); }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .8rem; padding: 1.5rem .75rem .5rem; }

/* ── CONTACT FORM (dans hero dark) ── */
.contact-form-wrapper { max-width: 720px; margin: 2.5rem auto 0; }
.contact-form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 2rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.contact-form input,
.contact-form textarea { width: 100%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: .65rem 1rem; color: #fff; font-family: inherit; font-size: .95rem; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); gap: .25rem; }
  .nav-links.open { display: flex; background: #fff; border-top: 1px solid var(--border); }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo img { height: 300px; }
  .contact-cards { grid-template-columns: 1fr; }
  .partner-block { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { padding: 3rem 0; }
  .btn-group { flex-direction: column; }
}

/* ── GALLERY HOVER PREVIEW ── */
.photo-hover-overlay { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.8); align-items:center; justify-content:center; pointer-events:none; }
.photo-hover-overlay.visible { display:flex; }
.photo-hover-overlay img { max-width:90vw; max-height:90vh; width:auto; height:auto; object-fit:contain; border-radius:6px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
