@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --clay:        #D9C3B0;
  --sage:        #B5C4B1;   /* conservé, non utilisé */
  --linen:       #F5F0E8;
  --chalk:       #FAF8F4;
  --stone:       #9E9287;
  --charcoal:    #2E2B27;
  --blush:       #E8D5C4;
  --sky:         #C8D8E4;
  --warm-white:  #FEFCF9;
  --accent:      #C4956A;
  --accent-dark: #A0744A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Poppins', sans-serif;

  /* Espacement global réduit et cohérent */
  --section-py:  4.5rem;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --shadow-soft: 0 2px 16px rgba(46,43,39,.06);
  --shadow-card: 0 4px 28px rgba(46,43,39,.09);
  --shadow-hover:0 10px 40px rgba(46,43,39,.13);

  --ease-smooth: cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ─── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 15px;           /* base réduite de 16 → 15px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.68;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .8rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }



/* ─── 3. TYPOGRAPHIE ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

/* Titres de section — taille réduite et respiration contrôlée */
.text-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);   /* était 2–3rem */
  font-weight: 300;
  letter-spacing: -.3px;
  position: relative;
  display: inline-block;
  margin-bottom: .5rem;
}

.text-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 36px;
  height: 1.5px;
  background: var(--accent);
  transition: width .4s var(--ease-smooth);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .6rem;
}

/* Intro de section (texte muted sous le titre) */
.section-intro {
  font-size: .95rem;
  color: var(--stone);
  max-width: 520px;
  margin: 1rem auto 0;
  line-height: 1.65;
}



/* ─── 4. NAVBAR ──────────────────────────────────────────────── */
.navbar {
  padding: .9rem 0;
  background: transparent;
  transition: background .4s var(--ease-smooth), padding .4s;
}

.navbar.scrolled {
  background: rgba(254,252,249,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: .55rem 0;
  box-shadow: 0 1px 20px rgba(46,43,39,.08);
}

.navbar.scrolled .nav-link    { color: var(--charcoal) !important; }

#brand img,
#brand svg {
  height: 72px;
  width: auto;
  transition: transform .3s var(--ease-bounce);
}

#brand:hover img,
#brand:hover svg { transform: scale(1.06); }

.nav-link {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(46,43,39,.75) !important;
  padding: .45rem .85rem !important;
  position: relative;
  transition: color .3s !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: .85rem;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease-smooth);
}
.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.7rem); }

.navbar-toggler {
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  padding: .35rem .55rem;
}
.navbar-toggler:focus { box-shadow: none; }



/* ─── 11. FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  padding: 3rem 0 1.75rem;   /* était 4rem 0 2rem */
  color: rgba(255,255,255,.55);
}

.address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.address i    { color: var(--clay); font-size: 1.2rem; }
.address p    { font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.55); margin: 0; }
.address p a  { color: rgba(255,255,255,.55); transition: color .3s; }
.address p a:hover { color: var(--clay); }

.copyright    { font-size: .75rem; color: rgba(255,255,255,.3); }

footer .small { font-size: .72rem; color: rgba(255,255,255,.28); transition: color .3s; }
footer .small:hover { color: var(--clay); }



/* ─── 18. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --section-py: 4rem; }
}

@media (max-width: 991px) {
  :root { --section-py: 3.5rem; }

  .navbar-collapse {
    background: rgba(254,252,249,.97);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: .85rem 1.25rem 1.25rem;
    margin-top: .4rem;
    box-shadow: var(--shadow-card);
  }

  .nav-link { color: var(--charcoal) !important; }

  .about   { padding: 1.75rem; gap: 1.25rem; }
  .box     { padding: 2rem 1.5rem; margin-top: -40px; }

  .hero-title    { font-size: clamp(2.5rem, 11vw, 4.5rem); }
  .hero-subtitle { font-size: .9rem; }

  .hero-social {
    right: auto;
    top: auto;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: .75rem;
  }
  .hero-social::before,
  .hero-social::after { display: none; }
}

@media (max-width: 767px) {
  :root { --section-py: 3rem; }

  .hero-title { font-size: clamp(2.2rem, 13vw, 3.5rem); }

  /* Grille de skill cards : 2 colonnes */
  #savoir-faire .row { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }

  /* Projets : 1 colonne */
  #realisations .col-lg-4 { margin-bottom: 1.25rem; }
}

@media (max-width: 575px) {
  :root { --section-py: 2.5rem; }

  .about       { padding: 1.25rem; border-radius: var(--radius-md); }
  .box         { padding: 1.5rem 1rem; margin-top: -30px; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }

  .img-comp-container  { border-radius: var(--radius-sm); }
  .img-comp-slider::before { width: 32px; height: 32px; }

  footer { padding: 2rem 0 1.25rem; }
}

/* ─── 19. PRINT ──────────────────────────────────────────────── */
@media print {
  .navbar, .back-to-top, .page-loader,
  .cursor-dot, .cursor-ring, .scroll-progress { display: none !important; }
  .hero-section { min-height: auto; padding: 2rem 0; }
  body { background: #fff; color: #000; }
}

/* ─── 20. MOUVEMENT RÉDUIT ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─── PAGES LÉGALES ─────────────────────────────────────────── */

.legal-hero {
    background: var(--charcoal);
    padding: 9rem 0 3.5rem;
    text-align: center;
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--clay);
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.legal-hero p {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin: 0;
}

.legal-body {
    padding: 4rem 0 5rem;
    background: var(--chalk);
}

.legal-content {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--charcoal);
    margin: 2.25rem 0 .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--blush);
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: .85rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: .85rem;
}

.legal-content ul li {
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--stone);
    line-height: 1.8;
    margin-bottom: .3rem;
}

.legal-content strong { color: var(--charcoal); font-weight: 600; }

.legal-content a {
    color: var(--accent);
    transition: color .3s;
    text-decoration: none;
}

.legal-content a:hover { color: var(--accent-dark); }

/* Pills de navigation entre pages légales */
.legal-nav-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.legal-nav-pills a {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--stone);
    background: var(--linen);
    border: 1px solid var(--blush);
    border-radius: 100px;
    padding: .35rem .9rem;
    text-decoration: none;
    transition: background .3s, color .3s, border-color .3s;
}

.legal-nav-pills a:hover,
.legal-nav-pills a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 767px) {
    .legal-content { padding: 1.5rem; border-radius: var(--radius-md); }
    .legal-hero { padding: 8rem 0 2.5rem; }
    .legal-nav-pills { gap: .4rem; }
}
