/* ============================================
   BASE — Variables & Reset
   ============================================ */

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

:root {
  --text:       #303636;
  --accent:     #D4967D;
  --sage:       #495A58;
  --cream:      #E5E3DC;
  --white:      #FFFFFF;

  --font-title: 'Baskerville', 'Libre Baskerville', Georgia, serif;
  --font-body:  'Montserrat', sans-serif;

  --max-width:  1100px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 7rem;

  --radius:     50px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: normal;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  margin-bottom: var(--spacing-sm);
  max-width: 65ch;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--sage);
  max-width: 55ch;
}

.accent-text {
  color: var(--accent);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-lg) 0;
}

.section-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   NAVIGATION
   ============================================ */

header {
  width: 100%;
  padding: var(--spacing-sm) 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--cream);
  position: relative;
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent);
}

/* ── LOGO CK MONOGRAMME ── */
.ck-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.ck-wrap:hover { transform: scale(1.04); opacity: 0.88; }

/* Fond clair → terracotta + anthracite */
.on-light .ck-c-glyph { fill: #C8896F; }
.on-light .ck-k-glyph { fill: #303636; }
.on-light .ck-rule    { stroke: rgba(200, 137, 111, 0.55); }
.on-light .ck-dot     { fill: #C8896F; }
.on-light .ck-name    { fill: #A09990; }

/* Fond sombre → crème clair */
.on-dark .ck-c-glyph  { fill: #DDA98A; }
.on-dark .ck-k-glyph  { fill: #F0EDE8; }
.on-dark .ck-rule     { stroke: rgba(221, 169, 138, 0.4); }
.on-dark .ck-dot      { fill: #DDA98A; }
.on-dark .ck-name     { fill: rgba(240, 237, 232, 0.38); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Menu déroulant */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  min-width: 180px;
  padding: var(--spacing-xs) 0;
  box-shadow: 0 8px 24px rgba(48, 54, 54, 0.08);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dropdown:hover > .dropdown-menu,
.dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem var(--spacing-sm);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 400;
  transition: background-color var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
  background-color: transparent;
  color: var(--accent);
}

.dropdown-menu a::after {
  display: none;
}

/* Indicateur flèche dropdown */
.dropdown > a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 5px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.dropdown:hover > a::before {
  transform: rotate(-135deg) translateY(-2px);
}

/* Burger menu mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--sage);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  letter-spacing: 0.08em;
}

.btn-ghost:hover {
  color: var(--sage);
  border-color: var(--sage);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: var(--cream);
  color: var(--sage);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  margin-bottom: var(--spacing-sm);
}

.hero h1 {
  margin-bottom: var(--spacing-sm);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead {
  margin-bottom: var(--spacing-md);
}

.hero-ctas {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  z-index: -1;
}

/* ============================================
   CARTES
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
}

.card {
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(48, 54, 54, 0.08);
  transform: translateY(-2px);
}

.card-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--spacing-xs);
}

.card h3 {
  margin-bottom: var(--spacing-xs);
}

.card p {
  font-size: 0.9rem;
  color: var(--sage);
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   SECTIONS SPÉCIALES
   ============================================ */

.section-cream {
  background-color: var(--cream);
}

.section-sage {
  background-color: var(--sage);
  color: var(--white);
}

.section-sage h2,
.section-sage h3,
.section-sage p {
  color: var(--white);
}

.section-sage .section-label {
  color: var(--accent);
}

.divider {
  width: 40px;
  height: 1px;
  background-color: var(--accent);
  margin: var(--spacing-sm) 0;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-sm);
}

label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  color: var(--sage);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--text);
  color: var(--cream);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand .nav-logo {
  color: var(--white);
  font-size: 1.3rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(229, 227, 220, 0.6);
  max-width: 30ch;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(229, 227, 220, 0.7);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(229, 227, 220, 0.15);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(229, 227, 220, 0.4);
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

@media (max-width: 768px) {

  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  /* Navigation mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 1px solid var(--cream);
    border-bottom: 1px solid var(--cream);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cream);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Dropdown mobile */
  .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-sm);
    background-color: var(--cream);
    margin-top: 0.5rem;
    border-radius: var(--radius);
  }

  .dropdown.is-open .dropdown-menu {
    display: block;
  }

  /* Hero mobile */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-image::before {
    display: none;
  }

  /* Footer mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}



/* === CUSTOM REQUESTS === */
header .container nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
header .container nav > :first-child { justify-self: start; }
header .container nav > :nth-child(2) { justify-self: center; }
header .container nav > :last-child { justify-self: end; }

/* ── Three-column header nav ── */
.header-nav-three-col {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.header-nav-three-col > :first-child { justify-self: start; }
.header-nav-three-col > :nth-child(2) { justify-self: center; }
.header-nav-three-col > :last-child { justify-self: end; }

.header-full-name {
  font-family: 'Cormorant Garamond', 'Baskerville', 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ck-compact { width: 64px; height: 44px; }
.ck-compact text { font-family: Baskerville, 'Libre Baskerville', Georgia, serif; }
.ck-compact .ck-c-glyph { fill: #D4967D; }
.ck-compact .ck-k-glyph { fill: #495A58; }
.ck-compact .ck-rule { stroke: rgba(212,150,125,.55); }
.ck-compact .ck-name { fill: rgba(48,54,54,.42); }

.header-brand-center { font-family: var(--font-title); font-size: 1.05rem; letter-spacing: .02em; color: var(--text); text-align: center; }

.hero-photo-art { position: relative; }
.hero-photo-art img, .hero-photo-art .hero-portrait { border-radius: 28px; box-shadow: 0 22px 55px rgba(48,54,54,.14); position: relative; z-index: 2; }
.hero-photo-art::before { content:''; position:absolute; inset: 18px -14px -14px 18px; border-radius: 28px; background: linear-gradient(145deg, rgba(212,150,125,.18), rgba(73,90,88,.12)); z-index:1; }
.hero-photo-art::after { content:''; position:absolute; inset: -10px 18px 18px -10px; border-radius: 28px; border: 1px solid rgba(73,90,88,.15); z-index:0; }
.hero-photo-col { display:flex; align-items:center; }
.hero-photo-col img, .hero-photo-col .hero-portrait { aspect-ratio: 4/5; object-fit: cover; object-position: center top; }

.hero-copy, .hero-lead-justified { text-align: justify; text-justify: inter-word; }
.hero-copy strong, .hero-lead-justified strong { font-weight: 700; }
.hero-copy { display:flex; flex-direction:column; justify-content:center; height:100%; }
.hero-copy .hero-contact-icons { margin-top: 1.2rem; }

.skills-section-redesign .skills-layout { gap: 2.25rem; }
.skills-section-redesign .skills-lang-col, .skills-section-redesign .skills-expert-col { background: rgba(255,255,255,.72); border: 1px solid var(--cream); border-radius: 28px; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 10px 30px rgba(48,54,54,.05); }
.skills-section-redesign h2 { margin-bottom: 2.2rem; }
.skills-section-redesign h3 { position: relative; display:inline-flex; align-items:center; gap:.6rem; margin-bottom: 1.2rem; padding: 0; border: 0; letter-spacing:.16em; }
.skills-section-redesign h3::before { content:''; width: 38px; height:1px; background: var(--accent); display:block; }
.skills-section-redesign .tags-wrap { justify-content: flex-start; }
.skills-section-redesign .skill-tag { background: rgba(73,90,88,.05); }

footer.footer-compact { padding: 2.5rem 0 1.5rem; }
footer.footer-compact .footer-inner { gap: 1.5rem; margin-bottom: 1.25rem; }
footer.footer-compact .footer-bottom { padding-top: 1rem; }
footer.footer-compact .footer-brand .nav-logo, footer.footer-compact .ck-compact .ck-k-glyph { fill: #fff; }
footer.footer-compact .ck-compact .ck-c-glyph { fill: #D4967D; }
footer.footer-compact .ck-compact .ck-rule { stroke: rgba(212,150,125,.6); }

@media (max-width: 768px) {
  header .container nav { grid-template-columns: 1fr auto; }
  header .container nav > :nth-child(2) { display:none; }
  .header-nav-three-col { grid-template-columns: auto 1fr auto; gap: 0.5rem; }
  .header-full-name { display: none; }
  .hero-copy { text-align: left; }
  .hero-photo-art::before, .hero-photo-art::after { display:none; }
}

/* ── FOOTER REDESIGN ── */
.footer-inner--simple {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 2rem;
  align-items: center;
  max-width: 100% !important;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(229, 227, 220, 0.6);
  max-width: 36ch;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-contact-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-contact-icons--footer {
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.hero-contact-icons--footer .hero-icon-btn {
  border-color: rgba(212,150,125,0.5);
  color: rgba(229,227,220,0.85);
}

.hero-contact-icons--footer .hero-icon-btn:hover {
  background: #D4967D;
  border-color: #D4967D;
  color: #fff;
}

footer {
  padding: 2.5rem 0 1.5rem;
}

@media (max-width: 768px) {
  .footer-inner--simple {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .footer-contact-col {
    justify-content: flex-start;
  }
  .hero-contact-icons--footer {
    flex-direction: row;
  }
}
