:root{
  --blue:#9ed4f2;
  --blue-deep:#0b4d86;
  --blue-dark:#073b69;
  --blue-pale:#eaf7ff;
  --white:#fff;
  --ink:#17364c;
  --line:rgba(255,255,255,.58);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--ink);
  background:linear-gradient(#dff3ff,#f7fcff);
  font-family:"Libre Baskerville",Georgia,serif;
}


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

.hero{
  position:relative;

  height:clamp(
    560px,
    calc(516px + 8.9vw),
    650px
  );

  min-height:0;

  overflow:hidden;
  background:var(--blue);
}

.hero-photo{
  position:absolute;
  inset:0;

  width:100%;
  height:100%;

  object-fit:cover;
  object-position:center 56%;

  z-index:0;
}

.hero::after{
  display:none;
}


/* =========================================================
   LANGUES
   ========================================================= */

.language-switch{
  position:fixed;

  top:22px;
  right:30px;

  display:flex;
  align-items:flex-start;

  gap:8px;

  z-index:2147483647;
}

.lang-btn{
  display:flex;
  flex-direction:column;

  align-items:center;
  justify-content:center;

  gap:3px;

  min-width:64px;

  padding:5px 6px 4px;

  border:1px solid transparent;
  border-radius:6px;

  background:transparent;

  color:#fff;

  cursor:pointer;

  font-family:"Libre Baskerville",Georgia,serif;
  font-weight:700;

  text-shadow:0 1px 4px rgba(0,47,78,.5);

  transition:.15s ease;
}

.lang-btn img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.lang-btn:hover{
  background:rgba(255,255,255,.10);
}

.lang-btn.active{
  border-color:rgba(255,255,255,.95);
  background:rgba(255,255,255,.10);
}

.lang-label{
  font-size:.68rem;
  line-height:1.15;
  white-space:nowrap;
}


/* =========================================================
   FEDEZ IBIL
   ========================================================= */

.brand{
  position:absolute;

  top:clamp(
    28px,
    calc(120px - 6.1vw),
    90px
  );

  left:50%;

  transform:translateX(-50%);

  z-index:20;

  color:#fff;

  text-shadow:0 3px 13px rgba(2,52,89,.34);

  font-family:"Cinzel",serif;
  font-weight:600;

  letter-spacing:.035em;
  line-height:1;

  white-space:nowrap;
}

.brand-title{
  display:flex;

  align-items:center;
  justify-content:center;

  gap:.32em;

  font-size:clamp(
    50px,
    calc(35.5px + 2.97vw),
    80px
  );
}

.brand-word{
  display:inline-block;
}


/* =========================================================
   SACRÉ-CŒUR
   ========================================================= */

.brand-heart{
  position:absolute;

  left:50%;
  top:50%;

  transform:translate(-50%,-50%);

  width:200px;
  height:auto;

  object-fit:contain;

  z-index:15;

  filter:drop-shadow(
    0 3px 8px rgba(7,61,100,.20)
  );
}


/* =========================================================
   DEVISE ET DATE DU PÈLERINAGE
   ========================================================= */

.hero-caption{
  position:absolute;

  left:50%;

  /*
     La position verticale de ce bloc
     est calculée dans langue.js.
  */

  top:78%;

  transform:translateX(-50%);

  z-index:25;

  width:min(88%,1100px);

  text-align:center;

  color:#fff;

  font-family:
    "Libre Baskerville",
    Georgia,
    serif;

  /*
     Même formule de référence que FEDEZ IBIL.
     Les tailles ci-dessous étant exprimées
     en em, elles restent proportionnelles
     à la taille du titre.
  */

  font-size:clamp(
    50px,
    calc(35.5px + 2.97vw),
    80px
  );

  text-shadow:
    0 2px 7px rgba(0,35,65,.72);

  pointer-events:none;
}


/* « Voilà ce Cœur qui a tant aimé les hommes… » */

.hero-quote{
  position:absolute;

  left:50%;
  top:0;

  width:100%;

  transform:translateX(-50%);

  font-size:.30em;

  line-height:1.25;

  font-weight:400;

  text-transform:none;

  white-space:nowrap;
}


/* Pèlerinage basque traditionnel – 17 et 18 octobre 2026 */

.hero-subtitle{
  position:absolute;

  left:50%;

  /*
     Sa position verticale exacte est
     calculée dans langue.js afin que
     cette ligne se trouve à équidistance
     de la citation et du bas de la photo.
  */

  top:50px;

  width:100%;

  transform:translateX(-50%);

  font-size:.25em;

  line-height:1.3;

  font-weight:400;

  text-transform:none;

  white-space:nowrap;
}


/* Exposants basques : 2026ko / 18an */

.hero-subtitle sup{
  font-size:.65em;
  vertical-align:super;
  line-height:0;
}


/* =========================================================
   VIERGE
   ========================================================= */

.virgin{
  position:absolute;

  left:0;
  bottom:-7px;

  height:clamp(
    49%,
    calc(35.9% + 2.67vw),
    76%
  );

  width:auto;

  object-fit:contain;
  object-position:left bottom;

  z-index:10;
}

.hero-bottom-line{
  position:absolute;

  bottom:0;
  left:0;
  right:0;

  height:2px;

  background:rgba(255,255,255,.64);

  z-index:30;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav{
  position:relative;

  z-index:100;

  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  max-width:980px;

  margin:-1px auto 0;

  background:rgba(232,247,255,.96);

  border-bottom:
    1px solid rgba(11,77,134,.22);

  box-shadow:
    0 8px 25px rgba(26,84,121,.10);
}

.nav-link{
  position:relative;

  padding:20px 12px 18px;

  text-align:center;

  text-decoration:none;
  text-transform:uppercase;

  color:var(--blue-deep);

  font-family:"Cinzel",serif;

  font-size:.94rem;
  font-weight:700;

  letter-spacing:.03em;

  border-right:
    1px solid rgba(11,77,134,.2);
}

.nav-link:last-child{
  border-right:0;
}

.nav-link:hover,
.nav-link.active{
  background:#fff;
}

.nav-link.active::after{
  content:"";

  position:absolute;

  bottom:0;
  left:25%;
  right:25%;

  height:3px;

  background:var(--blue-deep);
}


/* =========================================================
   CONTENU
   ========================================================= */

.home-main{
  position:relative;

  z-index:50;

  padding:30px 20px 56px;
}

.intro-card{
  position:relative;

  max-width:980px;

  margin:0 auto;

  padding:28px 60px 36px;

  background:rgba(255,255,255,.28);
}


/* =========================================================
   TEXTE D'ACCUEIL
   ========================================================= */

.intro-text{
  color:#0e4f86;

  font-size:clamp(
    1.05rem,
    1.55vw,
    1.38rem
  );

  line-height:1.8;

  text-align:justify;
}

.intro-text p{
  margin:0 0 1.25em 0;
}

.intro-text p:last-child{
  margin-bottom:0;
}


/* =========================================================
   ORNEMENTS
   ========================================================= */

.ornament{
  margin:0 auto 15px;

  color:#76bce5;

  font-size:1.45rem;

  letter-spacing:.45em;

  text-align:center;
}

.ornament::before,
.ornament::after{
  content:"";

  display:inline-block;

  vertical-align:middle;

  width:90px;
  max-width:16vw;

  height:1px;

  margin:0 12px;

  background:#8bc8e9;
}

.ornament-bottom{
  margin:17px auto 0;
}


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

footer{
  padding:18px;

  text-align:center;

  color:#5a91b2;

  font-family:"Cinzel",serif;

  font-size:.8rem;

  letter-spacing:.18em;
}


/* =========================================================
   PAGES PROVISOIRES
   ========================================================= */

.placeholder{
  max-width:900px;

  margin:60px auto;

  padding:30px 24px;

  text-align:center;
}

.placeholder h1{
  color:var(--blue-deep);

  font-family:"Cinzel",serif;
}

.placeholder a{
  color:var(--blue-deep);
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media(max-width:800px){

  .language-switch{
    top:16px;
    right:16px;
  }

  .hero-photo{
    object-position:63% center;
  }

  .main-nav{
    grid-template-columns:
      repeat(2,1fr);
  }

  .nav-link:nth-child(2){
    border-right:0;
  }

  .intro-card{
    padding:22px 10px 30px;
  }
}


/* =========================================================
   TÉLÉPHONE
   ========================================================= */

@media(max-width:520px){

  .language-switch{
    top:10px;
    right:10px;

    gap:8px;
  }

  .lang-btn{
    min-width:54px;

    padding:3px 5px;

    gap:3px;

    border-radius:7px;
  }

  .lang-btn img{
    width:26px;
    height:26px;

    margin:0 auto 3px;
  }

  .lang-label{
    font-family:
      Georgia,
      "Times New Roman",
      serif;

    font-size:.72rem;

    font-weight:400;

    line-height:1.2;

    white-space:nowrap;
  }

  .lang-btn.active .lang-label{
    font-weight:700;
  }


  /*
     Sur téléphone, la devise dispose
     d'un peu plus de largeur.
  */

  .hero-caption{
    width:94%;
  }

  .hero-quote{
    font-size:.29em;
  }

  .hero-subtitle{
    font-size:.23em;
  }
}


/* =========================================================
   ÉCRAN TRÈS ÉTROIT
   ========================================================= */

@media(max-width:380px){

  .brand-title{
    max-width:94vw;
  }

}


/* =========================================================
   PETIT TÉLÉPHONE
   ========================================================= */

@media(max-width:470px){

  .main-nav{
    grid-template-columns:
      1fr 1fr;
  }

  .nav-link{
    font-size:.75rem;

    padding:16px 5px;
  }

  .intro-text{
    font-size:1rem;
    line-height:1.65;
  }
}
