/* ============================================================
   MARIE CASTEL — Coordinatrice d'intimité
   Design System & Shared Styles
   ============================================================ */

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

/* --- CSS Custom Properties --- */
:root {
  --main: #710808;
  --main-hover: #8a0a0a;
  --bg: #FFE7D0;
  --secondary-dark: #622b1d;
  --secondary-light: #E1C1A8;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #5a4a42;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  --section-pad: 80px;
  --container-max: 1140px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg);
}

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

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

ul {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.2em;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-pad);
}

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

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

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

.section--dark p {
  color: rgba(255,255,255,0.8);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 2rem;
}

/* Two-column grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* Three-column grid */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid rgba(113, 8, 8, 0.12);
  display: flex;
  align-items: center;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo img {
  height: 44px;
  width: auto;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--main);
  line-height: 1.2;
}

.navbar__logo-sub {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

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

.navbar__nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color var(--transition);
  position: relative;
}

.navbar__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--main);
  transition: width var(--transition);
}

.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--main);
}

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

.navbar__instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--main);
  border-radius: 50%;
  color: var(--main);
  transition: background var(--transition), color var(--transition);
}

.navbar__instagram:hover {
  background: var(--main);
  color: var(--white);
}

.navbar__instagram:hover::after {
  display: none;
}

.navbar__instagram svg {
  width: 16px;
  height: 16px;
}

/* Mobile hamburger */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

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

.hero {
  position: relative;
  height: min(90vh, 700px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 5, 5, 0.78) 0%,
    rgba(20, 5, 5, 0.35) 45%,
    rgba(20, 5, 5, 0.08) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  color: var(--white);
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--secondary-light);
  margin-bottom: 12px;
  display: block;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--secondary-light);
  margin-top: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--main);
  border-color: var(--main);
}

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

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

/* ============================================================
   INTRO SPLIT (portrait layout — À propos)
   ============================================================ */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(88vh, 760px);
}

.intro-split__text {
  background: var(--secondary-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 64px;
}

.intro-split__text--light {
  background: var(--bg);
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
}

.intro-split__name {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.1;
  margin: 0;
}

.intro-split__role {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--main);
  margin: 0 0 8px;
}

.intro-split__img {
  overflow: hidden;
}

.intro-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 680px) {
  .intro-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-split__img {
    height: 55vw;
    min-height: 280px;
    order: -1;
  }

  .intro-split__text {
    padding: 36px 24px;
  }
}

/* ============================================================
   BIO / TEXT SECTIONS
   ============================================================ */

.bio-text {
  font-size: 1.05rem;
  line-height: 1.85;
}

.bio-text p {
  margin-bottom: 1.4em;
}

/* ============================================================
   BLOCKQUOTE / TESTIMONIAL
   ============================================================ */

.testimonial-section {
  background: var(--secondary-dark);
  padding-block: var(--section-pad);
  overflow: hidden;
}

.carousel-header {
  margin-bottom: 3rem;
}

/* Carrousel infini */
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: carousel-scroll 50s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial {
  position: relative;
  flex-shrink: 0;
  width: 380px;
  padding: 36px 32px 32px;
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--secondary-light);
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--secondary-light);
  opacity: 0.4;
  position: absolute;
  top: 8px;
  left: 20px;
}

.testimonial__text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.testimonial__author {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary-light);
}

@media (max-width: 680px) {
  .testimonial {
    width: 300px;
  }
}

/* ============================================================
   FORMATION TABLE
   ============================================================ */

.formation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.formation-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--main);
  padding: 12px 16px;
  border-bottom: 2px solid var(--secondary-light);
}

.formation-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(98, 43, 29, 0.12);
  color: var(--text-muted);
  line-height: 1.5;
}

.formation-table tr:last-child td {
  border-bottom: none;
}

.formation-table tr:hover td {
  background: rgba(225, 193, 168, 0.25);
}

.formation-table td:first-child {
  color: var(--text-dark);
  font-weight: 500;
}

.formation-table td.hours {
  white-space: nowrap;
  color: var(--main);
  font-weight: 600;
  font-size: 0.88rem;
}

.formation-card {
  background: var(--white);
  padding: 40px;
  margin-bottom: 24px;
}

.formation-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--main);
  margin-bottom: 8px;
}

.formation-card__org {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ============================================================
   FORMATION — Certification principale + complémentaires
   ============================================================ */

/* Carte principale IDC */
.formation-main {
  background: var(--white);
  border-left: 4px solid var(--main);
  padding: 36px 40px;
  margin-bottom: 48px;
}

.formation-main__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.formation-main__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.formation-main__org {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.formation-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 6px 14px;
  background: var(--main);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Séparateur "formations complémentaires" */
.complementary-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.complementary-header::before,
.complementary-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--secondary-light);
}

.complementary-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Grille de cartes complémentaires */
.complementary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.complementary-card {
  background: var(--bg);
  border: 1px solid var(--secondary-light);
  padding: 24px 28px;
}

.complementary-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.complementary-card__org {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.complementary-card__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--secondary-light);
}

/* ============================================================
   TRAVAIL SECTIONS
   ============================================================ */

.work-list {
  list-style: none;
}

.work-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(98, 43, 29, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-list li:last-child {
  border-bottom: none;
}

.work-list__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.work-list__meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.work-list__year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--main);
  letter-spacing: 0.1em;
}

.subsection-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary-light);
  display: block;
}

/* ============================================================
   PHOTO CREDIT
   ============================================================ */

.photo-wrap {
  position: relative;
}

.photo-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  pointer-events: none;
}

/* Credit on hero images */
.hero .photo-credit {
  bottom: 12px;
  right: 16px;
  z-index: 3;
}

/* ============================================================
   IMAGE BLOCKS
   ============================================================ */

.img-frame {
  overflow: hidden;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-frame--tall {
  height: 520px;
}

.img-frame--medium {
  height: 400px;
}

/* ============================================================
   CALENDLY SECTION
   ============================================================ */

.calendly-section {
  background: var(--bg);
  padding-block: var(--section-pad);
  text-align: center;
}

.calendly-section h2 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.calendly-section p {
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.calendly-inline-widget {
  min-width: 320px;
  height: 700px;
  width: 100%;
  margin-inline: auto;
  border-radius: 4px;
  overflow: hidden;
}

/* ============================================================
   INSTAGRAM SECTION
   ============================================================ */

.instagram-section {
  padding-block: var(--section-pad);
  background: var(--bg);
  text-align: center;
}

.instagram-placeholder {
  border: 2px dashed var(--secondary-light);
  padding: 60px 40px;
  max-width: 640px;
  margin-inline: auto;
  margin-top: 2rem;
}

.instagram-placeholder p {
  margin-bottom: 1.5rem;
}

.instagram-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.5rem;
  align-items: start;
}

.instagram-reels-grid .instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .instagram-reels-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(113, 8, 8, 0.18);
}

.faq-item:first-child {
  border-top: 1px solid rgba(113, 8, 8, 0.18);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dark);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--main);
}

.faq-question.open {
  color: var(--main);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.faq-question.open .faq-icon {
  background: var(--main);
  border-color: var(--main);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  padding-right: 40px;
}

.faq-answer-inner p,
.faq-answer-inner li {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.faq-answer-inner ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1em;
}

.faq-answer-inner li {
  margin-bottom: 0.4em;
}

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

.footer {
  background: var(--secondary-light);
  padding-block: 56px 32px;
}

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

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 16px;
}

.footer__col p,
.footer__col address {
  font-style: normal;
  color: var(--secondary-dark);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer__col a {
  color: var(--secondary-dark);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--main);
}

.footer__bottom {
  border-top: 1px solid rgba(98, 43, 29, 0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social a {
  color: var(--main);
  font-weight: 600;
  transition: opacity var(--transition);
}

.footer__social a:hover {
  opacity: 0.75;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   CTA STRIP
   ============================================================ */

.cta-strip {
  background: var(--bg);
  padding-block: 56px;
  text-align: center;
}

.cta-strip h2 {
  margin-bottom: 0.75rem;
}

.cta-strip p {
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  :root {
    --section-pad: 56px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col--reverse {
    direction: ltr;
  }

  .three-col {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 680px) {
  :root {
    --section-pad: 48px;
    --nav-height: 64px;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(113,8,8,0.12);
    z-index: 99;
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__burger {
    display: flex;
  }

  .formation-card {
    padding: 24px;
  }

  .faq-answer-inner {
    padding-right: 0;
  }
}
