﻿/* ==========================================================
   CV Sanae Griache - feuille de style
   D'apres la maquette Celypse, entierement redessinee
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@300;400;500&display=swap");

/* ---------- Base ---------- */

body
{
    margin: 0;
    background-color: #faf8f5;
    color: #2b2b2b;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
}

#page
{
    width: 900px;
    margin: 0 auto;
    padding: 60px 0 40px 0;
}

a
{
    color: #8c6d46;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover
{
    color: #2b2b2b;
}

/* ---------- En-tete ---------- */

header
{
    text-align: center;
    margin-bottom: 50px;
}

#titre_page
{
    margin-bottom: 30px;
}

header h1
{
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3.4em;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin: 0;
    line-height: 1.1;
}

.sous-titre
{
    font-size: 0.72em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #8c6d46;
    margin: 14px 0 0 0;
}

/* ---------- Navigation ---------- */

nav
{
    border-top: 1px solid #e3ddd3;
    border-bottom: 1px solid #e3ddd3;
    padding: 14px 0;
}

nav ul
{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav li
{
    display: inline-block;
    margin: 0 18px;
}

nav a
{
    font-size: 0.75em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #2b2b2b;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

nav a:hover
{
    color: #8c6d46;
    border-bottom: 1px solid #8c6d46;
}

/* Sous-menu */

nav .sous-menu
{
    margin-top: 10px;
}

nav .sous-menu a
{
    font-size: 0.68em;
    letter-spacing: 0.2em;
    color: #8c6d46;
}

/* ---------- Mise en page : contenu + encadre ---------- */

section
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

article
{
    width: 600px;
}

aside
{
    width: 230px;
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff;
    border: 1px solid #ece6dc;
}

/* ---------- Titres ---------- */

h2
{
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6em;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #2b2b2b;
    margin: 40px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e3ddd3;
}

article h2:first-child
{
    margin-top: 0;
}

aside h2
{
    font-size: 1.3em;
    margin: 0 0 20px 0;
    border-bottom: none;
    padding-bottom: 0;
}

h3
{
    font-size: 0.95em;
    font-weight: 500;
    margin: 0;
}

/* ---------- Blocs du CV (date + detail) ---------- */

.bloc
{
    display: flex;
    margin-bottom: 22px;
}

.bloc .date
{
    flex: 0 0 120px;
    margin: 1px 0 0 0;
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #8c6d46;
}

.detail
{
    flex: 1;
}

.detail .lieu
{
    margin: 2px 0 6px 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.05em;
    color: #6b6258;
}

.detail ul
{
    margin: 6px 0 0 0;
    padding-left: 16px;
    font-size: 0.85em;
}

.detail li
{
    margin-bottom: 4px;
}

/* Listes simples (competences, langues) */

.liste
{
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.liste li
{
    padding: 8px 0;
    border-bottom: 1px dotted #e3ddd3;
}

.liste li:last-child
{
    border-bottom: none;
}

.liste strong
{
    font-weight: 500;
}

/* Paragraphes */

article p, aside p
{
    margin: 0 0 10px 0;
}

aside p
{
    font-size: 0.85em;
}

/* ---------- Photo ---------- */

#photo
{
    margin-bottom: 20px;
}

#photo img
{
    border: 1px solid #e3ddd3;
    padding: 5px;
    background-color: #faf8f5;
	object-fit: cover;
}

/* ---------- Bouton (pop-up) ---------- */

button
{
    margin-top: 10px;
    padding: 10px 18px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.7em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #2b2b2b;
    background-color: transparent;
    border: 1px solid #2b2b2b;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button:hover
{
    background-color: #2b2b2b;
    color: #faf8f5;
}

/* ---------- Pied de page ---------- */

footer
{
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #e3ddd3;
    text-align: center;
    font-size: 0.7em;
    letter-spacing: 0.05em;
    color: #9a9087;
}

footer p
{
    margin: 4px 0;
}

footer a
{
    color: #9a9087;
    border-bottom: 1px solid #d8d0c4;
}

footer a:hover
{
    color: #2b2b2b;
}
/* ---------- Pop-up de bienvenue ---------- */

.popup-fond
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 43, 43, 0.55);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.popup-fond.visible
{
    display: flex;
    animation: apparition 0.5s ease;
}

.popup-boite
{
    position: relative;
    width: 420px;
    padding: 50px 45px 40px 45px;
    background-color: #faf8f5;
    border: 1px solid #e3ddd3;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: montee 0.5s ease;
}

.popup-boite .popup-petit
{
    margin: 0 0 10px 0;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #8c6d46;
}

.popup-boite h2
{
    margin: 0 0 18px 0;
    padding: 0;
    border: none;
    font-size: 2.2em;
}

.popup-boite p
{
    font-size: 0.9em;
    margin: 0 0 25px 0;
}

.popup-bouton
{
    display: inline-block;
    padding: 12px 30px;
    background-color: #2b2b2b;
    color: #faf8f5;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    transition: background-color 0.3s;
}

.popup-bouton:hover
{
    background-color: #8c6d46;
    color: #faf8f5;
}

.popup-boite .popup-lien
{
    margin: 18px 0 0 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.68em;
    color: #9a9087;
    text-decoration: underline;
}

.popup-boite .popup-lien:hover
{
    background: none;
    color: #2b2b2b;
}

.popup-boite .popup-fermer
{
    position: absolute;
    top: 12px;
    right: 16px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 1.8em;
    line-height: 1;
    letter-spacing: 0;
    color: #9a9087;
}

.popup-boite .popup-fermer:hover
{
    background: none;
    color: #2b2b2b;
}

@keyframes apparition
{
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes montee
{
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}