/* Sylvaine Lafay — site styles (vanilla CSS, mobile first).
   Look of the former Divi theme: navy #041c32, gold #ecb365, teal #064663, Yeseva One / Lato / Merriweather. */
:root {
  --navy: #041c32;
  --navy-2: #063e5a;
  --navy-3: #041d33;
  --teal: #064663;
  --gold: #ecb365;
  --gold-soft: rgba(236, 179, 101, .12);
  --purple: #4c3b71;
  --text: #fff;
  --form-blue: #066aab;
  --form-ink: rgba(0, 0, 0, .85);
  --radius-card: 33px;
  --radius-img: 18px;
  --shadow-img: 6px 6px 18px 0 rgba(0, 0, 0, .3);
  --display: 'Yeseva One', Georgia, serif;
  --body: 'Lato', Helvetica, Arial, sans-serif;
  --nav: 'Merriweather', Georgia, 'Times New Roman', serif;
  --wrap: min(1080px, 80%);
  --sec-pad: clamp(50px, 4vw, 54px);
  --row-pad: clamp(26px, 2vw, 27px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--text); font: 400 18px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
h1, h2, h3, h4, .h2 { margin: 0; padding-bottom: 10px; font-family: var(--display); font-weight: 400; line-height: 1; color: var(--gold); }
h1, .h1 { font-size: 40px; }
h2, .h2 { font-size: 40px; }
h3, .h3 { font-size: 26px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 100; left: 16px; top: 12px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: var(--gold); color: var(--navy); border-radius: 3px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: var(--wrap); margin-inline: auto; }
.sec { padding-block: var(--sec-pad); }
.sec--bg { background: url(/assets/img/grain.webp), linear-gradient(90deg, var(--navy-2), var(--navy-3)); }
.sec--navy { background: var(--navy); }
.sec--teal { background: var(--teal); }
.row { padding-block: var(--row-pad); }
.center { text-align: center; }
.cols { display: grid; gap: 30px; }
@media (min-width: 981px) {
  .cols--2 { grid-template-columns: 1fr 1fr; column-gap: 5.5%; }
  .cols--3 { grid-template-columns: repeat(3, 1fr); column-gap: 5.5%; }
  .cols--mid { align-items: center; }
}
@media (min-width: 768px) and (max-width: 980px) {
  .cols--3.cols--tab { grid-template-columns: repeat(3, 1fr); column-gap: 4%; }
}
.media { align-self: start; border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-img); }
.media img { width: 100%; }
.icon { display: block; width: 24px; height: 24px; color: var(--gold); margin-bottom: 30px; }
.icon--star { width: 30px; height: 30px; margin: 0 auto 10px; }

/* ---------------------------------------------------------------- header */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 1px 0 rgba(0, 0, 0, .1); }
.header__in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 80px; transition: min-height .3s ease; }
.header.is-scrolled .header__in { min-height: 54px; }
.brand { display: block; line-height: 0; }
.brand img { width: 52px; height: 52px; border-radius: 2px; transition: width .3s ease, height .3s ease; }
.header.is-scrolled .brand img { width: 32px; height: 32px; }
@media (min-width: 981px) {
  /* as on the old site: the logo only appears once the page scrolls */
  .header:not(.is-scrolled) .brand img { width: 0; }
}
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--gold); cursor: pointer; }
.js .nav-toggle { display: grid; }
.nav-toggle svg { width: 30px; height: 30px; }
.nav { flex-basis: 100%; background: var(--navy); border-top: 3px solid var(--gold); padding: 4% 0; }
.js .nav { position: absolute; left: 0; right: 0; top: 100%; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
.js .nav:not(.is-open) { display: none; }
.nav ul { list-style: none; margin: 0 auto; padding: 0; width: var(--wrap); }
.nav a { display: block; padding: 10px 5%; color: #fff; font: 700 16px/1.4 var(--nav); border-bottom: 1px solid rgba(255, 255, 255, .03); }
.nav a:hover { text-decoration: none; opacity: .7; }
.nav a[aria-current=page] { color: var(--gold); }
@media (min-width: 981px) {
  .js .nav-toggle { display: none; }
  .nav, .js .nav, .js .nav:not(.is-open) { flex-basis: auto; display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .nav ul { display: flex; width: auto; gap: 22px; }
  .nav a { padding: 0; border: 0; }
}

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: .3em .7em; border: 1px solid var(--gold); border-radius: 3px; background: transparent; color: var(--gold);
  font: 500 18px/1.7 var(--body); cursor: pointer; transition: background .3s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { text-decoration: none; background: var(--gold-soft); }

/* ---------------------------------------------------------------- home */
.hero { min-height: 50vh; }
.portrait { width: 75%; max-width: 239px; margin: 0 auto 30px; border-radius: 50%; overflow: hidden; box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .3); }
@media (min-width: 768px) { .portrait { width: 12%; min-width: 110px; } }
.hero h1 { font-size: 44px; }
.hero__sub { font-size: 34px; }
.hero__text { margin: 30px 0 70px; }
.scroll { display: block; width: 50px; height: 50px; margin: 0 auto; color: var(--gold); }
.scroll svg { width: 100%; height: 100%; }
.types h3 { padding-bottom: 10px; }
.types .cols { row-gap: 30px; }
@media (min-width: 981px) { .types .cols { row-gap: 56px; } }
.steps h3 { font-size: 40px; padding-top: 10px; }
.reminder h2, .reminder p { font-style: italic; }
.wide { max-width: 1000px; }

/* ---------------------------------------------------------------- cards (réservation, livres) */
.card { border: 2px solid var(--gold); border-radius: var(--radius-card); padding: 50px 30px; text-align: center; }
@media (min-width: 981px) { .card { padding: 50px; } }
.card h2 { font-size: 40px; }
.card--book { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; }
.card--book h2 { font-size: 28px; }
.cover { width: 60%; max-width: 180px; margin: 0 auto 24px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .3); }
.card--book .btn { margin-top: auto; }
.card--book p { padding-bottom: 14px; }
.calendar { height: 700px; margin-top: 30px; }
/* Calendly needs ~320px: on phones the calendar uses the screen width minus 8px each side */
@media (max-width: 600px) { .calendar { width: calc(100vw - 16px); margin-left: calc(50% - 50vw + 8px); } }
.calendar iframe { width: 100%; height: 100%; border: 0; }
.panel { background: var(--teal); border-radius: var(--radius-card); padding: 40px 25px; }
@media (min-width: 981px) { .panel { padding: 40px 15px; } }

/* ---------------------------------------------------------------- tableaux */
.artist { width: 12%; min-width: 120px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; }
.paintings figure { margin: 0; text-align: center; }
.paintings img { margin: 0 auto 20px; }
.paintings figcaption { font-size: 18px; }

/* ---------------------------------------------------------------- footer */
.footer h2 { padding-bottom: 10px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px 22px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__bottom a { color: var(--gold); }

/* ---------------------------------------------------------------- forms (white card, as WPForms on the old site) */
.formcard { color-scheme: light; background: #fff; color: var(--form-ink); border: 2px solid var(--gold); border-radius: var(--radius-card); box-shadow: 0 2px 18px 0 rgba(0, 0, 0, .3); padding: 26px 22px; }
@media (min-width: 768px) { .formcard { padding: 26px 25px; } }
.form { font-size: 16px; line-height: 1.4; }
.form a { color: var(--form-blue); text-decoration: underline; }
.form__field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.form__label { display: block; margin: 0 0 11px; padding: 0; font-weight: 700; font-size: 16px; color: var(--form-ink); }
.form__label b { color: #d63637; font-weight: 400; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .form select {
  width: 100%; height: 43px; padding: 0 14px; font: 400 16px/1.3 var(--body); color: var(--form-ink); background: #fff;
  border: 1px solid rgba(0, 0, 0, .25); border-radius: 3px; box-shadow: 0 0 0 0 transparent; transition: border-color .15s, box-shadow .15s; }
.form textarea { height: 120px; padding: 10px 14px; resize: vertical; }
@media (min-width: 768px) { .form .is-medium { max-width: 60%; } }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--form-blue); box-shadow: 0 0 0 1px var(--form-blue), 0 1px 2px rgba(0, 0, 0, .15); }
.form .is-invalid input, .form .is-invalid textarea, .form .is-invalid select { border-color: #d63637; }
.form__err { display: none; margin-top: 6px; color: #d63637; font-size: 14px; }
.form .is-invalid .form__err { display: block; }
.form__row { display: grid; gap: 12px; }
.form__row--date { grid-template-columns: 1fr 1fr 1.3fr; }
@media (min-width: 768px) { .form__row--date { max-width: 60%; } .form__row--name { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 60%; } }
.form select { appearance: none; padding: 0 24px 0 10px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 6px center / 14px; }
.form__sub { display: block; margin-top: 5px; font-size: 14px; color: rgba(0, 0, 0, .55); }
.form__choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.form__choices label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form input[type=radio], .form input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--form-blue); flex: none; }
.form input[type=range] { width: 100%; accent-color: var(--form-blue); margin: 6px 0; }
@media (min-width: 768px) { .form input[type=range] { max-width: 60%; } }
.form__hint { display: block; font-size: 14px; color: rgba(0, 0, 0, .6); }
.form__h { color: var(--form-ink); font: 700 18px/1.3 var(--body); padding-bottom: 10px; }
.form__h--big { color: var(--gold); font: 400 40px/1 var(--display); }
.form__content { margin-bottom: 24px; }
.form__content p { padding-bottom: .8em; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; font-size: 15px; }
.form__consent input { margin-top: 2px !important; }
.form__consent.is-invalid span { color: #d63637; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fbtn { height: 41px; padding: 0 15px; border: 1px solid var(--form-blue); border-radius: 3px; background: var(--form-blue); color: #fff; font: 400 17px/1 var(--body); cursor: pointer; transition: box-shadow .15s, opacity .15s; }
.fbtn:hover { box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2); }
.fbtn--ghost { background: #fff; color: var(--form-blue); }
.fbtn[disabled] { opacity: .6; cursor: wait; }
.form__status { margin: 14px 0 0; font-size: 16px; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 15px; background: #e0ffc7; border: 1px solid #b4d39b; color: #2f3b25; border-radius: 3px; }
.form__status.is-error { color: #d63637; }
.form.is-done .form__body { display: none; }
/* multi-step questionnaire: without JS every step is shown; with JS one at a time */
.progress { margin-bottom: 24px; font-size: 16px; }
.progress__bar { height: 18px; margin-top: 6px; border-radius: 10px; background: #ddd; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 20%; background: var(--form-blue); transition: width .3s ease; }
.js .step:not(.is-current) { display: none; }
.js .form--steps:not(.is-last) .form__consent, .js .form--steps:not(.is-last) .form__actions { display: none; }
.step__nav { display: flex; gap: 12px; margin-bottom: 8px; }
.no-js-only { display: none; }
html:not(.js) .no-js-only { display: block; }
html:not(.js) .js-only { display: none; }

/* ---------------------------------------------------------------- legal pages */
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin-top: 34px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose__date { color: rgba(255, 255, 255, .7); font-size: 15px; }
.todo { background: rgba(236, 179, 101, .18); padding: 0 .3em; border-radius: 2px; }

/* ---------------------------------------------------------------- mobile type scale (Divi kept heading sizes; long words need room) */
@media (max-width: 480px) {
  h1, .h1, h2, .h2, .steps h3 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 30px; }
  .card h2 { font-size: 32px; }
}
