html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* --- Styles Généraux --- */
.Body {
    color: #000000;
    background-color: #dbdcdc;
}

.Page {
    width: 95%;
    min-height: 99%;
    border-style: dotted;
    border-width: 1px;
    border-color: #000000;
    background-color: #FFFFFF;
    position: relative;
    left: 50%;
    transform: perspective(1px) translateX(-50%);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 80px; /* Espace pour le header fixed-top */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Couleurs de fond --- */
.BackBleuCiel {
    background-color: #6ca6cc;
}

.BackVioletClair {
    background-color: #835e80;
}

.BackRougeClair {
    background-color: #b86a79;
}

.BackOrangeClair {
    background-color: #eba58c;
}

.BackVertClair {
    background-color: #8fc5a6;
}

.BackBleuMarine {
    background-color: #5558be;
}

.BackRoseClair {
    background-color: #f6d6f4;
}

.BackSable {
    background-color: #d9c9a3;
}

.BackgroundColored {
    background-color: #b2c6c5;
}

.BackgroundWhite {
    background-color: #ffffff;
}

.BackgroundGray {
    background-color: #dbdcdc;
}

/* --- Header Principal (PageMainHeader) --- */
.PageMainHeader {
    width: 99%;
    height: 340px;
    border-radius: 10px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center; /* Centre verticalement le logo */
    justify-content: space-between; /* Espace le logo et le portrait */
    overflow: hidden;
}

.LogoWrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Centre le logo dans l'espace restant */
    padding-left: 50px; /* Evite que le logo colle trop au bord gauche sur PC */
}

.LogoImg {
    width: 333px;
    height: auto;
    flex-shrink: 0;
}

.PortraitImg {
    align-self: flex-end; /* Colle l'image au bas du bandeau */
    max-width: 380px;
    height: auto;
    flex-shrink: 0;
    z-index: 2;
}

/* --- Typographie et Titres --- */
.MainHeaderText {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    color: #FFFFFF;
    padding: 10px;
    text-align: justify;
    line-height: 1;
}

.MainText {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    padding-left: 10px;
    padding-right: 10px;
    text-align: justify;
}

/* Variante de MainText pour les grilles de planning (colonnes courtes, pas de justification) */
.MainTextCalendar {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
}

.Titre,
.Titre1 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #000000;
    margin: 4px 20px 0 20px;
}

/* Variante blanche de .Titre1 pour les bandeaux à fond foncé */
.TitreBlanc {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #FFFFFF;
    margin: 4px 20px 0 20px;
}

.Titre2 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    color: #721e75;
    margin: 20px 20px 0 20px;
    line-height: 1.2;
}

.Titre3 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 500;
    color: #000000;
    margin: 18px 18px 0 18px;
    line-height: 1.2;
}

.Ville {
    color: #98289c;
    font-size: 16px;
}

.Jour {
    color: #721e75;
    font-size: 20px;
    font-weight: bold;
}

/* --- Liens et Eléments Spéciaux --- */
.LinkHome {
    color: #721e75;
    text-decoration: none;
    font-weight: 400;
}

    .LinkHome:hover {
        color: #721e75;
        text-decoration: underline;
        background-color: #e0d5e0;
        border-radius: 4px;
    }

.importantText {
    color: #721e75;
    background-color: #e0d5e0;
    border-radius: 4px;
    border: solid 1px #721e75;
    padding: 2px;
}

.center-div-Horizontal {
    position: relative;
    text-align: center;
}

/* pour repeater des recommandations */
.container-recommandation {
    border: 1px solid #C2C2C2;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.header-rec {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.icone-ronde {
    width: 30px;
    height: 30px;
    background-color: blue;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nom-rec {
    font-weight: bold;
    color: black;
}

.date-rec {
    color: black;
}

.site-rec {
    color: gray;
    font-size: 0.9em;
}

.texte-rec {
    width: 100%;
    text-align: justify;
    font-size: 14px;
    line-height: 1.4;
}

/* --- Champs de formulaire (Inscription) --- */
.form-control,
.form-select,
.input-group-text {
    border-color: #C2C2C2;
}

.form-control:focus,
.form-select:focus {
    border-color: #721e75;
    box-shadow: 0 0 0 0.25rem rgba(114, 30, 117, 0.25);
}

.input-group:focus-within .input-group-text {
    border-color: #721e75;
    color: #721e75;
}

/* --- Popup de confirmation d'inscription --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-window {
    background-color: #FFFFFF;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-header {
    background-color: #721e75;
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}

.popup-body {
    padding: 16px;
    overflow-y: auto;
    text-align: left;
}

.popup-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e0d5e0;
}

/* --- Media Query Smartphone --- */
@media (max-width: 768px) {
    .Page {
        margin-top: 60px;
    }

    .PageMainHeader {
        height: auto; /* Permet au bloc de s'agrandir verticalement */
        flex-direction: column; /* Empile le logo et le portrait */
        padding: 20px 0 0 0;
    }

    .LogoWrapper {
        padding-left: 0;
        margin-bottom: 10px;
    }

    .LogoImg {
        width: 250px; /* Plus petit sur mobile */
        height: auto;
    }

    .PortraitImg {
        position: static !important;
        align-self: center; /* Centre le portrait sous le logo */
        max-width: 280px;
    }
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}
