@font-face {
    font-family: 'Saira Condensed Light';
    font-style: normal;
    font-weight: 100;
    src: local('Saira Condensed Light'), url('fontes/SairaCondensed-Light.ttf') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Saira Condensed Bold';
    font-style: normal;
    font-weight: 700;
    src: local('Saira Condensed Bold'), url('fontes/SairaCondensed-Bold.ttf') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vert1: #008080;
  --vert2: #088876;
  --vert-titre: #296060;
  --bleu-titre: #376981;
  --bleu-pied: #193859;
  --bleu-mode-nuit: #194559;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  margin: 0;
  background: linear-gradient(to right, var(--vert1), var(--vert2));
  color: #333;
}

a {
  color: aliceblue;
  font-weight: bold;
}

a:hover {
  background: white;
  color: #6fa0b6;
  text-decoration: none;
}

header {
  width: 90%;
  max-width: 1380px;
  margin: 0 auto 20px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5%;
}

header #logo {
  max-width: 320px; /* pour iOS 12 */
  max-width: clamp(320px, 80%, 500px);
  height: auto;
  cursor: pointer;
}

header div {
  text-align: right;
  padding-top: 1em;
}

/* Chrome 🤦 */
video::-internal-media-controls-overlay-cast-button {
    display: none;
}

header h1 {
  display: inline;
  margin: 0;
  color: var(--vert-titre);
  font-size: clamp(30px, 4vw, 45px);
}

header h1 img {
  vertical-align: middle;
}

header h1 #portrait {
  vertical-align: sub;
}

header h2
{
  display: inline;
  margin: 0 0.3em;
  line-height: 2.5;
  color: white;
  font-size: clamp(20px, 1.7vw, 30px);
}

header h2 span {
  white-space: nowrap;
}

main {
  display: flex;
  overflow: hidden;
  justify-content: center;
}

.column {
  flex: 1;
}

.column.gauche {
  background: #3080a4 url("images/fond1.svg") repeat-x;
}

.column.centre {
  flex: 0 0 1360px;
  max-width: 100%;
  background:
  url("images/fond1.svg") repeat-x,
  linear-gradient(to right, #3080a4, #1b4c63);
}

.column.droite {
  background:
  url("images/fond2.svg") no-repeat,
  url("images/fond3.svg") repeat-y,
  var(--vert2);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.logos span,
.nowrap {
  white-space: nowrap;
}

#texte {
  text-align: justify;
  padding: 2em 6em;
  background: #6fa0b6;
  margin: 7em 7em 0;
}

#texte h2,
#texte h3,
#qui-suis-je {
  font-family: 'Saira Condensed Bold', sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: white;
}

#exemples,
#qui-suis-je {
  font-size: clamp(20px, 8vw, 46px);
  text-shadow: 1px 1px #396f88;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transition: opacity 500ms;
}

#exemples.affichable,
#qui-suis-je {
  opacity: 1;
}

#exemples::after,
#qui-suis-je::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin: 0 16px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid orange;
  transform: translateY(6px);
}

#qui-suis-je {
  margin: -10px 0 0 1rem;
}

#qui-suis-je-container p {
  margin: 2em auto;
  max-width: 960px;
  color: white;
  line-height: 1.9;
  text-align: justify;
}

#texte h3 {
  font-family: 'Saira Condensed Light', sans-serif;
  font-size: 35px;
  font-weight: normal;
  color: #1c4f67;
  opacity: 0;
  transition: opacity 500ms;
}

#texte h3.affichable {
  opacity: 1;
}

#texte h3::before,
#texte #divers::before,
#texte h3::after,
#texte #divers::after {
  display: inline-block;
  width: 16px;
  height: 60px;
  vertical-align: middle;
  content: " ";
  background: no-repeat url("logo-fond-sombre.svg");
  background-size: 200px;
  background-position-y: top;
  filter: brightness(180%);
}

#texte h3::before,
#texte #divers::before {
  margin-right: 8px;
  background-position-x: left;
}

#texte h3::after,
#texte #divers::after {
  margin-left: 8px;
  background-position-x: right;
}

#texte h3 b {
  white-space: nowrap;
}

#texte h3 b::after {
  content: " : ";
  font-weight: normal;
}

#texte .logos h3 {
  font-size: 20px;
  margin: 0;
  color: var(--bleu-titre);
}

#texte .logos h3::before,
#texte .logos h3::after {
  display: none;
}

#texte p {
  line-height: 2;
}

#texte > p:first-child {
  font-size: 24px;
  color: aliceblue;
  line-height: 1.5em;
}

#texte #experience {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center; 
  text-align: center;
  margin-bottom: 25px;
  color: white;
  font-size: 1.2em;
  padding: 4px 25px;
}

#texte #experience p {
  margin: 0;
  line-height: 1em;
}

#texte #experience p:first-child {
  background: linear-gradient(limegreen 0%, limegreen 95%, orange 95%, orange 100%);
  padding-left: 1em;
}

#texte #experience p:first-child::after {
  content: " ";
  display: inline-block;
  vertical-align: middle;
  width: 2.7em;
  height: 3em;
  background: linear-gradient(-50grad, orange 0%, orange 50%, limegreen 50%, limegreen 100%);
}

#texte #experience p:last-child {
  background: linear-gradient(limegreen 0%, limegreen 5%, orange 5%, orange 100%);
  padding: 1em 1em 1em 0;
}

#texte #experience.wrapped {
  padding: 0;
}

#texte #experience.wrapped p {
  width: 100%;
  padding: 0.5em;
  height: auto;
  line-height: 1.3em;
}

#texte #experience.wrapped p:first-child {
  background: limegreen;
}

#texte #experience.wrapped p:first-child::after {
  display: none;
}

#texte #experience.wrapped p:last-child {
  background: orange;
}

@media screen and (max-width: 640px) {
  #texte #experience p {
    font-size: 0.95em;
  }
}

@keyframes clignote {
  50% {
    opacity: 0;
  }
}

.clignote {
  display: inline-block;
  width: 16px;
  height: 24px;
  transform: translateY(5px);
  background: yellow;
  animation: clignote 1s linear 20;
  animation-timing-function: step-start;
}

#lien-curseur:hover {
  background: none;
}

.real {
  clear: both;
}

.real + .real {
  padding-top: 5em;
}

.real .autres {
  margin-top: 4em;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-around;
}

#texte .real .autres p {
  color: #444;
  line-height: 1.2;
  font-size: 0.85em;
  text-align: justify;
}

.real .autres div {
  max-width: 280px;
  text-align: center;
}

.real .autres img {
  max-width: 100%;
  border-radius: 13px;
}

@media screen and (max-width: 768px) {
  .real .autres img {
    max-width: 80%;
  }
}

.ligne {
  height: 20px;
}

.capture {
  opacity: 0;
  width: 450px;
  height: auto;
  float: right;
  margin: 0 0 1em 2em;
  position: relative;
  z-index: 0;
  transition: all 1s;
  transform: translateX(200px);
}

.capture.visible {
  opacity: 1;
  transform: translateX(0);
}

.capture::before {
  content: "";
  position: absolute;
  inset: 50% 50px 20px 30px;
  box-shadow: 0 0 10px 20px rgb(0 0 0 / 50%);
  z-index: -1;
  transform: skewY(-2deg);
}

.capture::after {
  content: "";
  position: absolute;
  inset: 50% 30px 20px;
  box-shadow: 0 0 10px 20px rgb(0 0 0 / 50%);
  z-index: -1;
  transform: skewY(2deg);
}

.real .capture img {
  width: 450px;
  max-width: 100%;
  height: auto;
  border: 9px solid #ddd;
  border-radius: 20px;
  background: #6fa0b6;
}

.real .liens {
  padding: 0;
}

.real .liens li {
  display: inline-block;
  margin: 0.5em 2em 1em 0;
  background: #2f7ea2;
  padding: 5px 9px;
  border-radius: 5px;
}

.real .liens a {
  color: #eee;
  font-weight: normal;
  text-decoration: none;
}

.real .liens a:hover {
  background: none;
  text-decoration: underline;
}

.real .liens a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid orange;
  transform: translateY(3px);
}

.version-precedente {
  text-align: center;
  font-size: 0.8em;
}

.surligne::before,
.surligne::after {
  content: " ";
  display: inline-block;
  width: 0.2em;
}

#mon-rayon {
  position: relative;
  overflow: hidden;
  padding: 2em 9em;
  background-color: #555;
  margin: 1em 10em;
  box-shadow: 5px 5px 3px rgb(0 0 0 / 20%);
}

#mon-rayon::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset -1em 1em 1em #555, inset -1em 1em 3em #555;
  z-index: 2;
}

#rayon-deco {
  position: absolute;
  top: -140px;
  right: -140px;
  z-index: 1;
  animation: 3s ease-in-out 1s infinite alternate tourne;
}

@keyframes tourne {
  0% {
    transform: rotateZ(0);
  }

  50% {
    transform: rotateZ(-60deg);
  }

  100% {
    transform: rotateZ(0);
  }
}

#mon-rayon h3 {
  color: #84a8b9;
  font: 36px 'Saira Condensed Bold', sans-serif;
  text-shadow: 1px 1px #444;
}

@media screen and (max-width: 580px) {
  #rayon-deco {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
  }

  #mon-rayon h3 {
    font-size: 32px;
  }

  #rayon-coche {
    display: none;
  }
}

#mon-rayon ul {
  color: wheat;
  padding-left: 2ex;
  list-style: none;
}

#mon-rayon h3,
#mon-rayon ul {
  position: relative;
  z-index: 3;
}

#mon-rayon li {
  line-height: 1.5;
  margin-bottom: 1em;
  position: relative;
}

#mon-rayon li::before {
  content: " ";
  display: block;
  width: 5px;
  height: 5px;
  position: absolute;
  left: -14px;
  top: 10px;
}

#mon-rayon li.action-ok::before {
  background: limegreen;
}

#mon-rayon li.action-ko::before {
  background: orange;
}

#mon-rayon li a:hover {
  text-shadow: transparent 0 0;
}

#pourquoi {
  display: grid;
  grid-template:
    "GH     .     DH" 22px
    "G1   CENTRE  D1" 1fr
    "GM   CENTRE  DM" 45px
    "G2   CENTRE  D2" 1fr
    "GB     .     DB" 22px / 30px 1fr 30px;
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
}

#pourquoi h3 {
  text-align: center;
  font-family: 'Saira Condensed Bold', sans-serif;
  font-size: 32px;
  margin: 0;
}

#pourquoi-centre {
  grid-area: CENTRE;
  padding: 1em 1.5em;
  background: #2ebdf521;
  text-align: justify;
  font-size: 0.9em;
  color: #ccc;
}

@media screen and (min-width: 640px) {
  #pourquoi-centre {
    line-height: 1.8em;
  }
}

#pourquoi-centre p {
  font-size: 0.9em;
}

#pourquoi-centre p::first-letter {
  font-size: 1.5em;
  font-weight: bold;
}

/* Safari 15 ne supporte pas text-decoration: underline dotted; */
#mon-rayon a,
#pourquoi a,
#youtube a {
  font-weight: normal;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: white;
}

.accolade {
  background: url('accolades-fond-bleu-2ebdf521.svg');
}

.accolade.barre1,
.accolade.barre2 {
  background: url('accolades-barre-verticale-fond-bleu-2ebdf521.svg');
}

.accolade.gauche {
  background-position-x: left;
}

.accolade.gauche.haut {
  grid-area: GH;
}

.accolade.gauche.barre1 {
  grid-area: G1;
}

.accolade.gauche.milieu {
  background-position-y: center;
  grid-area: GM;
}

.accolade.gauche.barre2 {
  grid-area: G2;
}

.accolade.gauche.bas {
  background-position-y: bottom;
  grid-area: GB;
}

.accolade.droite {
  background-position-x: right;
}

.accolade.droite.haut {
  grid-area: DH;
}

.accolade.droite.barre1 {
  grid-area: D1;
}

.accolade.droite.barre2 {
  grid-area: D2;
}

.accolade.droite.milieu {
  background-position-y:  center;
  grid-area: DM;
}

.accolade.droite.bas {
  background-position-y:  bottom;
  grid-area: DB;
}

/* text-decoration: red wavy underline; → moche */
#souligne {
  background: url('souligné-rouge.svg') repeat-x;
  background-position-y: 90%;
  background-size: auto 5px;
}

@keyframes interro {
  0% {
    transform: scale(30%);
  }

  50% {
    transform: scale(100%);
  }

  100% {
    transform: scale(30%);
  }
}

.interro {
  display: inline-block;
  width: 13px;
  height: 50px;
}

#interro1 {
  animation: interro 1s infinite;
}

#interro2 {
  animation: interro 2s infinite;
}

#interro3 {
  animation: interro 1.5s infinite;
}

.syllabe-he {
  color: limegreen;
}

.syllabe-li {
  color: yellow;
}

.syllabe-xo {
  color: orange;
}

#youtube {
  border-radius: 10px;
  padding: 0.1em 2em 1.2em;
  max-width: 30%;
  min-width: 280px;
  margin: 5em auto 12em;
  background: #4898bd;
  font-size: 0.8em;
  text-align: justify;
}

#youtube h3 {
  text-align: center;
}

footer {
  background: var(--bleu-pied);
  color: white;
  display: flex;
  justify-content: center;
  padding: 3em 0 6em;
}

#footer-conteneur {
  max-width: 1650px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  gap: 3em;
}

footer #coordonnees,
footer #contact {
  flex: 1 0 auto;
  font: 22px 'Saira Condensed Light', sans-serif;
}

footer #coordonnees a {
  font-weight: normal;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

footer #mlevkvklvkzubar {
  display: inline-block;
  background:
    no-repeat url("images/mlevkvklvkzubar1.svg") left / 234px 19px,
    no-repeat url("images/mlevkvklvkzubar2.svg") left / 234px 19px,
    no-repeat url("images/mlevkvklvkzubar3.svg") left / 234px 19px,
    no-repeat url("images/mlevkvklvkzubar4.svg") left / 234px 19px;
  width: 235px;
  height: 20px;
}

footer #c2::after {
  content: " *";
}

footer #c1 img,
footer #c2 img {
  vertical-align: middle;
  margin-right: 5px;
}

#c3 {
  margin-top: 15px;
}

#c3 a:hover {
  background: linear-gradient(white 0%, white 100%) 38px 24px / 64px 1px no-repeat;
}

#c3 small {
  font-size: 0.4em;
  margin-left: 1em;
  vertical-align: text-top;
}

#c3 small a {
  text-decoration: none;
  border-bottom: 1px dotted aliceblue;
}

footer #coords-divers {
  font-size: 0.6em;
  line-height: 1;
}

footer #signature {
  text-align: center;
}

footer #signature a[href="#top"]:hover {
  background: none;
}

footer #signature img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

footer #signature #no-cookie {
  width: 28px;
  height: 22px;
  vertical-align: middle;
}

footer #signature small {
  font-size: 0.6em;
}

footer #legal {
  font-size: 12px;
}

#mode-nuit {
  display: none;
  position: absolute;
  top: 4px;
  right: 0;
  width: 100%;
  height: 34px;
  overflow-x: hidden;
}

#mode-nuit div {
  white-space: nowrap;
  position: absolute;
  left: 100%;
  transform: translateX(-34px);
  background: #333;
  border: 2px solid black;
  border-right: unset;
  border-bottom-left-radius: 16px;
  border-top-left-radius: 16px;
  padding: 4px 8px;
  color: #888;
  font-size: 0.8em;
}

#mode-nuit div:active,
#mode-nuit div:hover {
  animation: repli 3s;
}

@keyframes repli {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(-100%);
  }
}

#mode-nuit img {
  vertical-align: middle;
}

@media screen and (min-width: 1860px) {
  #texte {
    position: relative;
  }

  #exemples {
    position: absolute;
    left: -340px;
    font-size: 40px;
    margin-top: -2px;
  }

  #qui-suis-je {
    position: absolute;
    left: 180px;
    font-size: 40px;
  }

  .capture {
    margin-right: -250px;
  }

  .capture::before {
    transform: skewY(-1.5deg);
  }

  .capture::after {
    display: none;
  }

  .real .liens {
    margin-top: 2.5em;
  }
}

@media screen and (max-width: 1170px) {
  .column.gauche,
  .column.droite {
    display: none;
  }

  .column.centre {
    flex: 1;
  }

  #texte {
    margin: 7em 1em;
  }

  #mon-rayon {
    margin: 1em;
  }
}

@media screen and (max-width: 1000px) {
  header {
    flex-direction: column;
  }

  header div {
    width: 100%;
    text-align: center;
  }

  header h1 {
    display: block;
  }

  header h1 img {
    max-width: 30px;
    height: auto;
  }

  .capture {
    float: none;
    margin: 1em 0;
    max-width: 94%;
  }

  #texte,
  #qui-suis-je-container {
    margin: 1em;
    padding: 1em;
  }

  #mon-rayon {
    margin: 0;
    padding: 1em;
  }

  #qui-suis-je {
    margin-top: 1.5em;
    margin-left: 0;
  }

  #youtube {
    margin-top: 3em;
  }

  footer {
    padding: 3em 1em;
  }
}

@media screen and (max-width: 768px) {
  #texte > p:first-child {
    font-size: 20px;
  }

  #texte h3 {
    font-size: 24px;
  }

  #texte h3 b {
    display: block;
    font-size: 28px;
  }

  #texte h3::before,
  #texte h3::after {
    display: none;
  }

  #texte h3 b::before,
  #texte h3 b::after {
    display: inline-block;
    width: 16px;
    height: 60px;
    vertical-align: middle;
    content: " ";
    background: no-repeat url("logo-fond-sombre.svg");
    background-size: 200px;
    background-position-y: top;
    filter: brightness(180%);
  }

  #texte h3 b::before {
    background-position-x: left;
  }

  #texte h3 b::after {
    background-position-x: right;
  }

  #mon-rayon {
    background: #555;
    box-shadow: unset;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--bleu-mode-nuit);
  }

  header h2 {
    color: #b5b5b5;
  }

  .column.gauche,
  .column.droite {
    background-color: var(--bleu-mode-nuit);
  }

  .column.centre {
    background: url("images/fond1.svg") repeat-x, var(--bleu-mode-nuit);
  }

  .logos {
    filter: brightness(150%);
  }

  #texte {
    color: #ccc;
    background: #173c4d;
  }

  header h1,
  #texte h3 {
    color: #679ab3;
  }

  #texte .real .autres p {
    color: #999;
  }

  footer {
    background: #333;
  }

  #mode-nuit {
    display: block;
  }
}

@media (prefers-contrast: more) {
  footer a,
  .real .liens a,
  #qui-suis-je-container p,
  #pourquoi-centre,
  #pourquoi-centre a,
  #mon-rayon a,
  #mon-rayon h3 {
    color: white !important;
  }

  body,
  header h1,
  header h2,
  #texte a,
  #youtube a,
  #texte h3,
  #texte .logos h3,
  #texte > p:first-child,
  #texte #experience,
  #texte .real .autres p {
    color: black !important;
  }
}
