/* =========================================================================
   style.css — feuille de style unique du site JoosHeart

   Style éditorial : fond blanc, photos en vedette, titres en Bodoni,
   texte en Montserrat. Toutes les couleurs, polices et tailles sont
   réglées dans « :root » ci-dessous : les changer là suffit.

   Sommaire
     1. Polices         5. En-tête et menu
     2. Réglages        6. Pied de page
     3. Base            7. Accueil (sections)
     4. Éléments        8. Accessibilité
   ========================================================================= */


/* ------------------------------------------------------------- 1. Polices
   Hébergées sur le site (assets/fonts). Polices « variables » : un fichier
   couvre plusieurs graisses. Jeu latin : tous les accents français. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda.woff2') format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/bodoni-moda-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
}


/* ------------------------------------------------------------- 2. Réglages */
:root {
  /* couleurs */
  --blanc:  #FFFFFF;
  --creme:  #F6F4F0;   /* fond des sections alternées */
  --encre:  #1E1E1E;   /* titres, boutons */
  --texte:  #4A4A4A;   /* paragraphes */
  --gris:   #767676;   /* légendes (contraste suffisant sur blanc et crème) */
  --filet:  #E4E1DC;   /* traits fins */
  --nuit:   #232323;   /* pied de page */

  /* polices */
  --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* échelle des tailles */
  --t-label: 11px;                            /* étiquettes espacées, menu, boutons */
  --t-small: 13px;
  --t-body:  15px;
  --t-h3:    22px;
  --t-h2:    clamp(26px, 3vw, 40px);
  --t-h1:    clamp(30px, 4.6vw, 58px);

  /* espacements */
  --marge:   clamp(20px, 4vw, 60px);           /* marge gauche/droite */
  --section: clamp(72px, 9vw, 130px);          /* espace haut/bas des sections */
  --entete-h: 86px;
}


/* ------------------------------------------------------------- 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--encre); color: var(--blanc); }
:focus-visible { outline: 1px solid var(--encre); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--marge); }
.section { padding: var(--section) 0; }
.section--creme { background: var(--creme); }
.centre { text-align: center; }

/* lien d'évitement (clavier) */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px;
  background: var(--encre); color: var(--blanc); font-size: var(--t-small);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }


/* ------------------------------------------------------------- 4. Éléments */

/* étiquette très espacée : « P O R T F O L I O » */
.label {
  display: block;
  font-size: var(--t-label); font-weight: 500;
  letter-spacing: .5em; text-transform: uppercase;
  color: var(--encre);
  margin-right: -.5em; /* compense l'espace après la dernière lettre */
}

/* titres */
.titre { font-family: var(--font-display); font-weight: 400; color: var(--encre); line-height: 1.25; }
.titre--xl { font-size: var(--t-h1); text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
.titre--l  { font-size: var(--t-h2); }
.titre--m  { font-size: var(--t-h3); }
.italique  { font-family: var(--font-display); font-style: italic; }

/* en-tête de section centré : étiquette + titre */
.entete-section { text-align: center; margin-bottom: clamp(44px, 5vw, 70px); }
.entete-section .label { margin-bottom: 20px; }
.entete-section p { max-width: 620px; margin: 20px auto 0; }

/* boutons */
.bouton {
  display: inline-block; padding: 15px 34px;
  border: 1px solid var(--encre); background: transparent; color: var(--encre);
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.bouton:hover { background: var(--encre); color: var(--blanc); }
.bouton--clair { border-color: var(--blanc); color: var(--blanc); }
.bouton--clair:hover { background: var(--blanc); color: var(--encre); }
.boutons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* lien souligné en capitales */
.lien {
  display: inline-block; padding-bottom: 4px; border-bottom: 1px solid var(--encre);
  font-size: var(--t-label); font-weight: 600; letter-spacing: .25em; text-transform: uppercase; color: var(--encre);
  transition: opacity .2s ease;
}
.lien:hover { opacity: .6; }

/* icônes des réseaux sociaux */
.reseaux { display: flex; gap: 16px; }
.reseaux a { color: inherit; opacity: .8; transition: opacity .2s; }
.reseaux a:hover { opacity: 1; }
.reseaux svg { display: block; width: 16px; height: 16px; }

/* texte à compléter par le studio */
.a-completer { border-bottom: 1px dashed currentColor; opacity: .7; }


/* ------------------------------------------------------------- 5. En-tête et menu */
.entete { position: sticky; top: 0; z-index: 50; background: var(--blanc); transition: box-shadow .3s ease; }
.entete.defile { box-shadow: 0 1px 0 var(--filet); }
.entete .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--entete-h); max-width: none; }

.logo img { height: 58px; width: auto; mix-blend-mode: multiply; } /* logo noir sur fond blanc */

.menu { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.menu a {
  padding: 6px 0; border-bottom: 1px solid transparent;
  font-size: var(--t-label); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--encre);
  transition: border-color .25s ease;
}
.menu a:hover, .menu a[aria-current] { border-color: var(--encre); }

.entete .reseaux { justify-content: flex-end; color: var(--encre); }

.burger { display: none; justify-self: end; padding: 10px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1px; margin: 6px 0; background: var(--encre); transition: transform .3s ease; }
.menu-ouvert .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-ouvert .burger span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile : menu plein écran ouvert par le bouton « burger » */
@media (max-width: 960px) {
  :root { --entete-h: 72px; }
  .entete .wrap { grid-template-columns: 1fr auto; }
  .logo img { height: 46px; }
  .entete .reseaux { display: none; }
  .burger { display: block; }
  .menu {
    position: fixed; inset: var(--entete-h) 0 0 0; z-index: 49;
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: var(--blanc);
  }
  .menu-ouvert { overflow: hidden; }
  .menu-ouvert .menu { display: flex; }
  .menu a { font-size: var(--t-small); }
}


/* ------------------------------------------------------------- 6. Pied de page */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .72); padding-top: clamp(64px, 8vw, 100px); font-size: var(--t-small); }
.pied__logo { display: flex; justify-content: center; margin-bottom: 44px; }
.pied__logo img { height: 74px; width: auto; filter: invert(1); mix-blend-mode: screen; } /* logo passé en blanc */
.pied__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-bottom: 56px; }
.pied__menu a { font-size: var(--t-label); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--blanc); transition: opacity .2s; }
.pied__menu a:hover { opacity: .65; }
.pied__infos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 44px 0; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center;
}
.pied__infos h4 { margin-bottom: 12px; font-size: 10px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--blanc); }
.pied__infos a:hover { color: var(--blanc); }
.pied .reseaux { justify-content: center; margin-top: 18px; color: var(--blanc); }
.pied__bas { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: var(--t-label); letter-spacing: .08em; }
@media (max-width: 700px) { .pied__infos { grid-template-columns: 1fr; } }

/* bouton WhatsApp flottant */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--encre); color: var(--blanc);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); /* reste visible sur le pied de page sombre */
}
.wa svg { width: 24px; height: 24px; }


/* ------------------------------------------------------------- 7. Accueil */

/* 1 · couverture plein écran */
.couverture {
  position: relative; display: grid; place-items: center;
  height: calc(100svh - var(--entete-h)); min-height: 520px;
  overflow: hidden; text-align: center; color: var(--blanc);
}
.couverture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.couverture::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); } /* voile sombre pour lire le texte */
.couverture__texte { position: relative; z-index: 1; max-width: 900px; padding: 0 var(--marge); }
.couverture .label, .couverture .titre { color: var(--blanc); }
.couverture .label { margin-bottom: 28px; }
.couverture .italique { display: block; margin: 22px 0 40px; font-size: clamp(16px, 1.6vw, 20px); opacity: .92; }

/* présentation : photo ronde + texte */
.presentation { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.presentation__photo { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; border-radius: 50%; overflow: hidden; }
.presentation__photo img { width: 100%; height: 100%; object-fit: cover; }
.presentation .label, .equipe .label { margin-bottom: 18px; }
.presentation .titre--l, .equipe .titre--l { margin-bottom: 26px; }
.presentation p + p { margin-top: 16px; }
.presentation .lien, .equipe .lien { margin-top: 34px; }
@media (max-width: 860px) { .presentation { grid-template-columns: 1fr; text-align: center; } }

/* 2 · ce que nous faisons */
.prestations { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.prestation__img { aspect-ratio: 3 / 4; margin-bottom: 20px; overflow: hidden; }
.prestation__img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); /* léger zoom : masque le liseré blanc de certaines photos */
  transition: transform .8s ease;
}
.prestation .titre--m { margin-bottom: 6px; }
.prestation p {
  font-size: var(--t-small); color: var(--gris);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; /* 2 lignes max */
}
@media (hover: hover) { .prestation:hover .prestation__img img { transform: scale(1.07); } }
@media (max-width: 960px) { .prestations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .prestations { grid-template-columns: 1fr; } }
.prestations-bas { margin-top: 54px; text-align: center; }

/* 3 · bandeau défilant (animation CSS, pause au survol) */
.bandeau { padding: 22px 0; overflow: hidden; border-block: 1px solid var(--filet); }
.bandeau__piste { display: flex; width: max-content; animation: defile 45s linear infinite; }
.bandeau:hover .bandeau__piste { animation-play-state: paused; }
.bandeau span { padding: 0 28px; white-space: nowrap; font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); color: var(--encre); }
.bandeau span::after { content: '·'; padding-left: 56px; font-style: normal; color: var(--gris); }
@keyframes defile { to { transform: translateX(-50%); } }

/* portfolio : grille de photos serrée */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.portfolio a { display: block; overflow: hidden; }
.portfolio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.03); }
@media (max-width: 700px) { .portfolio { grid-template-columns: 1fr 1fr; gap: 4px; } }

/* 4 · l'équipe */
.equipe { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.equipe__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 50%; }
@media (max-width: 860px) { .equipe { grid-template-columns: 1fr; } }

/* 5 · partenaires (logo en gris, couleur au survol ; ou nom en texte) */
.partenaires { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px clamp(40px, 7vw, 100px); }
.partenaires li { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.partenaires img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.partenaires a:hover img { filter: none; opacity: 1; }

/* 6 · écrire au studio */
.appel { position: relative; padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; text-align: center; color: var(--blanc); }
.appel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.appel::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.appel .wrap { position: relative; z-index: 1; }
.appel .label, .appel .titre { color: var(--blanc); }
.appel .titre { margin: 22px 0 18px; }
.appel p { max-width: 520px; margin: 0 auto 40px; color: rgba(255, 255, 255, .88); }


/* ------------------------------------------------------------- 8. Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .bandeau__piste { animation: none; }
  .prestation__img img, .burger span { transition: none; }
}
