/*
Theme Name: Manon Dubar
Theme URI: https://manondubar.com
Author: Manon Dubar
Author URI: https://manondubar.com
Description: Thème personnalisé pour manondubar.com — Rédactrice web SEO & Photographe à Minorque
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: manondubar
Tags: blog, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, two-columns, translation-ready
*/

/* =========================================================
   DESIGN SYSTEM — Palette méditerranéenne
   ========================================================= */
:root {
  --sand:       #F5EFE0;
  --sand-light: #FAF6EE;
  --terracotta: #C4622D;
  --terracotta-dark: #9E4A1E;
  --terracotta-light: #E8896A;
  --gold:       #D4A843;
  --gold-light: #EDD28A;
  --olive:      #6B7A3E;
  --olive-light:#A8B56A;
  --sea:        #3B7A8C;
  --sea-light:  #7BB8C8;
  --ink:        #1E1A14;
  --ink-soft:   #3D3425;
  --muted:      #7A6E5F;
  --white:      #FFFFFF;
  --border:     rgba(196,98,45,0.15);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-warm: 0 4px 24px rgba(196,98,45,0.10);
  --shadow-card: 0 2px 16px rgba(30,26,20,0.08);

  --max-width: 1200px;
  --content-width: 780px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--sand-light);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

p { margin-bottom: 1.25rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* =========================================================
   UTILITAIRES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }
.section--lg { padding-block: 7rem; }

.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 99px;
  background: rgba(196,98,45,.10);
  color: var(--terracotta-dark);
}

.tag--sea {
  background: rgba(59,122,140,.10);
  color: var(--sea);
}

.tag--gold {
  background: rgba(212,168,67,.15);
  color: #8B6A18;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .85rem 2rem;
  border-radius: 99px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}

.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn--primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,98,45,.30);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(30,26,20,.20);
}
.btn--ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,238,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.site-logo span { color: var(--terracotta); }
.site-logo:hover { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .02em;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: width .25s;
}
.main-nav a:hover { color: var(--terracotta); }
.main-nav a:hover::after,
.main-nav a.current-menu-item::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--ink);
}

/* =========================================================
   HERO — PAGE D'ACCUEIL
   ========================================================= */
.hero {
  background: linear-gradient(160deg, var(--sand) 0%, var(--sand-light) 60%, rgba(212,168,67,.08) 100%);
  padding-block: 7rem 5rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,98,45,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
}

.hero-image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--sand);
  box-shadow: var(--shadow-warm);
}

.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 200px;
}

.hero-badge-icon {
  width: 44px; height: 44px;
  background: rgba(196,98,45,.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-badge-text { font-size: .8rem; }
.hero-badge-text strong { display: block; font-size: .95rem; color: var(--ink); }

/* =========================================================
   SERVICES — 2 CARDS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.service-card--pro .service-icon { background: rgba(59,122,140,.12); }
.service-card--photo .service-icon { background: rgba(196,98,45,.10); }

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
}

.service-card p {
  color: var(--muted);
  font-size: .95rem;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1.25rem;
}

/* =========================================================
   SECTION TITRE GÉNÉRIQUE
   ========================================================= */
.section-header { margin-bottom: 3rem; }
.section-header .tag { margin-bottom: 1rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .75rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 540px; }

/* =========================================================
   ACTUALITÉS
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sand);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }

.news-card-body { padding: 1.25rem; }
.news-card-body .tag { margin-bottom: .75rem; }
.news-card-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.news-card-body p { font-size: .875rem; color: var(--muted); margin-bottom: 0; }
.news-card-meta { font-size: .8rem; color: var(--muted); margin-top: .75rem; }

/* =========================================================
   AVIS / TÉMOIGNAGES
   ========================================================= */
.reviews-bg {
  background: var(--sand);
  border-radius: var(--radius-xl);
  padding: 4rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .1em;
}

.review-text {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.review-author { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(196,98,45,.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--terracotta-dark);
  flex-shrink: 0;
}
.review-info strong { display: block; font-size: .9rem; color: var(--ink); }
.review-info span { font-size: .8rem; color: var(--muted); }

/* =========================================================
   BLOG LISTING
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.blog-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--sand);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 1.5rem; }
.blog-card-body .tag { margin-bottom: .75rem; }
.blog-card-body h3 { font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.35; }
.blog-card-body p { font-size: .9rem; color: var(--muted); }
.blog-card-footer {
  padding: .75rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
}

/* =========================================================
   SINGLE POST / PAGE
   ========================================================= */
.post-header {
  background: var(--sand);
  padding-block: 4rem;
  text-align: center;
}

.post-header h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 800px; margin-inline: auto; }
.post-meta { color: var(--muted); font-size: .875rem; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }

.post-content {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-block: 3.5rem;
}

.post-content h2 { font-size: 1.75rem; margin-block: 2.5rem 1rem; }
.post-content h3 { font-size: 1.35rem; margin-block: 2rem .75rem; }
.post-content p { font-size: 1.05rem; color: var(--ink-soft); }
.post-content a { text-decoration: underline; text-decoration-color: rgba(196,98,45,.4); }
.post-content img { border-radius: var(--radius-md); margin-block: 2rem; }
.post-content blockquote {
  border-left: 3px solid var(--terracotta);
  padding-left: 1.5rem;
  margin-block: 2rem;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* =========================================================
   SECTION À PROPOS (HOME)
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sand);
  box-shadow: var(--shadow-warm);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }

.about-img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 45%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-card);
  background: var(--sand);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }

.about-text .section-header { margin-bottom: 1.5rem; }
.about-text p { color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.about-highlights { display: flex; gap: 2rem; margin-block: 2rem; }
.highlight { text-align: center; }
.highlight strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--terracotta); }
.highlight span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* =========================================================
   CONTACT CTA
   ========================================================= */
.cta-band {
  background: var(--terracotta);
  border-radius: var(--radius-xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.80); font-size: 1.05rem; margin-bottom: 2rem; }
.btn--white {
  background: var(--white);
  color: var(--terracotta-dark);
  border-color: var(--white);
  font-weight: 700;
}
.btn--white:hover {
  background: var(--sand);
  color: var(--terracotta-dark);
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.70);
  padding-block: 4rem 2rem;
}

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

.footer-brand .site-logo { color: var(--white); margin-bottom: .75rem; display: block; }
.footer-brand p { font-size: .875rem; line-height: 1.65; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.60); font-size: .875rem; }
.footer-col ul a:hover { color: var(--terracotta-light); }

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

.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.60);
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--terracotta); color: var(--white); }

/* =========================================================
   PAGE CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 2rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(196,98,45,.10);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-text strong { display: block; font-size: .875rem; margin-bottom: .2rem; }
.contact-item-text span { font-size: .875rem; color: var(--muted); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .45rem; color: var(--ink-soft); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--sand-light);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--terracotta); background: var(--white); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--sand);
  color: var(--ink);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .2s;
}

.pagination a:hover { border-color: var(--terracotta); color: var(--terracotta); }
.pagination .current { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding-inline: 1.25rem; }
  .section { padding-block: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .reviews-bg { padding: 2rem; }
  .cta-band { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--sand-light);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .menu-toggle { display: block; }
}
