/* Style global : polices, variables, base, modales et carte. */

/* font face */
@font-face {
    font-family: "Brown Pen";
    src: url("fonts/BrownPen.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* variables */
:root {
    --primary-color: #FEB914;
    --secondary-color: #0A4B81;
    --text-color: #2c3e50;
    --muted-color: #7fa7a9;
    --bg-light: #f4f9f9;
    --border-color: #dce6e6;
    --border-radius: 10px;
    --btn-radius: 8px;
    --shadow: 0 8px 20px rgba(10, 75, 129, 0.15);
    --transition: all 0.3s ease;
}

/* base */
html,
body {
    background-color: var(--bg-light);
}

body {
    font-family: "Poiret One", sans-serif;
    font-weight: 400; /* poiret one n'a pas de vrai gras */
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.35px; /* lisibilité */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

main,
section,
.container-fluid {
  background-color: var(--bg-light) !important;
}

/* boutons */
.btn,
button.btn,
input[type="submit"],
input[type="button"] {
    border-radius: var(--btn-radius);
}


/* titres */
h1 {
    font-family: "Brown Pen";
    font-weight: 100;
    font-size: 50px;
    color: var(--text-color);
    margin: 0;
}

h6 {
    font-family: "Poiret One", sans-serif;
    font-weight: 400;
    color: var(--primary-color);
    font-size: 50px;
    margin: 0;
    letter-spacing: 0.6px;
    text-shadow: 0 0 0.7px currentColor; /* renfort visuel */
}

/* logo */
.logo-size {
    width: 240px !important;
    height: 120px;
    margin-top: -10px;
    margin-left: 0;
}



/* modale */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeinmodal 0.4s ease;
    overflow: auto;
}

/* contenu modale */
.modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: slideinmodal 0.4s ease;
    max-height: 90vh;
}

/* titre modale */
.modal h4 {
    font-family: "Lavishly Yours", cursive;
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.9rem;
    margin-bottom: 20px;
    text-align: center;
}

/* bouton fermer */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--muted-color);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
    z-index: 10;
}

/* bouton fermer hover */
.close:hover {
    color: var(--primary-color);
    background: #f0f8ff;
    transform: scale(1.1);
}

/* map */
#map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* animations */
@keyframes fadeinmodal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideinmodal {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes custom-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* fix hover image */
a:hover img {
    transform: rotate(0deg);
}

/* mini map */
.mini-map-container {
    max-width: 300px;
    margin: 0 auto;
}
