/* ============================================================
   POLYSCRIBE — CSS PARTAGÉ
   Utilisé par index.html + toutes les landing pages cibles
   ============================================================ */

:root {
  --navy:      #003366;
  --navy-dark: #002244;
  --navy-light:#0a4a8c;
  --navy-pale: #e8eef5;
  --gold:      #c8a96e;
  --gold-light:#e8c98e;
  --white:     #ffffff;
  --off-white: #f8f7f4;
  --text:      #1a2035;
  --text-muted:#6b7280;
  --border:    rgba(0,51,102,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ── NAVBAR ── */
#navbar { position:fixed; top:0; left:0; right:0; z-index:1000; padding:1.2rem 2rem; display:flex; align-items:center; justify-content:space-between; transition:all 0.4s ease; }
#navbar.scrolled { background:rgba(255,255,255,0.97); backdrop-filter:blur(10px); box-shadow:0 1px 30px rgba(0,51,102,0.1); padding:0.8rem 2rem; }
.nav-brand { font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:700; color:rgba(255,255,255,0.9); text-decoration:none; letter-spacing:0.02em; transition:color 0.3s; }
#navbar.scrolled .nav-brand { color:var(--navy); }
.nav-links { display:flex; list-style:none; gap:2.5rem; align-items:center; }
.nav-links a { font-size:0.8rem; font-weight:600; text-transform:uppercase; letter-spacing:0.12em; color:rgba(255,255,255,0.8); text-decoration:none; transition:color 0.3s; position:relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gold); transition:width 0.3s; }
.nav-links a:hover::after { width:100%; }
.nav-links a:hover { color:#fff; }
#navbar.scrolled .nav-links a { color:var(--text-muted); }
#navbar.scrolled .nav-links a:hover { color:var(--navy); }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; flex-direction:column; gap:5px; padding:4px; }
.nav-toggle span { display:block; width:24px; height:2px; background:rgba(255,255,255,0.9); transition:all 0.3s; }
#navbar.scrolled .nav-toggle span { background:var(--navy); }
@media(max-width:768px){
  .nav-toggle{display:flex;}
  .nav-links{position:fixed;top:0;right:-100%;width:75vw;max-width:300px;height:100vh;background:var(--white);flex-direction:column;justify-content:center;gap:2rem;padding:2rem;transition:right 0.4s ease;box-shadow:-10px 0 40px rgba(0,0,0,0.1);}
  .nav-links.open{right:0;}
  .nav-links a{color:var(--navy)!important;font-size:1rem;}
}

/* ── BOUTONS ── */
.btn { display:inline-flex; align-items:center; gap:0.5rem; padding:0.85rem 2rem; border-radius:3px; font-size:0.8rem; font-weight:600; text-transform:uppercase; letter-spacing:0.1em; text-decoration:none; transition:all 0.3s ease; cursor:pointer; border:none; }
.btn-primary { background:var(--gold); color:var(--navy-dark); }
.btn-primary:hover { background:var(--gold-light); transform:translateY(-2px); box-shadow:0 8px 25px rgba(200,169,110,0.4); }
.btn-outline { background:transparent; color:rgba(255,255,255,0.9); border:1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.9); color:#fff; transform:translateY(-2px); }
.btn-outline-dark { background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn-outline-dark:hover { background:var(--navy); color:#fff; transform:translateY(-2px); }

/* ── LAYOUT ── */
section { padding:7rem 2rem; }
.container { max-width:1100px; margin:0 auto; }

/* ── TYPOGRAPHIE SECTIONS ── */
.section-label { font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.2em; color:var(--gold); margin-bottom:0.75rem; }
.section-title { font-family:'Playfair Display',serif; font-size:clamp(1.8rem,4vw,2.8rem); font-weight:700; line-height:1.15; color:var(--navy); margin-bottom:1.5rem; }
.section-title.light { color:var(--white); }
.divider { width:50px; height:3px; background:var(--gold); margin:0 auto 2.5rem; }
.divider.left { margin:0 0 2.5rem; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.7s ease,transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1{transition-delay:0.1s;} .reveal-delay-2{transition-delay:0.2s;} .reveal-delay-3{transition-delay:0.3s;} .reveal-delay-4{transition-delay:0.4s;}

/* ── FOOTER ── */
footer { background:var(--navy-dark); color:rgba(255,255,255,0.5); text-align:center; padding:2rem; font-size:0.82rem; }
footer a { color:rgba(255,255,255,0.5); text-decoration:none; transition:color 0.2s; }
footer a:hover { color:var(--gold); }

/* ── MODAL ── */
.modal-overlay { display:none; position:fixed; inset:0; z-index:2000; background:rgba(0,22,44,0.75); backdrop-filter:blur(4px); align-items:center; justify-content:center; padding:1rem; }
.modal-overlay.open { display:flex; }
.modal-box { background:var(--white); border-radius:8px; padding:2.5rem; max-width:600px; width:100%; max-height:80vh; overflow-y:auto; position:relative; }
.modal-box h2 { font-family:'Playfair Display',serif; color:var(--navy); margin-bottom:1.5rem; font-size:1.5rem; }
.modal-box p { font-size:0.88rem; line-height:1.7; margin-bottom:0.7rem; color:var(--text-muted); }
.modal-box p strong { color:var(--text); }
.modal-close { position:absolute; top:1.2rem; right:1.2rem; background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--text-muted); transition:color 0.2s; width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
.modal-close:hover { color:var(--navy); }

/* ── LANDING PAGES — COMPOSANTS COMMUNS ── */

/* Hero landing */
.lp-hero { position:relative; min-height:70vh; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--navy-dark); padding-top:80px; }
.lp-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0.25; }
.lp-hero-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(0,34,68,0.9) 0%,rgba(0,51,102,0.65) 100%); }
.lp-hero-content { position:relative; z-index:2; text-align:center; padding:3rem 2rem; max-width:860px; }
.lp-hero-icon { width:80px; height:80px; border:2px solid rgba(200,169,110,0.5); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 2rem; }
.lp-hero-icon i { font-size:2rem; color:var(--gold); }
.lp-hero-label { font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.25em; color:var(--gold); margin-bottom:1rem; }
.lp-hero-title { font-family:'Playfair Display',serif; font-size:clamp(2rem,5vw,3.2rem); font-weight:700; color:#fff; line-height:1.15; margin-bottom:1.2rem; }
.lp-hero-sub { font-size:clamp(1rem,2.5vw,1.2rem); color:rgba(255,255,255,0.78); line-height:1.7; margin-bottom:2.5rem; max-width:680px; margin-left:auto; margin-right:auto; }
.lp-hero-cta { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; }

/* Intro narrative */
.lp-intro { background:var(--off-white); }
.lp-intro-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:4rem; align-items:center; }
.lp-intro-text p { color:var(--text-muted); line-height:1.85; margin-bottom:1.2rem; font-size:1rem; }
.lp-intro-text p strong { color:var(--text); }
.lp-intro-visual { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.lp-stat { background:var(--white); border:1px solid var(--border); border-radius:6px; padding:1.8rem 1.2rem; text-align:center; transition:all 0.3s; }
.lp-stat:hover { border-color:var(--navy); transform:translateY(-3px); box-shadow:0 10px 30px rgba(0,51,102,0.08); }
.lp-stat-num { font-family:'Playfair Display',serif; font-size:2.2rem; font-weight:700; color:var(--navy); line-height:1; margin-bottom:0.4rem; }
.lp-stat-label { font-size:0.78rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.08em; }
@media(max-width:768px){ .lp-intro-grid{grid-template-columns:1fr;gap:2.5rem;} }

/* Services spécifiques */
.lp-services { background:var(--white); }
.lp-services-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1.5rem; margin-top:3.5rem; }
.lp-service-card { border:1px solid var(--border); border-radius:8px; padding:2.2rem 1.8rem; position:relative; overflow:hidden; transition:all 0.35s; }
.lp-service-card::after { content:''; position:absolute; top:0; left:0; width:3px; height:0; background:var(--gold); transition:height 0.35s; }
.lp-service-card:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(0,51,102,0.1); border-color:rgba(0,51,102,0.2); }
.lp-service-card:hover::after { height:100%; }
.lp-service-card-icon { width:52px; height:52px; background:var(--navy-pale); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:1.2rem; transition:all 0.3s; }
.lp-service-card:hover .lp-service-card-icon { background:var(--navy); }
.lp-service-card-icon i { font-size:1.4rem; color:var(--navy); transition:color 0.3s; }
.lp-service-card:hover .lp-service-card-icon i { color:var(--gold); }
.lp-service-card h3 { font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:600; color:var(--navy); margin-bottom:0.6rem; }
.lp-service-card p { font-size:0.88rem; color:var(--text-muted); line-height:1.65; }

/* Section "Pourquoi Polyscribe" */
.lp-why { background:var(--navy); }
.lp-why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; margin-top:3.5rem; }
.lp-why-card { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:8px; padding:2rem 1.5rem; text-align:center; transition:all 0.3s; }
.lp-why-card:hover { background:rgba(255,255,255,0.09); border-color:rgba(200,169,110,0.35); transform:translateY(-3px); }
.lp-why-card i { font-size:2rem; color:var(--gold); margin-bottom:1rem; display:block; }
.lp-why-card h3 { font-family:'Playfair Display',serif; font-size:1.05rem; font-weight:600; color:#fff; margin-bottom:0.6rem; }
.lp-why-card p { font-size:0.86rem; color:rgba(255,255,255,0.65); line-height:1.65; }
@media(max-width:768px){ .lp-why-grid{grid-template-columns:1fr;} }

/* Section SEO texte long */
.lp-seo { background:var(--off-white); }
.lp-seo p { margin-bottom:1.2rem; color:var(--text-muted); line-height:1.85; font-size:0.98rem; max-width:820px; }
.lp-seo h3 { font-family:'Playfair Display',serif; font-size:1.2rem; font-weight:600; color:var(--navy); margin-top:2.5rem; margin-bottom:0.75rem; padding-bottom:0.4rem; border-bottom:1px solid var(--border); }

/* CTA bande finale */
.lp-cta-band { background:var(--navy-dark); text-align:center; padding:5rem 2rem; }
.lp-cta-band h2 { font-family:'Playfair Display',serif; font-size:clamp(1.6rem,3.5vw,2.4rem); color:#fff; margin-bottom:1rem; }
.lp-cta-band p { color:rgba(255,255,255,0.7); margin-bottom:2.5rem; font-size:1rem; max-width:580px; margin-left:auto; margin-right:auto; }
.lp-cta-group { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; }

/* Breadcrumb */
.breadcrumb { background:var(--navy); padding:0.8rem 2rem; font-size:0.78rem; }
.breadcrumb-inner { max-width:1100px; margin:0 auto; display:flex; gap:0.5rem; align-items:center; color:rgba(255,255,255,0.5); }
.breadcrumb-inner a { color:rgba(255,255,255,0.5); text-decoration:none; transition:color 0.2s; }
.breadcrumb-inner a:hover { color:var(--gold); }
.breadcrumb-inner span { color:rgba(255,255,255,0.3); }
.breadcrumb-inner .current { color:var(--gold); }

/* Scroll indicator */
.scroll-indicator { position:absolute; bottom:2.5rem; left:50%; transform:translateX(-50%); z-index:2; animation:bounce 2s infinite; opacity:0.6; }
.scroll-indicator span { display:block; width:1px; height:60px; background:linear-gradient(to bottom,transparent,rgba(255,255,255,0.8)); margin:0 auto; }

@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(8px);} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-30px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
