/* ─── SHARED STYLES — Permis'nGO ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream:   #FFFFFF;
  --ink:     #1B1B3A;
  --accent:  #F09020;
  --accent-lt: #FCD9A8;
  --navy:    #2B2B9E;
  --gray:    #F5F5FA;
  --mid:     #6B6B8A;
  --border:  #E2E2EE;
  --r: 12px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,.08);
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* UTILITIES */
.container { width: min(1360px, 100% - 40px); margin-inline: auto; }
.section-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15; color: var(--ink);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: .02em; cursor: pointer; border: none;
  transition: transform .18s cubic-bezier(.4,0,.2,1),
              background .18s ease,
              box-shadow .25s ease,
              color .18s ease,
              border-color .18s ease;
  will-change: transform;
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #2a2a52; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,26,46,.22); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,26,46,.15); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,0); }
.btn-accent:hover { background: #d87d18; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(240,144,32,.42); }
.btn-danger { background: #fff; color: #b91c1c; border: 1.5px solid #fecaca; }
.btn-danger:hover { background: #fee2e2; border-color: #b91c1c; transform: translateY(-1px); }

/* === Admin responsive (s'applique à toutes les pages /admin/*) === */
@media (max-width: 768px) {
  .admin-header-actions {
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }
  .admin-header-actions .btn {
    font-size: 12px;
    padding: 8px 12px;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r);
}
.table-scroll .admin-table { min-width: 640px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none !important; transition: background .15s ease, color .15s ease; }
}

/* SCROLL REVEAL — fade-in subtil au passage dans le viewport */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }
.reveal-delay-4.is-visible { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* PAGE PROGRESS BAR — fine ligne orange en haut pendant la navigation */
.page-progress {
  position: fixed; top: 0; left: 0;
  height: 2.5px; width: 0%;
  background: var(--accent, #f09020);
  box-shadow: 0 0 10px rgba(240,144,32,.55);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}
.page-progress.loading {
  opacity: 1;
  animation: pageProgressLoad 1.1s cubic-bezier(.22,.61,.36,1) forwards;
}
.page-progress.done {
  width: 100% !important;
  opacity: 0;
  transition: opacity .35s ease .15s, width .25s ease;
  animation: none;
}
@keyframes pageProgressLoad {
  0%   { width: 0%; }
  35%  { width: 38%; }
  70%  { width: 72%; }
  100% { width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  .page-progress { display: none; }
}

/* NAVBAR */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
#navbar.scrolled {
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border); padding: 12px 0;
}
#navbar.solid {
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border); padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { display:flex; align-items:center; }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9);
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s; border-radius:2px;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
#navbar.scrolled .nav-links a, #navbar.solid .nav-links a { color: var(--mid); }
#navbar.scrolled .nav-links a:hover, #navbar.solid .nav-links a:hover,
#navbar.scrolled .nav-links a.active, #navbar.solid .nav-links a.active { color: var(--ink); }
.nav-cta { font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: var(--r); background: var(--accent); color: #fff; border: none; cursor: pointer; transition: all .25s; white-space: nowrap; }
.nav-cta:hover { background: #d87d18; transform: translateY(-1px); }
.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: #fff; transition: background .35s; border-radius: 2px; }
#navbar.scrolled .nav-hamburger span, #navbar.solid .nav-hamburger span { background: var(--ink); }

/* PAGE HERO (sub-pages) */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 12px; }
.page-hero .section-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.page-hero p { font-size: 17px; color: var(--mid); max-width: 560px; line-height: 1.7; }

/* MOBILE NAV */
.nav-mobile {
  display: none; position: fixed; inset: 0; background: var(--cream);
  z-index: 110; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); }
.nav-mobile-close {
  position: fixed; top: 20px; right: 20px; background: #fff; border: 1px solid var(--border);
  cursor: pointer; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08); z-index: 111;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.nav-mobile-close:active { transform: scale(.95); }

/* FOOTER */
footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 56px; }
.footer-brand .logo { display:flex; align-items:center; margin-bottom:16px; }
.footer-brand .logo img { height:32px; filter:brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: border-color .2s, background .2s; }
.footer-social a:hover { border-color: var(--accent); background: rgba(240,144,32,.1); }
.footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.6); fill: none; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 24px 28px; width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
#cookie-banner p { font-size: 13px; color: var(--mid); line-height: 1.55; flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-actions button { padding: 10px 20px; border-radius: var(--r); font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
#cookie-accept { background: var(--ink); color: #fff; }
#cookie-accept:hover { background: #2a2a52; }
#cookie-decline { background: transparent; color: var(--mid); border: 1px solid var(--border); }
#cookie-decline:hover { border-color: var(--ink); color: var(--ink); }

/* FORM STYLES */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--mid); }
.form-group input, .form-group select, .form-group textarea {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r);
  padding: 13px 16px; font-family: var(--font-body); font-size: 15px;
  color: var(--ink); outline: none; transition: border-color .2s; width: 100%; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── TOP URGENCY BANNER ── */
#topbar {
  background: linear-gradient(90deg, var(--ink) 0%, #2a2a52 100%);
  color: #fff; font-size: 12.5px; padding: 9px 0; text-align: center;
  position: relative; z-index: 101;
  letter-spacing: .02em;
}
#topbar strong { color: var(--accent-lt); font-weight: 600; }
#topbar .pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4ADE80; margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: tbpulse 2s infinite;
}
@keyframes tbpulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
#topbar a { color: var(--accent-lt); text-decoration: underline; margin-left: 4px; font-weight: 600; }
body.has-topbar #navbar { top: 36px; }
@media(max-width:600px){
  #topbar { font-size: 11.5px; padding: 8px 12px; }
}

/* ── FLOATING WHATSAPP ── */
.fab-whatsapp {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
  animation: fabbob 3s ease-in-out infinite;
}
.fab-whatsapp:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(37,211,102,.6); }
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
.fab-whatsapp::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(37,211,102,.35); z-index: -1;
  animation: fabring 2s ease-out infinite;
}
@keyframes fabbob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes fabring { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.5);opacity:0} }
@media(max-width:700px){
  .fab-whatsapp { bottom: 86px; right: 16px; width: 54px; height: 54px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }
}

/* ── MOBILE STICKY BAR ── */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  padding: 10px 12px; gap: 8px;
}
.mobile-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 8px; border-radius: var(--r); font-size: 13.5px; font-weight: 600;
  letter-spacing: .02em;
}
.mobile-cta .mc-call { background: var(--ink); color: #fff; }
.mobile-cta .mc-wa { background: #25D366; color: #fff; }
.mobile-cta .mc-form { background: var(--accent); color: #fff; }
.mobile-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-cta .mc-wa svg { width: 18px; height: 18px; }
@media(max-width:700px){
  .mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
  #cookie-banner { bottom: 80px; }
}

/* ============================================================
   SERVICE PAGES — Échange permis, Annulation, Démarches admin, Récup-points
   ============================================================ */
.service-hero { background: var(--ink); padding: 160px 0 80px; }
.service-hero .section-label { color: var(--accent); }
.service-hero .section-title { color: #fff; }
.service-hero p { color: rgba(255,255,255,.7); max-width: 600px; font-size: 17px; line-height: 1.7; margin-top: 20px; }
.service-hero p strong { color: #fff; }
.service-stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.service-stat-val { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #fff; line-height: 1; }
.service-stat-val span { color: var(--accent); font-size: 0.9rem; font-weight: 500; margin-left: 4px; }
.service-stat-label { font-size: 12px; color: rgba(255,255,255,.5); letter-spacing: .06em; margin-top: 6px; text-transform: uppercase; }

.svc-process { padding: 100px 0; background: var(--gray); border-bottom: 1px solid var(--border); }
.svc-process-header { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.svc-process-header .section-title { margin: 8px 0 14px; }
.svc-process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; position: relative; }
.svc-process-list::before { content: ''; position: absolute; top: 28px; left: calc(12.5%); right: calc(12.5%); height: 1px; background: var(--border); z-index: 0; }
.svc-process-step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.svc-process-num { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1.5px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(240,144,32,.18); }
.svc-process-step h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.svc-process-step p { font-size: 13.5px; color: var(--mid); line-height: 1.6; }

.svc-conditions { padding: 100px 0; background: #fff; }
.svc-conditions-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.svc-conditions-text .section-title { margin-bottom: 28px; }
.svc-conditions-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.svc-conditions-list li { padding-left: 28px; position: relative; font-size: 15px; color: var(--mid); line-height: 1.7; }
.svc-conditions-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; font-size: 18px; }
.svc-conditions-list strong { color: var(--ink); font-weight: 600; }
.svc-aside-card { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--r); padding: 28px 30px; }
.svc-aside-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #9a3412; margin: 0 0 14px; }
.svc-aside-card p { font-size: 14px; color: #7c2d12; line-height: 1.65; margin: 0; }
.svc-aside-card p strong { color: #c2410c; font-weight: 700; }

.svc-docs { padding: 100px 0; background: var(--gray); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.svc-docs-header { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.svc-docs-header .section-title { margin: 8px 0 14px; }
.svc-docs-header p { font-size: 14px; color: var(--mid); line-height: 1.6; }
.svc-docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 1000px; margin: 0 auto; }
.svc-doc-item { background: #fff; border-radius: 10px; padding: 18px 22px; border: 1px solid var(--border); }
.svc-doc-item strong { display: block; font-size: 14.5px; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.svc-doc-item span { font-size: 13px; color: var(--mid); line-height: 1.5; }

.svc-faq { padding: 100px 0; background: #fff; }
.svc-faq-header { text-align: center; max-width: 580px; margin: 0 auto 48px; }
.svc-faq-list { max-width: 720px; margin: 0 auto; }
.svc-faq-item { background: var(--gray); border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.svc-faq-q { width: 100%; background: none; border: none; padding: 18px 22px; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: inherit; }
.svc-faq-q svg { width: 18px; height: 18px; stroke: var(--mid); fill: none; stroke-width: 2; transition: transform .2s; flex-shrink: 0; }
.svc-faq-item.open .svc-faq-q svg { transform: rotate(180deg); }
.svc-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.svc-faq-item.open .svc-faq-a { max-height: 500px; }
.svc-faq-a-inner { padding: 0 22px 18px; color: var(--mid); font-size: 14px; line-height: 1.7; }
.svc-faq-a-inner strong { color: var(--ink); font-weight: 600; }
.svc-faq-a-inner a { color: var(--accent); }

.svc-cta { padding: 100px 0 120px; background: var(--ink); }
.svc-cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.svc-cta-inner .section-label { color: var(--accent); }
.svc-cta-inner .section-title { color: #fff; margin: 8px 0 18px; }
.svc-cta-inner p { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.svc-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.svc-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.4); }
.svc-cta .btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }

@media (max-width: 900px) {
  .svc-process-list { grid-template-columns: 1fr 1fr; gap: 36px; }
  .svc-process-list::before { display: none; }
  .svc-conditions-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) { .svc-process-list { grid-template-columns: 1fr; } }

/* ============================================================
   SYSTÈME PHOTO UNIFIÉ — .photo-frame
   - Cadre soigné avec ombre douce, border-radius, hover lift
   - Si l'image charge OK → elle couvre, placeholder caché
   - Si l'image 404 → onerror la cache, le placeholder apparaît
     avec le nom de fichier attendu en monospace
   ============================================================ */

.photo-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
  isolation: isolate;
}

.photo-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .06);
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-pos, center center);
  display: block;
  z-index: 2;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

/* Variante : image entière (pas de crop), fond du cadre visible */
.photo-frame.photo-contain img {
  object-fit: contain;
}
.photo-frame.photo-contain {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.photo-frame:hover img {
  transform: scale(1.03);
}
.photo-frame.photo-contain:hover img {
  transform: scale(1.02);
}

/* Vignette interne subtile pour donner du relief, sans assombrir */
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35),
              inset 0 -60px 80px -60px rgba(0, 0, 0, .15);
  z-index: 3;
}

/* PLACEHOLDER visible si l'image manque */
.photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(240, 144, 32, .04) 14px 15px),
    linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
}

.photo-placeholder-icon {
  width: 38px;
  height: 38px;
  stroke: var(--accent, #f09020);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .7;
}

.photo-placeholder-filename {
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #92400e;
  background: rgba(255, 255, 255, .8);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: .01em;
  border: 1px solid rgba(146, 64, 14, .18);
  word-break: break-all;
  line-height: 1.2;
}

.photo-placeholder-hint {
  font-size: 11.5px;
  color: #b45309;
  max-width: 280px;
  line-height: 1.5;
  opacity: .85;
  font-weight: 500;
}

/* Tailles préréglées (ratio) */
.photo-frame.photo-16-9   { aspect-ratio: 16 / 9; }
.photo-frame.photo-4-3    { aspect-ratio: 4 / 3; }
.photo-frame.photo-3-4    { aspect-ratio: 3 / 4; }
.photo-frame.photo-1-1    { aspect-ratio: 1 / 1; }
.photo-frame.photo-3-2    { aspect-ratio: 3 / 2; }

/* Petits placeholders (cards équipe ronds) — texte plus petit */
.photo-frame.photo-small .photo-placeholder { gap: 8px; padding: 16px; }
.photo-frame.photo-small .photo-placeholder-icon { width: 28px; height: 28px; }
.photo-frame.photo-small .photo-placeholder-filename { font-size: 10.5px; padding: 4px 8px; }
.photo-frame.photo-small .photo-placeholder-hint { font-size: 10.5px; max-width: 200px; }

/* ── PLACEHOLDER "Photo bientôt" propre (visible publiquement) ──
   Utilisé sur page équipe + home editorial-feature.
   Masque les éléments techniques (filename, hint) et affiche un badge propre. */
.team-photo-soon .photo-placeholder.team-placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(240,144,32,.18), transparent 55%),
    linear-gradient(135deg, #fff7ed 0%, #fef3c7 60%, #fde68a 100%);
  gap: 14px;
}
.team-placeholder-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent, #f09020);
  box-shadow: 0 4px 14px rgba(146,64,14,.12);
}
.team-placeholder-avatar svg { width: 30px; height: 30px; stroke: currentColor; fill: none; }
.team-placeholder-badge {
  background: rgba(255,255,255,.95);
  color: #92400e;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid rgba(146,64,14,.18);
  text-align: center;
}
/* Variante petits placeholders */
.team-photo-soon .photo-frame.photo-small .team-placeholder { gap: 10px; }
.team-photo-soon .photo-frame.photo-small .team-placeholder-avatar { width: 52px; height: 52px; }
.team-photo-soon .photo-frame.photo-small .team-placeholder-avatar svg { width: 24px; height: 24px; }
.team-photo-soon .photo-frame.photo-small .team-placeholder-badge { font-size: 10.5px; padding: 4px 9px; }

/* ============================================================
   Pages forfaits dédiées (manuelle, automatique)
   Styles globalisés pour fix bug : les classes utilisées ici
   n'étaient définies que dans index.astro <style is:global>,
   donc non chargées quand on arrivait direct sur ces pages.
   Note : .page-hero générique est défini plus haut (clair).
   Ici on ajoute le style des cards forfaits + sections.
   ============================================================ */

#all-tarifs { padding: 80px 0; background: var(--gray); }

.includes-band { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 28px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.includes-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.includes-title svg { stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.includes-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.includes-list li { font-size: 13.5px; color: var(--mid); padding-left: 20px; position: relative; }
.includes-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.tarif-section { margin-bottom: 40px; }
.tarif-section-header { text-align: center; max-width: 560px; margin: 0 auto 48px; }
.tarif-section-header .section-title { margin: 8px 0 14px; }
.tarif-section-header p { font-size: 14.5px; color: var(--mid); line-height: 1.65; }

.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 36px 30px; position: relative; transition: box-shadow .3s ease, transform .3s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); transform: translateY(-6px); }
.card-featured:hover { transform: translateY(-10px); }
.badge-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.card-type { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }
.card-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.card-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 16px 0; line-height: 1; }
.card-price sup { font-size: 1rem; font-weight: 400; vertical-align: top; margin-top: 6px; display: inline-block; }
.card-divider { height: 1px; background: var(--border); margin: 20px 0; }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; padding: 0; }
.card-features li { font-size: 13px; color: #444; display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; }
.card-features li::before { content: ''; flex-shrink: 0; width: 15px; height: 15px; margin-top: 1px; background: var(--accent); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.card-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: auto; }
.card .btn { width: 100%; justify-content: center; }
.card-link { font-size: 13px; color: var(--mid); text-align: center; text-decoration: none; transition: color .15s; }
.card-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 420px; }
  .card-featured { transform: none; }
  .card-featured:hover { transform: translateY(-4px); }
}

/* FAQ accordéon (pattern click avec .open) — utilisé sur pages forfaits */
#faq { padding: 100px 0; background: #fff; }
#faq .faq-list { max-width: 720px; margin: 0 auto; }
#faq .faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
#faq .faq-q { width: 100%; background: none; border: none; padding: 18px 22px; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-family: inherit; }
#faq .faq-q svg { width: 18px; height: 18px; stroke: var(--mid); fill: none; stroke-width: 2; transition: transform .2s; }
#faq .faq-item.open .faq-q svg { transform: rotate(180deg); }
#faq .faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
#faq .faq-item.open .faq-a { max-height: 400px; }
#faq .faq-a-inner { padding: 0 22px 18px; color: var(--mid); font-size: 14px; line-height: 1.7; }
#faq .faq-a-inner strong { color: var(--ink); }
