/* Dre Mylène Legault — feuille de style unique.
   Identité reprise du prototype (palette, Playfair Display + DM Sans, mises en page),
   avec corrections : contraste AA, menu mobile, focus visible, polices auto-hébergées. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('../fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/playfair-display-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/playfair-display-latin-wght-italic.woff2') format('woff2');
}

:root {
  --dark: #173b42;
  --sage: #78938a;      /* décoratif uniquement (bordures, symboles) */
  --sage-ink: #4b665d;  /* texte vert : ≥ 4.5:1 sur blanc et sur crème */
  --cream: #f8f7f2;
  --ink: #213b3f;
  --muted: #55676a;     /* texte secondaire : ≥ 4.5:1 sur blanc et sur crème */
  --line: #dbe2de;
  --focus: #b8661b;
  --header-h: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'DM Sans', Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
picture { display: block; }
picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.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-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 3px; font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* En-tête */
.header { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; gap: 22px; background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 15px #142e3010; }
.brand { display: flex; align-items: center; gap: 13px; line-height: 1.2; min-width: 235px; }
.brand strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 500; }
.brand small { display: block; font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-top: 5px; }
.mark { width: 46px; height: 46px; flex: none; border: 1px solid #afc1b7; border-radius: 50%; display: grid; place-items: center; font-family: 'Playfair Display', Georgia, serif; font-size: 19px; position: relative; }
.mark span { font-size: 8px; position: absolute; right: 4px; top: 4px; }
.site-nav ul { display: flex; gap: 25px; font-size: 14px; }
.site-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--sage-ink); border-bottom-color: currentColor; }
.tools { display: flex; align-items: center; gap: 14px; }
.lang { font-weight: 700; font-size: 14px; padding: 8px 6px; }
.lang:hover { color: var(--sage-ink); }
.call { background: var(--dark); color: #fff; padding: 11px 20px; border-radius: 3px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.call:hover { background: #0f2b31; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: transparent; border: 1px solid #c7d3ce; border-radius: 3px; padding: 8px 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Accueil */
/* Hauteur minimale et non fixe : si le texte dépasse (zoom, écran bas, mobile), le hero s'agrandit
   au lieu de couper le bouton. Le padding du bas réserve la place de la mention « Roxboro · Montréal ». */
.hero { min-height: clamp(520px, 78vh, 760px); padding: 64px 0 88px; position: relative; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-image { position: absolute; inset: 0; }
.hero-image img { object-position: center 53%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,38,40,.86), rgba(12,38,40,.5) 55%, rgba(12,38,40,.12)); }
.hero-copy { position: relative; margin-left: 9%; max-width: 750px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; margin-bottom: 0; }
.green { color: var(--sage-ink); }
.hero h1 { font-size: clamp(3rem, min(6vw, 10vh), 6rem); margin: 22px 0 24px; }
.hero-text { max-width: 530px; font-size: 17px; color: #f0f4f1; }
.button { display: inline-flex; gap: 50px; align-items: center; justify-content: space-between; padding: 15px 22px; margin-top: 20px; font-size: 14px; font-weight: 700; border-radius: 2px; }
.light { background: #fff; color: var(--dark); }
.light:hover { background: #e9efec; }
.dark { background: var(--dark); color: #fff; }
.hero-note { position: absolute; right: 5%; bottom: 30px; margin: 0; font-size: 12px; }

/* Sections */
.section { padding: 110px 9%; }
.tint { background: var(--cream); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: center; }
.intro h2 { margin: 20px 0 0; }
.lead { font-size: 19px; color: var(--muted); margin: 0; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.story-pictures { position: relative; padding: 0 65px 60px 0; }
.story-main { height: 490px; }
.story-inset { width: 53%; height: 210px; position: absolute; right: 0; bottom: 0; border: 8px solid var(--cream); background: var(--cream); }
.story-text h2, .approach h2, .family h2 { margin: 18px 0 28px; }
.story-text p, .approach p, .family p { color: var(--muted); }
.line-quote { border-left: 2px solid var(--sage); padding-left: 22px; margin: 28px 0 0; }
.line-quote p { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-style: italic; color: var(--ink); }

.approach { display: grid; grid-template-columns: 1fr .82fr; gap: 10%; align-items: center; }
.approach-image { height: 630px; }
.approach-image img { object-position: 38% center; }
.values { margin-top: 32px; }
.values li { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.values b { grid-row: span 2; color: var(--sage-ink); font-size: 13px; }
.values strong { font-size: 16px; }
.values span { color: var(--muted); font-size: 15px; }

.center { text-align: center; max-width: 720px; margin: auto; }
.center h2 { margin: 16px 0 22px; }
.center p { color: var(--muted); }
.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 55px; }
.card { background: #fff; padding: 32px 30px; }
.symbol { font-size: 32px; line-height: 1; color: var(--sage); }
.card h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; font-weight: 500; line-height: 1.3; margin: 20px 0 12px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink); margin-top: 6px; line-height: 1.45; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 1px; background: var(--sage-ink); }

.family { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9%; align-items: center; }
.family-image { aspect-ratio: 3 / 2; }

.gallery { padding-top: 40px; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.gallery-head h2 { margin: 15px 0 0; }
.gallery-head > p { color: var(--muted); font-size: 14px; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; grid-template-rows: 300px 300px; gap: 16px; margin-top: 35px; }
.g-sign { grid-column: 1; grid-row: 1; }
.g-hallway { grid-column: 2; grid-row: 1 / 3; }
.g-diplomas { grid-column: 3; grid-row: 1; }
.g-exam { grid-column: 1; grid-row: 2; }
.g-tray { grid-column: 3; grid-row: 2; }
.g-sign img { object-position: center 18%; }

.contact { background: var(--dark); color: #fff; display: grid; grid-template-columns: 1fr .8fr; gap: 13%; align-items: center; }
.contact h2 { margin: 20px 0; }
.contact-intro p { color: #d9e3e0; max-width: 520px; }
.cdcp { margin-top: 40px; padding: 20px 24px; border-left: 3px solid #a9c2b9; background: rgba(255,255,255,.07); max-width: 520px; }
.cdcp h3 { font-size: 15px; letter-spacing: .04em; margin: 0 0 6px; color: #fff; }
.cdcp p { margin: 0; font-size: 15px; }
.contact-card { background: #fff; color: var(--ink); padding: 45px; }
.card-label { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--sage-ink); text-transform: uppercase; margin: 0; }
.card-name { font-family: 'Playfair Display', Georgia, serif; font-size: 25px; margin: 15px 0 10px; }
.contact-card address { color: #3f5552; margin-bottom: 16px; }
.contact-card address a, .directions { text-decoration: underline; text-underline-offset: 3px; }
.directions { font-size: 14px; }
.contact-card a:hover { color: var(--sage-ink); }
.contact-card hr { border: 0; border-top: 1px solid #dce4df; margin: 28px 0; }
.small { color: var(--muted); font-size: 14px; margin: 0; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 30px 9%; font-size: 13px; color: var(--muted); }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

.notfound { max-width: 720px; }
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0; }
.notfound hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Tablettes */
@media (max-width: 1200px) {
  .care-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 950px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 12px 20px #142e3018; border-top: 1px solid var(--line); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: 8px 6% 16px; }
  .js .site-nav a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .no-js .header { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .no-js .site-nav { order: 3; width: 100%; overflow-x: auto; }
  .section { padding: 75px 6%; }
  .intro, .story, .approach, .contact, .family { grid-template-columns: 1fr; gap: 45px; }
  .approach-image { height: 460px; max-width: 560px; }
  .story-pictures { max-width: 650px; }
  .hero-copy { margin-left: 6%; margin-right: 6%; }
  .hero-image img { object-position: 22% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(12,38,40,.55), rgba(12,38,40,.78) 45%, rgba(12,38,40,.7)); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid > picture { grid-column: auto; grid-row: auto; height: 240px; }
  .gallery-grid > .g-sign { grid-column: 1 / -1; height: 300px; }
  .gallery-grid > .g-hallway { grid-row: span 2; height: auto; }
}
/* Mobiles */
@media (max-width: 580px) {
  :root { --header-h: 70px; }
  .header { padding: 0 4%; gap: 10px; }
  .brand { min-width: 0; gap: 9px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 11px; letter-spacing: 0; }
  .mark { width: 36px; height: 36px; font-size: 15px; }
  .tools { gap: 6px; }
  .lang { padding: 8px 4px; }
  .call { padding: 9px 10px; font-size: 13px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-toggle { padding: 11px 9px; }
  .hero { min-height: max(540px, 80vh); padding: 48px 0 80px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-text { font-size: 16px; }
  .lead { font-size: 17px; }
  .story-pictures { padding: 0 30px 50px 0; }
  .story-main { height: 320px; }
  .story-inset { height: 150px; width: 58%; }
  .approach-image { height: 400px; }
  .care-grid { grid-template-columns: 1fr; }
  .gallery-head { display: block; }
  .gallery-head > p { margin-top: 10px; }
  .gallery-grid { gap: 10px; }
  .gallery-grid > picture { height: 180px; }
  .gallery-grid > .g-sign { height: 230px; }
  .contact-card { padding: 30px; }
  .footer { flex-direction: column; }
}
@media (max-width: 360px) {
  .brand small { display: none; }
}
