/* ==================================================================================================
   01. POLICES
   ================================================================================================== */

@font-face {
  font-family: 'Pally';
  src: url('fonts/Pally-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}


/* ==================================================================================================
   02. VARIABLES GLOBALES
   ================================================================================================== */

:root {
  --bg-top: #031635;
  --bg-bottom: #0a5a87;
  --panel: rgba(4, 21, 58, 0.82);
  --panel-2: rgba(2, 15, 44, 0.86);
  --line: #9ccfff;
  --text: #ffffff;
  --link: #9ccfff;
  --gold-1: #e4ba5a;
  --gold-2: #f2de91;
  --gold-3: #d7a549;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);

  --menu-mobile-open-height: 540px;
  --menu-tablet-open-height: 300px;
  --menu-desktop-height: 96px;
  --menu-desktop-open-height: 360px;
}


/* ==================================================================================================
   03. BASE HTML / BODY / LIENS
   ================================================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html.rotation {
  background: radial-gradient(circle at top center, #07255b 0%, #031635 38%, #06214b 100%);
}

body.rotation {
  min-height: 100vh;
  font: 700 16px/1.55 Arial, Verdana, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(3, 22, 53, 0.78), rgba(10, 90, 135, 0.78)),
    url(images/dark-blue-sky.jpg) center/cover no-repeat;
  overflow-x: hidden;
}

body.modal-active {
  overflow: hidden;
}

a {
  color: inherit;
}

a.lien:link,
a.lien:visited,
a.lien:active,
a.orange:link,
a.orange:visited,
a.orange:active {
  color: var(--link);
  text-decoration: none;
}

a.orange:link,
a.orange:visited,
a.orange:active {
  color: orange;
  text-shadow: 1px 1px black;
}

a.lien:hover,
a.orange:hover {
  color: aqua;
  text-decoration: underline;
}

.lien-image:hover img,
.lien-image:focus-visible img {
  box-shadow:
    0 0 8px rgba(0, 255, 255, 0.65),
    0 0 16px rgba(0, 120, 255, 0.55),
    0 0 24px rgba(120, 220, 255, 0.35);
}

.titre .lien-image:hover img.logo,
.titre .lien-image:hover img.yekim2 {
  box-shadow:
    0 0 12px rgba(0, 255, 255, 0.9),
    0 0 22px rgba(0, 120, 255, 0.75),
    0 0 30px rgba(120, 220, 255, 0.45);
}


/* ==================================================================================================
   04. STRUCTURE GÉNÉRALE
   ================================================================================================== */

.globale {
  width: calc(100vw - 28px);
  max-width: none;
  margin: 14px auto;
  padding: 18px 18px 22px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(5, 28, 74, 0.8), rgba(8, 87, 131, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), var(--shadow);
  overflow: visible;
  position: relative;
}


/* ==================================================================================================
   05. EN-TÊTE / TITRE / LOGOS
   ================================================================================================== */

.titre {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  column-gap: 8px;
  row-gap: 12px;
  margin-bottom: 18px;
  width: 100%;
}

.titre .lien-image {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.titre > .lien-image:first-child {
  grid-column: 1;
  justify-self: center;
}

.titre-copy {
  grid-column: 2 / 6;
  text-align: center;
}

.titre > .lien-image:last-child {
  grid-column: 6;
  justify-self: center;
}

img.yekim2 {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: static;
}

img.logo {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: static;
}

.titre hgroup,
.titre-copy {
  text-align: center;
}

h1 {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: transparent;
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
}

h2.sous-titre {
  margin: 8px 0 0;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  line-height: 1.25;
  color: transparent;
  background: linear-gradient(to right, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
}

p.souligne,
span.souligne {
  color: #99CCFF;
  text-decoration: underline;
}


/* ==================================================================================================
   06. MENU EMBARQUÉ
   ================================================================================================== */

.insertion,
object.menu {
  transition: none;
}

.insertion.menu-ouvert-desktop {
  height: var(--menu-desktop-height);
  min-height: var(--menu-desktop-height);
  z-index: 5000;
}

.insertion.menu-ouvert-desktop object.menu {
  height: var(--menu-desktop-open-height);
  min-height: var(--menu-desktop-open-height);
  z-index: 5001;
}


/* ==================================================================================================
   07. BLOCS COMMUNS
   ================================================================================================== */

.exterieur {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
  gap: 22px;
  align-items: stretch;
  width: 100%;
  padding: 20px;
  border: 3px ridge var(--line);
  border-radius: 10px;
  background: rgba(4, 34, 84, 0.22);
  position: relative;
  z-index: 100;
}

.image-avec-texte {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  position: relative;
  z-index: 9990;
}

.image-avec-texte a {
  display: block;
  position: relative;
  z-index: 9990;
}

img {
  max-width: 100%;
  height: auto;
  background-color: rgba(0, 0, 0, 0.46);
  border: 3px ridge var(--line);
  border-radius: 8px;
}

img.heritage,
img.depart {
  display: block;
  width: 100%;
  margin: 0;
  position: static;
}

.ecran {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  z-index: 9999;
}

.texte {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 3px ridge var(--line);
  border-radius: 8px;
  background: var(--panel);
  position: relative !important;
  right: auto !important;
  width: 100%;
  height: auto;
  margin: 0;
  z-index: 1;
}

p {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  color: white;
  text-align: justify;
  text-shadow: 1px 1px black;
}


/* ==================================================================================================
   08. STRUCTURE RESPONSIVE COMMUNE
   ================================================================================================== */

@media (max-width: 980px) {
  .globale {
    width: calc(100vw - 18px);
    max-width: none;
    padding: 16px 14px 20px;
    border-radius: 24px;
  }

  .titre {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 10px;
  }

  img.logo,
  img.yekim2 {
    width: 60px;
    height: 60px;
  }

  .exterieur {
    grid-template-columns: 220px 1fr;
    gap: 16px;
  }
}

@media (min-width: 901px), ((min-width: 761px) and (orientation: landscape)) {
  .insertion {
    position: relative;
    height: var(--menu-desktop-height);
    min-height: var(--menu-desktop-height);
    overflow: visible;
    z-index: 20;
  }

  object.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--menu-desktop-height);
    min-height: var(--menu-desktop-height);
    z-index: 21;
  }

  .insertion.menu-ouvert-desktop {
    z-index: 5000;
    height: var(--menu-desktop-height);
    min-height: var(--menu-desktop-height);
  }

  .insertion.menu-ouvert-desktop object.menu {
    height: var(--menu-desktop-open-height);
    min-height: var(--menu-desktop-open-height);
    z-index: 5001;
  }
}

@media (max-width: 760px), ((min-width: 761px) and (max-width: 900px) and (orientation: portrait)) {
  .globale {
    width: calc(100vw - 14px);
    max-width: none;
    margin: 8px auto 14px;
    padding: 12px 10px 14px;
    border-radius: 18px;
  }

  .insertion {
    width: 100%;
    z-index: 3000;
    min-height: 238px;
    height: auto;
    margin-bottom: 0;
  }

  object.menu {
    display: block;
    width: 100%;
    min-height: 238px;
    height: 238px;
    position: relative;
    z-index: 3001;
    max-height: none;
  }

  .insertion.menu-ouvert {
    margin-bottom: 12px;
    min-height: var(--menu-tablet-open-height);
  }

  .insertion.menu-ouvert object.menu {
    min-height: var(--menu-tablet-open-height);
    height: var(--menu-tablet-open-height);
  }

  .titre {
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 24px;
  }

  .titre > .lien-image:first-child {
    grid-column: 1;
    justify-self: start;
  }

  .titre-copy {
    grid-column: 2;
    text-align: center;
  }

  .titre > .lien-image:last-child {
    grid-column: 3;
    justify-self: end;
  }

  img.logo,
  img.yekim2 {
    width: 42px;
    height: 42px;
  }

  h1 {
    font-size: clamp(1.1rem, 4.8vw, 1.45rem);
    line-height: 1.12;
  }

  h2.sous-titre {
    margin-top: 4px;
    font-size: clamp(0.68rem, 2.8vw, 0.9rem);
    line-height: 1.1;
  }

  .exterieur {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 14px;
  }

  .image-avec-texte {
    max-width: 210px;
  }

  .texte {
    padding: 14px;
    gap: 16px;
  }

  .texte p {
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
  }
}

@media (max-width: 420px) {
  .globale {
    padding: 10px 8px 12px;
    display: flex;
    flex-direction: column;
  }

  .titre {
    grid-template-columns: 36px 1fr 36px;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 18px;
  }

  img.logo,
  img.yekim2 {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 1rem;
    line-height: 1.08;
  }

  h2.sous-titre {
    font-size: 0.62rem;
    line-height: 1.08;
  }

  div.insertion {
    width: 100%;
    min-height: 220px;
    height: auto;
    margin-bottom: 2px;
    position: relative;
    z-index: 3000;
  }

  object.menu {
    display: block;
    width: 100%;
    min-height: 220px;
    height: 220px;
    margin-bottom: 2px;
  }

  .insertion.menu-ouvert {
    min-height: var(--menu-mobile-open-height);
    margin-bottom: 18px;
  }

  .insertion.menu-ouvert object.menu {
    min-height: var(--menu-mobile-open-height);
    height: var(--menu-mobile-open-height);
    max-height: none;
  }

  .exterieur {
    margin-top: 15px;
    padding: 8px 10px 10px;
    gap: 10px;
  }

  .image-avec-texte {
    max-width: 160px;
  }

  .texte {
    padding: 12px;
    gap: 12px;
  }
}
