/* ============================================================
   Margaux Oswald — Conseils
   Typographie : Playfair Display (serif)
   Palette : noir, blanc, beige/doré doux
   ============================================================ */

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

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

body {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #2c2c2c;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Palette --- */
:root {
  --noir: #1a1a1a;
  --gris-fonce: #2c2c2c;
  --gris: #6b6b6b;
  --gris-clair: #b0b0b0;
  --beige: #f5f0eb;
  --beige-fonce: #e8ddd3;
  --blanc: #ffffff;
  --or: #c9a96e;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gris-fonce);
}

.text-center { text-align: center; }
.text-italic { font-style: italic; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section--beige {
  background: var(--beige);
}

.section--dark {
  background: var(--noir);
  color: var(--blanc);
}

.section--dark p {
  color: var(--beige);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-fonce);
  transition: color 0.3s;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--noir);
  transition: width 0.3s;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__phone {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--gris);
}

.header__social {
  display: flex;
  gap: 0.6rem;
}

.header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.header__social a:hover {
  opacity: 1;
}

.header__social img {
  width: 20px;
  height: 20px;
}

/* Mobile menu toggle */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--noir);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--noir);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center 40%, transparent 30%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 320px;
  margin: 0 auto 2.5rem;
  mix-blend-mode: multiply;
  filter: invert(1) brightness(2);
  opacity: 0.95;
}

.hero__tagline {
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 1.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Section intro (Qui?) --- */
.intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.intro__quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gris);
  line-height: 1.8;
  position: relative;
  padding: 0 2rem;
}

.intro__quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--or);
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  line-height: 1;
}

/* --- Process section --- */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.process__img {
  border-radius: 4px;
  object-fit: cover;
  height: 450px;
  width: 100%;
}

.process__text h2 {
  margin-bottom: 1.5rem;
}

.process__text p {
  margin-bottom: 1rem;
}

/* --- Gains section --- */
.gains {
  text-align: center;
}

.gains__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.gains__item {
  padding: 2rem 1.5rem;
}

.gains__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--noir);
}

.gains__item p {
  font-size: 0.95rem;
  color: var(--gris);
}

.gains__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  stroke: var(--or);
}

/* --- Story / Mon histoire --- */
.story {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: center;
}

.story__portrait {
  border-radius: 4px;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1;
  filter: grayscale(0);
}

.story__text h2 {
  margin-bottom: 1.5rem;
}

.story__credit {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gris-clair);
  font-style: italic;
}

/* --- Services cards --- */
.services-preview {
  text-align: center;
}

.services-preview h2 {
  margin-bottom: 3rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  height: 380px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.service-card:hover .service-card__bg {
  transform: scale(1.05);
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}

.service-card__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: var(--blanc);
  text-align: left;
}

.service-card__content h3 {
  font-size: 1.2rem;
  color: var(--blanc);
  margin-bottom: 0;
}

/* --- Contact form --- */
.contact {
  padding: 5rem 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact__info h2 {
  margin-bottom: 1.5rem;
}

.contact__info p {
  margin-bottom: 1rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.contact__detail svg {
  width: 20px;
  height: 20px;
  stroke: var(--or);
  flex-shrink: 0;
}

.contact__detail a {
  color: var(--gris-fonce);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.contact__detail a:hover {
  border-color: var(--or);
}

.contact__social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--beige-fonce);
  border-radius: 50%;
  transition: border-color 0.3s, opacity 0.3s;
}

.contact__social-links a:hover {
  border-color: var(--or);
}

.contact__social-links img {
  width: 20px;
  height: 20px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--beige-fonce);
  background: var(--blanc);
  color: var(--gris-fonce);
  border-radius: 2px;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--or);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-msg {
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.95rem;
  display: none;
}

.form-msg--ok {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.form-msg--err {
  background: #fce4ec;
  color: #c62828;
  display: block;
}

/* --- CTA --- */
.cta {
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1.5px solid var(--noir);
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--noir);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: var(--noir);
  color: var(--blanc);
}

.btn--light {
  border-color: var(--blanc);
  color: var(--blanc);
}

.btn--light:hover {
  background: var(--blanc);
  color: var(--noir);
}

/* --- Footer --- */
.footer {
  background: var(--noir);
  color: var(--gris-clair);
  padding: 3rem 0;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  color: var(--gris-clair);
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--blanc);
}

.footer__social {
  display: flex;
  gap: 0.8rem;
}

.footer__social a {
  display: flex;
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* --- Page hero (inner pages) --- */
.page-hero {
  padding-top: 120px;
  padding-bottom: 4rem;
  background: var(--beige);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 400;
}

/* --- About page --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.2rem;
}

.about__portrait-wrap {
  float: right;
  width: 320px;
  margin: 0 0 2rem 3rem;
  border-radius: 4px;
  overflow: hidden;
}

.about__portrait-wrap img {
  width: 100%;
}

.about__certif {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--beige);
  border-radius: 4px;
}

.about__certif h3 {
  margin-bottom: 1rem;
}

.about__certif ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.about__certif li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* --- Services page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__img {
  border-radius: 4px;
  object-fit: cover;
  width: 100%;
  height: 400px;
}

.service-detail__text h2 {
  margin-bottom: 1rem;
}

.service-detail__text ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.service-detail__text li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Legal pages --- */
.legal-content {
  max-width: 750px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.legal-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content a {
  color: var(--or);
  border-bottom: 1px solid var(--or);
}

/* --- Separator --- */
.sep {
  width: 60px;
  height: 1px;
  background: var(--or);
  margin: 0 auto 2rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero__tagline { font-size: 1.15rem; }
  .hero__logo { width: 220px; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .process,
  .story,
  .service-detail,
  .service-detail--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .story { grid-template-columns: 1fr; }
  .story__portrait { max-width: 350px; margin: 0 auto; }

  .gains__grid,
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 2rem auto 0;
  }

  .about__portrait-wrap {
    float: none;
    width: 280px;
    margin: 0 auto 2rem;
  }

  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__burger { display: flex; }

  .header__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    gap: 1.2rem;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  .service-card { height: 280px; }
}
