/* =========================================
   THÈME
   ========================================= */

:root {
    /* Couleur des marges / arrière-plan de la page */
    --color-background: #0F6B96;

    /* Couleur du contenu central */
    --color-content: #1eb5ea;

    /* Couleur principale des textes */
    --color-primary: #ffffff;

    /* Couleur d'accent */
    --color-accent: #E2403A;
    --color-beige: #efe9e1;
    --color-black: #000;

    /* Géométrie */
    --page-margin: 60px;
    --page-max-width: 500px;
    --content-padding: 30px;
}


/* =========================================
   BASE
   ========================================= */

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;

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

    padding: var(--page-margin);

    background-image: url("photo_Barnave.jpeg");
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    color: var(--color-primary);
    background-attachment: fixed;

    font-family: "Montserrat", sans-serif;
}


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

.page {
    width: calc(100% - (var(--page-margin) * 2));
    max-width: var(--page-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: var(--content-padding);
    background: var(--color-content);
    border-radius: 16px;
    animation: floating 4s ease-in-out infinite;
}

.icon-iad {
    width: 20%;
    height: auto;
}

/* =========================================
   PROFIL
   ========================================= */

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.profile-image-link {
    display: block;
    margin-bottom: 18px;
    line-height: 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
    transition: transform 0.2s ease;
}

.profile-image-link:hover .profile-image {
    transform: scale(1.05);
}

.profile h1 {
    margin: 0 0 5px;
    font-size: 28px;
    font-weight: 700;
}

.profile-description {
    max-width: 400px;
    margin: 15px 0 0 0;
    line-height: 1.5;
    text-align: start;
    font-weight: 400;
    font-size: 14px;
}


/* =========================================
   LIENS
   ========================================= */

.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.links-list a {
    display: block;
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--color-beige);
    color: var(--color-black);
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.links-list a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

.page {
    position: relative;
    width: 100%;
    max-width: var(--page-max-width);
    padding: var(--content-padding);
    background: var(--color-content);
    border-radius: 16px;
}


/* =========================================
   BOUTON PARTAGE
   ========================================= */

.share-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background: transparent;
    color: var(--color-primary);
    font-size: 20px;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.share-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.05);
}

.share-button:active {
    transform: scale(0.95);
}

/* =========================================
   INFORMATIONS DE CONTACT
   ========================================= */

.contact-button {
    width: 100%;
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--color-beige);
    color: var(--color-black);
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.contact-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.contact-info {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding: 15px;
    border-radius: 10px;
    background: var(--color-beige);
    text-align: start;
}


/* Quand la section est ouverte */

.contact-info.open {
    display: flex;
}

.contact-info a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 15px;
    padding: 5px;
}

.contact-info a:hover {
    color: var(--color-black);
    font-weight: 500;
    text-decoration: underline;
}

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

.footer {
    width: 100%;
    text-align: center;
}

.footer p {
    margin: 0;
    color: var(--color-primary);
    opacity: 0.8;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

.footer a {
    color: var(--color-primary);
}

/* =========================================
   MENTIONS LÉGALE
   ========================================= */

.mentions-legales {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.mentions-legales h4 {
    text-decoration: underline;
}

.mentions-legales li {
    list-style-type: none;
}

.mentions-legales p,
.mentions-description {
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    font-size: 12px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {
    :root {
        --page-margin: 20px;
        --content-padding: 20px;
    }

    .page {
        border-radius: 12px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile h1 {
        font-size: 24px;
    }
}