/* =============================================
   STYLE.CSS — Ève-Lyne Bachand Portfolio
   Font: Cossette Texte
   ============================================= */

@font-face {
  font-family: 'Cossette Texte';
  src: url('fonts/CossetteTexte-Regular.woff2') format('woff2'),
       url('fonts/CossetteTexte-Regular.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'Cossette Texte';
  src: url('fonts/CossetteTexte-Bold.woff2') format('woff2'),
       url('fonts/CossetteTexte-Bold.woff') format('woff');
  font-weight: 700;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.br-mobile { display: none; }
html { height: 100%; }
body { font-family: 'Cossette Texte', sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; min-height: 100%; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =============================================
   TICKER
   Dupliqué 8x dans le HTML → jamais de blanc
   Vitesse rapide : 8s
   ============================================= */
.ticker {
  background: #000;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ticker-track {
  display: inline-block;
  /* 8x le contenu = on translate de -50% (4x) → loop parfait */
  animation: ticker-move 18s linear infinite;
}
.ticker-track span { padding: 0 18px; }
@keyframes ticker-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   NAV (commun)
   ============================================= */
.nav {
  display: inline-flex;
  flex-direction: column;
  padding: 18px 0 0 20px;
}
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  width: 175px;
  color: inherit;
}


/* =============================================
   FOOTER (commun)
   ============================================= */
.footer {
  text-align: center;
  font-size: 11px;
  padding: 20px 0 26px;
}

/* =============================================
   PAGE CONTACT (contact.html)
   Maquette Desktop-5
   Fond noir, tout blanc
   ============================================= */
body.page-contact {
  background: #000000;
  color: #fff;
  display: flex;
  flex-direction: column;
}
body.page-contact .footer { color: #555; }
body.page-contact .nav a { color: #fff; border-bottom-color: #fff; }

/* Grand titre : SALUT ! / MOI, C'EST ÈVE-LYNE.
   - Commence sous la nav avec un espace
   - Taille : occupe ~60% de la largeur sur 2 lignes
   - Padding left 20px comme la nav */
.contact-titre {
  padding: 55px 20px 0 20px;
  font-size: clamp(52px, 9.5vw, 105px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.75;
  letter-spacing: -0.03em;
}

/* Corps : grille 2 colonnes
   Col gauche : photo ~40% largeur page
   Col droite : texte ~60%
   Le texte est aligné au BAS de la photo (align-items: end) */
.contact-corps {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: end;
  padding: 30px 20px 0 20px;
  flex: 1;
}

/* Photo : ratio 3/4, largeur ~280px (40% d'une page ~700px) */
.contact-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  object-fit: cover;  /* ← ajouter cette ligne */
  display: block;
}
/* Texte à droite, aligné en bas grâce à align-items:end sur la grille
   Padding left pour l'écart entre photo et texte */
.contact-texte {
  padding: 0 212px 0 40px;
  padding-bottom: 4px;
}
.contact-texte p {
  font-size: 13px;
  line-height: 1.78;
  color: #fff;
  text-align: justify;
  margin-bottom: 22px;
}
.contact-texte p.intro { font-weight: 700; }
.contact-texte p:last-child { margin-bottom: 0; }

/* Liens sociaux : centrés horizontalement, deux colonnes
   Labels (Instagram/LinkedIn/Courriel) à gauche
   URLs à droite */
.contact-liens {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-left: 42%;
  padding: 40px 212px 30px 40px;
  margin-top: 40px;
}
.contact-liens-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-liens-col a { font-size: 13px; color: #fff; }
.contact-liens-col:not(.droite) a { font-weight: 700; }
.contact-liens-col.droite { text-align: right; }

/* =============================================
   PAGE ACCUEIL (index.html)
   Maquette Desktop-6
   Fond blanc
   Pli de page : tout tient dans 100vh
   ============================================= */
body.page-accueil {
  background: #fff;
  color: #000;
  overflow-x: hidden;
}
body.page-accueil .nav a { color: #fff; border-bottom-color: #fff; }

/* Zone "pli de page" = tout ce qui est visible à l'ouverture
   = ticker + nav + espace + annee + titre + ligne + ee
   On utilise un wrapper 100vh pour le above-the-fold */
.accueil-fold {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-image: url('images/Accueil2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #0033FF;
}

/* Le contenu du fold pousse le titre vers le bas naturellement */
.accueil-spacer { flex: 1; }



/* Titre : 2 lignes séparées, chacune déborde à droite
   Taille : large, ~9vw */
.accueil-titres {
  padding-left: 20px;
  overflow: hidden;
  text-align: right;
  cursor: crosshair;
}
.accueil-titre-ligne {
  font-size: clamp(55px, 9.2vw, 100px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.75;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: block;
}


.accueil-hr {
  border: none;
  border-top: 1px solid currentColor;
  margin: 8px 0 0 0;
}
.accueil-ee {
  font-size: 15px;
  padding: 5px 0 4px 20px;
  color: #fff;
}

/* ── Section AVENUE ── */
.accueil-avenue {
  display: block;
  border-top: 1px solid #000;
  padding: 20px 20px 40px 20px;
  text-decoration: none;
  color: inherit;
}
.img-gris.tall, .img-gris.wide, .img-gris.sq {
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.accueil-avenue-grille {
  display: grid;
  grid-template-columns: 55% 40%;
  gap: 20px;
  align-items: start;
}
.img-gris { background: #aaa; display: block; }
.img-gris.tall  { width: 100%; aspect-ratio: 4 / 5; }
.img-gris.wide  { width: 100%; aspect-ratio: 16 / 10; }
.img-gris.sq    { width: 100%; aspect-ratio: 4 / 5; }

/* Hover bleu sur les projets vedettes */
.accueil-vedette {
  position: relative;
  overflow: hidden;
}
.accueil-vedette::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0033FF;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.accueil-vedette:hover::before { opacity: 0.88; }

.vedette-texte {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.accueil-vedette:hover .vedette-texte { opacity: 1; }
.vedette-nom  { display: block; color: #fff; font-size: clamp(22px, 3vw, 40px); font-weight: 700; }
.vedette-annee { display: none; }

.accueil-avenue-meta {
  display: none;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 20px;
  font-size: 14px;
}


.accueil-manifeste {
  background: #0033FF;
  padding: 14px 20px 24px;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: default;
}
.accueil-manifeste span {
  display: block;
  font-size: clamp(52px, 9.5vw, 115px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.manifeste-copyright {
  display: flex;
  justify-content: flex-end;
  color: #fff;
  margin-top: 18px;
}
.manifeste-copyright span {
  font-size: 11px;
}

.accueil-plus {
  border-top: 1px solid #000;
  padding: 18px 20px 40px;
}
.accueil-plus > p {
  font-size: 15px;
  margin-bottom: 14px;
}

/* accordéon pleine largeur */
.accueil-plus-grille {
  display: flex;
  gap: 3px;
  align-items: flex-start;
}
.accueil-plus-item {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: flex 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* items masqués au départ (ajoutés par JS) */
.accueil-plus-item.ap-masque { flex: 0; }

/* état actif (survol du bloc) */
.accueil-plus-grille.ap-actif .accueil-plus-item       { flex: 0.25; }
.accueil-plus-grille.ap-actif .accueil-plus-item:hover { flex: 6; }

.accueil-plus-item .img-gris {
  height: 460px;
  width: 100%;
  aspect-ratio: unset;
  display: block;
  background: #d9d9d9 center center / cover no-repeat;
}
body.page-accueil .accueil-plus-item .img-gris { height: 680px; }
.accueil-plus-item .date-dessus { display: none; }

/* ligne nom + date sous l'image */
.accueil-plus-item .ap-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.accueil-plus-item:hover .ap-meta { opacity: 1; }
.accueil-plus-item .nom-dessous,
.accueil-plus-item .ap-annee {
  white-space: nowrap;
  color: #0033FF;
}
.accueil-plus-item .nom-dessous { font-size: 13px; font-weight: 700; }
.accueil-plus-item .ap-annee   { font-size: 12px; font-weight: 400; }

.footer-accueil {
  text-align: center;
  font-size: 11px;
  padding: 20px 0 26px;
  color: #555;
}


body.page-projets {
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.projets-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 20px;
}
.projets-titre h1 {
  font-size: clamp(70px, 13vw, 148px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.75;
  letter-spacing:-0.03em;
  text-align: right;
  color: #0033FF;
}

/* ─ LISTE PROJETS ─ */
.projets-liste {
  list-style: none;
  margin: 40px 0 0 0;
  padding-bottom: 60px;
}

.projet-lien {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 75%;
  padding: 12px 0 12px 110px;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  border-bottom: 1px solid #000;
}

/* ─ ACCORDÉON IMAGE ─ */
.projet-img-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0, 0, 0.2, 1);
}
.projet-item:hover .projet-img-wrap {
  max-height: 380px;
}
.projet-img {
  width: calc(75% - 110px);
  aspect-ratio: 16 / 10;
  background: #ccc center center / contain no-repeat;
  margin: 16px 0 16px 110px;
  display: block;
}

/* =============================================
   PAGES PROJET INDIVIDUELLES
   ============================================= */
body.page-projet {
  background: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.projet-note {
  font-size: 13px;
  text-align: right;
  padding: 20px 212px 0;
  line-height: 1.5;
}

.projet-hero {
  display: grid;
  grid-template-columns: 42% 58%;
  padding: 40px 20px 50px;
  flex: 1;
}

.projet-visuel {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #d9d9d9 center center / cover no-repeat;
  display: block;
}

.projet-infos {
  padding: 80px 212px 0 40px;
  display: flex;
  flex-direction: column;
  color: #0033FF;
}

.projet-titre {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 50px;
}

.projet-desc {
  font-size: 15px;
  line-height: 1.78;
  text-align: justify;
  flex: 1;
}
.projet-desc p { margin-bottom: 16px; }
.projet-desc p.intro { font-weight: 700; }
.projet-desc p:last-child { margin-bottom: 0; }

.projet-meta {
  padding-top: 30px;
  font-size: 13px;
}
.projet-meta-ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}
.projet-meta-ligne span:first-child { font-weight: 700; }

/* Galerie images supplémentaires */
.projet-galerie {
  padding: 0 20px 60px;
  display: grid;
  gap: 14px;
}
.projet-galerie.g2  { grid-template-columns: 1fr 1fr; }
.projet-galerie.g3a { grid-template-columns: 0.55fr 1fr 1fr; }
.projet-galerie.g3b { grid-template-columns: 1fr 1fr 1fr; }

.gp-img {
  display: block;
  width: 100%;
  background: #d9d9d9 center center / cover no-repeat;
}
.gp-img.paysage { aspect-ratio: 3 / 2; }
.gp-img.portrait { aspect-ratio: 3 / 4; }

/* ─ VIDÉO ─ */
.projet-hero.solo {
  grid-template-columns: 1fr;s
  padding-bottom: 20px;
}
.projet-hero.solo .projet-infos {
  padding-left: 0;
  padding-right: 212px;
}
.projet-infos-bas {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 20px 212px 60px 20px;
  color: #0033FF;
}
.projet-infos-bas .projet-desc {
  flex: 1;
}
.projet-infos-bas .projet-meta {
  flex: 1;
}
.projet-video-wrap {
  padding: 0 20px 20px;
}
.projet-video-wrap video {
  width: 100%;
  display: block;
}

/* ─ CARROUSEL ─ */
.projet-carrousel-wrap {
  padding: 0 20px 60px;
}
.projet-galerie.carrousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 14px;
  scrollbar-width: none;
}
.projet-galerie.carrousel::-webkit-scrollbar { display: none; }
.projet-galerie.carrousel .gp-img {
  flex: 0 0 62%;
  scroll-snap-align: start;
  aspect-ratio: 3 / 2;
}

/* =============================================
   RESPONSIVE — mobile (max 768px)
   ============================================= */
@media (max-width: 768px) {

  /* ── Nav ── */
  .nav { padding: 12px 0 0 16px; }
  .nav a { width: 140px; font-size: 13px; }

  /* ── Contact ── */
  .br-mobile { display: block; }
  .contact-titre { padding: 24px 16px 0; line-height: 0.8; }
  .contact-corps { grid-template-columns: 1fr; padding: 24px 16px 0; }
  .contact-photo { max-width: 180px; }
  .contact-texte { padding: 20px 16px 0; }
  .contact-liens { margin-left: 0; padding: 24px 16px 20px; flex-direction: row; gap: 0; }
  .contact-liens-col.droite { text-align: right; }
  .contact-liens-col a { font-size: 11px; word-break: break-all; }

  /* ── Accueil fold ── */
  .accueil-titres { padding-left: 16px; }

  /* ── Section avenue ── */
  .accueil-avenue { padding: 16px 16px 40px; }
  .accueil-avenue-grille { grid-template-columns: 1fr; gap: 10px; }

  /* ── Manifeste ── */
  .accueil-manifeste { padding: 12px 16px 20px; }
  .accueil-manifeste span { white-space: normal; font-size: clamp(34px, 9vw, 60px); line-height: 0.9; }
  .manifeste-copyright { flex-direction: column; gap: 4px; }
  .manifeste-copyright { justify-content: flex-end; }
  .manifeste-copyright span { font-size: 10px; }

  /* ── En voir ++ ── */
  .accueil-plus { padding: 14px 16px 30px; }
  .accueil-plus-item .img-gris { height: 220px; }
  body.page-accueil .accueil-plus-item .img-gris { height: 320px; }

  /* ── Page projets ── */
  .projets-header { padding-right: 16px; }
  .projet-lien { width: 100%; padding: 12px 0 12px 16px; }
  .projet-img { width: calc(100% - 32px); margin-left: 16px; }

  /* ── Pages projet individuelles ── */
  .projet-note { padding: 14px 16px 0; text-align: right; }
  .projet-hero { display: flex; flex-direction: column; padding: 0 16px 30px; }
  .projet-infos { display: contents; color: #0033FF; }
  .projet-titre { order: 1; padding: 20px 0 0; }
  .projet-visuel { order: 2; aspect-ratio: 3 / 4; margin-top: 16px; }
  .projet-desc { order: 3; padding-top: 20px; }
  .projet-meta { order: 4; }
  .projet-titre { margin-bottom: 20px; }
  .projet-galerie { padding: 0 16px 40px; }
  .projet-galerie.g2,
  .projet-galerie.g3a,
  .projet-galerie.g3b { grid-template-columns: 1fr; }

  /* ── Cantalou vidéo ── */
  .projet-video-wrap { padding: 0 16px 16px; }
  .projet-hero.solo .projet-infos { padding-right: 16px; }
  .projet-infos-bas { flex-direction: column; gap: 0; padding: 24px 16px 40px; }
  .projet-infos-bas .projet-desc { margin-bottom: 0; }
  .projet-infos-bas .projet-meta { padding-top: 30px; width: 100%; }

  /* ── Projets vedettes (accueil) ── */
  .vedette-texte { bottom: 12px; left: 12px; }
  .vedette-nom { font-size: clamp(16px, 5vw, 24px); }
}