/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --navy:   #2E4057;
  --gold:   #C9994E;
  --gold-light: #E8C88A;
  --cream:  #FAFAF8;
  --light:  #F4F1ED;
  --white:  #FFFFFF;
  --text:   #1A1A1A;
  --muted:  #6B6B6B;
  --border: #E5E0D8;
  --success:#4A7C59;
  --error:  #C0392B;

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius: 8px;
  --shadow: 0 2px 20px rgba(46,64,87,.08);
  --shadow-md: 0 4px 32px rgba(46,64,87,.12);

  --transition: .2s ease;
  --max-w: 1100px;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typographie ───────────────────────────────────────────────────────────── */
h1,h2,h3,h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 600;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }

.serif { font-family: var(--font-serif); }
.muted { color: var(--muted); font-size: .9rem; }

/* ─── Layout helpers ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 58ch;
}

/* ─── Boutons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: #3a5070;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,64,87,.25);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #b8853a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,153,78,.3);
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}
.nav-logo-tag {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: .85rem;
  padding: 9px 20px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #3a5472 60%, #4a6a8a 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,153,78,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,153,78,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: rgba(201,153,78,.2);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255,255,255,.8);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  max-width: 50ch;
}

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(8px);
}
.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-card ul { display: flex; flex-direction: column; gap: 14px; }
.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: rgba(255,255,255,.8);
}
.hero-card li::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  min-width: 18px;
  background: var(--gold);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.hero-badge {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201,153,78,.15);
  border: 1px solid rgba(201,153,78,.3);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--gold-light);
}

/* ─── Section intro ─────────────────────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-visual {
  background: linear-gradient(145deg, var(--light), var(--border));
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
}
.intro-visual .sol-icon {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.intro-visual p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 100%;
}

/* ─── Services cards ────────────────────────────────────────────────────────── */
.services-bg { background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.service-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(201,153,78,.15), rgba(201,153,78,.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--gold); }

.service-card h3 { font-size: 1.1rem; color: var(--navy); }
.service-card p  { font-size: .9rem; color: var(--muted); flex: 1; max-width: 100%; }

/* ─── Checklist ─────────────────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
}
.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  min-width: 22px;
  background: var(--navy);
  border-radius: 50%;
  margin-top: 1px;
}
.check-icon svg { width: 12px; height: 12px; color: white; }

/* ─── Credit impot banner ───────────────────────────────────────────────────── */
.impot-banner {
  background: linear-gradient(135deg, var(--navy), #3a5472);
  color: white;
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.impot-pct {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  white-space: nowrap;
}
.impot-text h3 { color: white; margin-bottom: 8px; }
.impot-text p  { color: rgba(255,255,255,.75); max-width: 52ch; }

/* ─── Tarifs ────────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: box-shadow var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--navy);
  border-width: 2px;
  position: relative;
}
.pricing-card.featured::before {
  content: 'Tarif principal';
  position: absolute;
  top: -12px; left: 24px;
  background: var(--navy);
  color: white;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.price {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 12px 0 4px;
}
.price span { font-size: 1.2rem; font-weight: 400; color: var(--muted); }

.pricing-card h3 { color: var(--navy); margin-bottom: 8px; }
.pricing-card p  { font-size: .9rem; color: var(--muted); max-width: 100%; }

.payment-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.payment-tag {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--navy);
}

/* ─── Section photo split ───────────────────────────────────────────────────── */
.photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 56px;
}
.photo-split-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}
.photo-split-content {
  background: var(--navy);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.photo-split-content h3 { color: white; margin-bottom: 14px; }
.photo-split-content p  { color: rgba(255,255,255,.75); font-size: .95rem; max-width: 100%; }

/* Badge SAP */
.sap-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 32px;
}
.sap-badge img {
  width: 70px;
  height: auto;
  flex-shrink: 0;
}
.sap-badge-text {
  font-size: .88rem;
  color: var(--muted);
}
.sap-badge-text strong { color: var(--navy); display: block; margin-bottom: 2px; }

@media (max-width: 640px) {
  .photo-split { grid-template-columns: 1fr; }
  .photo-split-img { height: 220px; }
  .photo-split-content { padding: 28px 24px; }
}

/* ─── Page hero (pages intérieures) ─────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #3a5472);
  padding: 60px 0;
  color: white;
}
.page-hero h1 { color: white; margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.75); max-width: 60ch; }

/* ─── Qui suis-je ───────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-sidebar {
  position: sticky;
  top: 88px;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-avatar {
  background: linear-gradient(135deg, var(--navy), #3a5472);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar svg { width: 80px; height: 80px; color: rgba(255,255,255,.5); }

.profile-info { padding: 24px; }
.profile-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.profile-role { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }

.profile-badges { display: flex; flex-direction: column; gap: 8px; }
.profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--light);
  border-radius: 8px;
}
.profile-badge svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ─── Services page ─────────────────────────────────────────────────────────── */
.services-full { display: flex; flex-direction: column; gap: 32px; }

.service-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  transition: all var(--transition);
}
.service-item:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow);
}

.service-item-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(201,153,78,.15), rgba(201,153,78,.05));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-item-icon svg { width: 28px; height: 28px; color: var(--gold); }

.service-item h3 { margin-bottom: 10px; }
.service-item p  { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }

.service-list { display: flex; flex-direction: column; gap: 6px; }
.service-list li {
  font-size: .88rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(46,64,87,.08);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.checkbox-group label {
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox-group a { color: var(--navy); text-decoration: underline; }

.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  margin-bottom: 20px;
  align-items: flex-start;
  gap: 10px;
}
.form-alert.show { display: flex; }
.form-alert.success {
  background: rgba(74,124,89,.1);
  color: var(--success);
  border: 1px solid rgba(74,124,89,.25);
}
.form-alert.error {
  background: rgba(192,57,43,.08);
  color: var(--error);
  border: 1px solid rgba(192,57,43,.2);
}

.contact-aside { display: flex; flex-direction: column; gap: 20px; }

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}
.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-info-item svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.contact-info-item a { color: var(--navy); }

/* ─── Legal pages ───────────────────────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--navy); }
.legal-content p  { margin-bottom: 14px; color: var(--muted); max-width: 100%; }
.legal-content ul { margin: 12px 0 16px 0; display: flex; flex-direction: column; gap: 6px; }
.legal-content ul li {
  font-size: .93rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.legal-content ul li::before { content: '–'; position: absolute; left: 0; color: var(--gold); }
.legal-content a { color: var(--navy); text-decoration: underline; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 4px;
}
.footer-logo-tag {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-desc { font-size: .88rem; max-width: 36ch; line-height: 1.6; }

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── 404 ───────────────────────────────────────────────────────────────────── */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.not-found h1 {
  font-size: 6rem;
  color: var(--border);
  margin-bottom: 0;
}

/* ─── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ─── Skip link (accessibilité) ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--navy);
  color: white;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  font-size: .9rem;
  z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner       { grid-template-columns: 1fr; gap: 40px; }
  .hero-card        { display: none; }
  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .intro-grid       { grid-template-columns: 1fr; }
  .intro-visual     { display: none; }
  .about-grid       { grid-template-columns: 1fr; }
  .about-sidebar    { position: static; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .impot-banner     { flex-direction: column; text-align: center; padding: 32px 28px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 88px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--border); padding: 20px 24px 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-links .btn { align-self: flex-start; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .impot-banner { padding: 28px 20px; }
  .hero { padding: 60px 0 48px; }
}

/* ─── Animations & Motion Design ───────────────────────────────────────────── */

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes navShadowIn {
  to { box-shadow: 0 4px 24px rgba(46,64,87,.12); }
}

/* Hero entrance */
.hero-inner > div:first-child { animation: fadeInLeft .75s cubic-bezier(.22,.68,0,1.2) both; }
.hero-card                    { animation: fadeInRight .75s .15s cubic-bezier(.22,.68,0,1.2) both; }
.hero-label                   { animation: fadeInUp .5s .05s both; }
.hero h1                      { animation: fadeInUp .6s .1s cubic-bezier(.22,.68,0,1.2) both; }
.hero-quote                   { animation: fadeInUp .6s .2s both; }
.hero p                       { animation: fadeInUp .6s .3s both; }
.hero-actions                 { animation: fadeInUp .6s .4s both; }

/* Page hero (internal pages) */
.page-hero .container > *:nth-child(1) { animation: fadeInUp .55s .05s both; }
.page-hero .container > *:nth-child(2) { animation: fadeInUp .55s .15s both; }
.page-hero .container > *:nth-child(3) { animation: fadeInUp .55s .25s both; }

/* Nav scroll shadow */
.nav.scrolled { box-shadow: 0 4px 24px rgba(46,64,87,.12); }

/* Scroll reveal – état initial (JS ajoute .revealed) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.22,.68,0,1.2),
              transform .65s cubic-bezier(.22,.68,0,1.2);
}
[data-reveal="left"] {
  transform: translateX(-28px);
}
[data-reveal="right"] {
  transform: translateX(28px);
}
[data-reveal="scale"] {
  transform: scale(.94);
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delay pour les enfants */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s cubic-bezier(.22,.68,0,1.2),
              transform .5s cubic-bezier(.22,.68,0,1.2);
}
[data-stagger].revealed > *:nth-child(1)  { opacity:1; transform:none; transition-delay:.05s; }
[data-stagger].revealed > *:nth-child(2)  { opacity:1; transform:none; transition-delay:.12s; }
[data-stagger].revealed > *:nth-child(3)  { opacity:1; transform:none; transition-delay:.19s; }
[data-stagger].revealed > *:nth-child(4)  { opacity:1; transform:none; transition-delay:.26s; }
[data-stagger].revealed > *:nth-child(5)  { opacity:1; transform:none; transition-delay:.33s; }
[data-stagger].revealed > *:nth-child(6)  { opacity:1; transform:none; transition-delay:.40s; }

/* Hover lift sur les cards */
.service-card,
.service-item,
.pricing-card,
.contact-info-card {
  transition: transform .25s cubic-bezier(.22,.68,0,1.2),
              box-shadow .25s ease;
}
.service-card:hover,
.pricing-card:hover     { transform: translateY(-5px); box-shadow: 0 8px 32px rgba(46,64,87,.13); }
.contact-info-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(46,64,87,.1); }

/* Hover icon rotation */
.service-item-icon svg,
.service-icon svg {
  transition: transform .3s cubic-bezier(.22,.68,0,1.2);
}
.service-item:hover .service-item-icon svg,
.service-card:hover .service-icon svg {
  transform: scale(1.18) rotate(-6deg);
}

/* Logo flottant subtil */
.nav-logo-img { transition: transform .3s ease; }
.nav-logo:hover .nav-logo-img { transform: rotate(-4deg) scale(1.05); }

/* Boutons – micro-interactions */
.btn {
  transition: background .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .18s cubic-bezier(.22,.68,0,1.2),
              box-shadow .18s ease;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,64,87,.15); }
.btn:active { transform: translateY(0);    box-shadow: none; }

/* Image zoom subtil au survol */
.photo-split-img,
.profile-avatar img,
.intro-visual img {
  transition: transform .6s cubic-bezier(.22,.68,0,1.2);
}
.photo-split:hover .photo-split-img,
.profile-card:hover .profile-avatar img { transform: scale(1.04); }

/* Nav links underline slide */
.nav-links a:not(.btn) {
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s cubic-bezier(.22,.68,0,1.2);
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }

/* ─── Bannière cookies ──────────────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy);
  color: rgba(255,255,255,.9);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 3px solid var(--gold);
  box-shadow: 0 -4px 32px rgba(46,64,87,.22);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
  max-width: 640px;
  color: rgba(255,255,255,.85);
}
#cookie-banner a { color: var(--gold-light); text-decoration: underline; }
#cookie-banner a:hover { color: white; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
#cookie-accept {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
#cookie-accept:hover { background: var(--gold-light); transform: translateY(-1px); }
#cookie-refuse {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 10px 22px;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
}
#cookie-refuse:hover { border-color: rgba(255,255,255,.7); color: white; transform: translateY(-1px); }

/* Respects prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-stagger] > * { opacity: 1; transform: none; }
}
}
