/* ==============================
   Styles généraux de la page
   ============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7efe6;
    color: #2f2926;
    line-height: 1.6;
}

/* Couleurs principales réutilisées dans tout le CV */
:root {
    --cream: #f7efe6;
    --sand: #ead7c4;
    --brown: #9a7a67;
    --dark: #2f2926;
    --white: #fffaf5;
}

/* ==============================
   En-tête avec le nom et le profil
   ============================== */
.hero {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 40px auto 25px;
    padding: 45px;
    background: linear-gradient(135deg, var(--sand), var(--white));
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(79, 55, 42, 0.12);
}

/* Cercle qui contient la photo de profil */
.profile-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;

    border: 5px solid #ffffff;
    background-color: #f3e8dc;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* Image à l'intérieur du cercle */
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* Zoom sur la photo */
    transform: scale(2.50);

    /* Déplace l'image si le visage n'est pas bien centré */
    object-position: center 50%;
}


.tag,
.section-label {
    color: var(--brown);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.78rem;
}

h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.88;
    font-weight: 400;
    margin: 10px 0 20px;
}

.intro {
    max-width: 700px;
    font-size: 1.05rem;
}

/* ==============================
   Structure principale du CV
   ============================== */
.page-layout {
    max-width: 1100px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

.sidebar,
.content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.card,
.section-block {
    background: var(--white);
    padding: 26px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(79, 55, 42, 0.08);
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.meta {
    color: var(--brown);
    font-weight: 700;
    margin-bottom: 15px;
}

.clean-list {
    list-style: none;
}

.clean-list li + li {
    margin-top: 9px;
}

a {
    color: var(--dark);
    text-decoration: none;
}

a:hover {
    color: var(--brown);
}

/* ==============================
   Petites étiquettes de compétences
   ============================== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: var(--sand);
    color: var(--dark);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
}

/* ==============================
   Timeline pour les expériences
   ============================== */
.timeline-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 16px;
    padding-top: 18px;
    position: relative;
}

.timeline-item:not(:last-child) {
    padding-bottom: 24px;
    border-bottom: 1px solid #eaded2;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: var(--brown);
    border-radius: 50%;
    margin-top: 7px;
}

.timeline-item ul {
    padding-left: 18px;
}

.timeline-item li + li {
    margin-top: 6px;
}

/* ==============================
   Formation et projets
   ============================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.education-grid article,
.project-card {
    background: #f4e6d8;
    padding: 18px;
    border-radius: 18px;
}

.education-grid h3,
.project-card h3 {
    text-transform: none;
}

.projects p {
    max-width: 720px;
}

/* ==============================
   Adaptation pour téléphone et tablette
   ============================== */
@media (max-width: 820px) {
    .hero,
    .page-layout {
        grid-template-columns: 1fr;
        margin-left: 18px;
        margin-right: 18px;
    }

    .hero {
        text-align: center;
        justify-items: center;
        padding: 32px 22px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Optimisation simple pour l’impression */
@media print {
    body {
        background: white;
    }

    .hero,
    .card,
    .section-block {
        box-shadow: none;
    }
}
/* Bouton de retour vers la page d'accueil */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;

  display: inline-block;
  padding: 10px 18px;

  background-color: #9b7b6a;
  color: white;
  text-decoration: none;
  font-weight: 600;

  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

  transition: all 0.3s ease;
}

/* Effet quand on passe la souris sur le bouton */
.home-button:hover {
  background-color: #7d6254;
  transform: translateY(-2px);
}

.lien{
    color: #9a7a67;
    text-decoration: underline;
    text-transform: uppercase;
}
a:hover{
    color: black;
}