/* ============================================================
   Guillaume FERARD Portfolio
   Design System
============================================================ */

/* =========================
   RESET
========================= */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    min-height:100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height:1.65;

    background:var(--color-bg);

    color:var(--color-text);

    text-rendering:optimizeLegibility;

    -webkit-font-smoothing:antialiased;

    background:
        radial-gradient(circle at 15% 20%, rgba(37,99,235,.12), transparent 35%),
        radial-gradient(circle at 80% 15%, rgba(59,130,246,.10), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(14,165,233,.08), transparent 35%);
}

@media (prefers-color-scheme: dark) {
    body {
        background: var(--color-bg);
    }
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

button{
    border:none;
    background:none;
    cursor:pointer;
    font:inherit;
}

section{

    padding-block:7rem;

}

/* =========================
    COLORS
========================= */

:root{

    --color-bg:#f8fafc;

    --color-surface:#ffffff;

    --color-text:#111827;

    --color-text-light:#6b7280;

    --color-border:#e5e7eb;

    --color-primary:#2563eb;

    --color-primary-light:#3b82f6;

    --color-shadow:rgba(15,23,42,.08);

    --color-shadow-hover:rgba(15,23,42,.16);

    --radius-xs:6px;

    --radius-sm:10px;

    --radius:16px;

    --radius-lg:22px;

    --radius-xl:34px;

    --container:1180px;

    --transition:.35s cubic-bezier(.4,0,.2,1);

}

@media (prefers-color-scheme:dark){

:root{

    --color-bg:#09090b;

    --color-surface:#18181b;

    --color-text:#fafafa;

    --color-text-light:#a1a1aa;

    --color-border:#27272a;

    --color-shadow:rgba(0,0,0,.25);

    --color-shadow-hover:rgba(0,0,0,.4);

}

}

h1{

    font-size:clamp(1.5rem,4vw,2.75rem);

    line-height:1.05;

    letter-spacing:-2px;

    font-weight:800;

}

h2{

    font-size:clamp(1rem,2.5vw,1.625rem);

    line-height:1.05;

    letter-spacing:-2px;

    margin-bottom:1rem;

}

@media (max-width: 768px) {
    h2 {
        font-size:clamp(2rem,5vw,3.25rem);
    }
}

h3{

    font-size:1.35rem;

    margin-bottom:.5rem;

}

p{

    color:var(--color-text-light);

}

.container{

    width:min(100% - 3rem,var(--container));

    margin-inline:auto;

}

.header{

    position:fixed;

    inset:0 0 auto 0;

    z-index:500;

    backdrop-filter:blur(16px);

    border-bottom:1px solid transparent;

    transition:var(--transition);

}

.header.scrolled{

    background:rgba(255,255,255,.75);

    border-color:var(--color-border);

}

@media(prefers-color-scheme:dark){

.header.scrolled{

    background:rgba(15,15,15,.75);

}

}

.header nav{

    display:flex;

    align-items:center;

    justify-content:space-between;

    height:76px;

}

.logo{

    font-weight:700;

    font-size:1.1rem;

    letter-spacing:-.5px;

}

#menu{

    display:flex;

    gap:2rem;

}

#menu a{

    position:relative;

    color:var(--color-text-light);

    transition:.3s;

}

#menu a:hover{

    color:var(--color-text);

}

#menu a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:100%;

    height:2px;

    transform:scaleX(0);

    transform-origin:left;

    background:var(--color-primary);

    transition:var(--transition);

}

#menu a:hover::after{

    transform:scaleX(1);

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background: transparent;

    z-index:-2;

}

.hero{

    position:relative;

    overflow:hidden;

    min-height:100vh;

    display:flex;

    align-items:center;

}

.hero-background{

    position:absolute;

    inset:0;

    z-index:-2;

    background:transparent;

}

.hero-grid{

    display:grid;

    grid-template-columns:1fr 500px;

    gap:6rem;

    align-items:center;

}

.hero-content{

    max-width:650px;

}

.hero-tag{

    display:inline-flex;

    align-items:center;

    gap:.5rem;

    padding:.5rem 1rem;

    border-radius:999px;

    background:#dbeafe;

    color:#2563eb;

    font-weight:600;

    margin-bottom:2rem;

}

.hero-tag::before{

    content:"";

    width:8px;

    height:8px;

    border-radius:50%;

    background:#10b981;

}

.hero h1{

    max-width:760px;

}

.hero p{

    margin:2rem 0;

    max-width:620px;

    font-size:1.15rem;

}

.hero-stack{

    display:flex;

    flex-wrap:wrap;

    gap:.8rem;

    margin-bottom:3rem;

}

.hero-stack span{

    padding:.55rem 1rem;

    border-radius:999px;

    border:1px solid var(--color-border);

    background:var(--color-surface);

    color:var(--color-text);

    font-size:.9rem;

    transition:.35s;

}

.orb{

    position:absolute;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:1rem 1.4rem;

    border-radius:999px;

    background:var(--color-surface);

    border:1px solid var(--color-border);

    box-shadow:0 20px 40px var(--color-shadow);

    color:var(--color-text);

    font-weight:600;

}

.php{

    top:5%;
    left:35%;

}

.laravel{

    top:25%;
    right:10%;

}

.node{

    top:45%;
    left:5%;

}

.api{

    top:52%;
    right:35%;

}

.postgres{

    bottom:18%;
    left:30%;

}

.docker{

    bottom:5%;
    right:5%;

}

.git{

    top:60%;
    right:75%;

}

.hero-stack span:hover{

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.hero-visual{

    position:relative;

    height:600px;

}

.hero::after{

    content:"";

    position:absolute;

    inset:0;

    opacity:.05;

    background-image:

        linear-gradient(
            rgba(0,0,0,.15) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(0,0,0,.15) 1px,
            transparent 1px
        );

    background-size:48px 48px;

    z-index: -1;

}

.tag{

    display:inline-flex;

    align-items:center;

    padding:.45rem .9rem;

    border-radius:999px;

    background:#dbeafe;

    color:#1d4ed8;

    font-size:.85rem;

    margin-bottom:2rem;

    font-weight:600;

}

.button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:1rem 1.7rem;

    border-radius:999px;

    transition:var(--transition);

    font-weight:600;

}

.primary{

    background:var(--color-primary);

    color:white;

}

.primary:hover{

    transform:translateY(-3px);

    background:var(--color-primary-light);

}

.ghost{

    border:1px solid var(--color-border);

}

.ghost:hover{

    background:var(--color-surface);

    box-shadow:0 8px 30px var(--color-shadow);

}

.card{

    background:var(--color-surface);

    border:1px solid var(--color-border);

    border-radius:var(--radius);

    padding:2rem;

    transition:var(--transition);

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:0 30px 70px var(--color-shadow-hover);

}

.reveal{

    opacity:0;

    transform:translateY(40px);

    transition:1s;

}

.reveal.visible{

    opacity:1;

    transform:none;

}

#progress-bar{

    position:fixed;

    top:0;

    left:0;

    height:3px;

    width:0;

    background:linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );

    z-index:9999;

}

#back-to-top{

    position:fixed;

    right:2rem;

    bottom:2rem;

    width:52px;

    height:52px;

    border-radius:50%;

    background:var(--color-primary);

    color:white;

    opacity:0;

    pointer-events:none;

    transition:var(--transition);

}

#back-to-top.show{

    opacity:1;

    pointer-events:auto;

}

@media(max-width:900px){

.hero-grid{

    grid-template-columns:1fr;

    text-align:center;

}

.hero-actions{

    justify-content:center;

}

#menu{

    display:none;

    position:fixed;

    top:76px;

    left:0;

    right:0;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(16px);

    padding:2rem;

    flex-direction:column;

    gap:1.5rem;

    border-bottom:1px solid var(--color-border);

    z-index:499;

}

#menu.active{

    display:flex;

}

#menu a{

    font-size:1.1rem;

    padding:.5rem 1rem;

    border-radius:var(--radius-xs);

}

#menu a:hover{

    background:var(--color-surface);

}

#menu-button{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    width:40px;

    height:40px;

    gap:5px;

    z-index:501;

}

#menu-button span{

    display:block;

    width:24px;

    height:2px;

    background:var(--color-text);

    border-radius:999px;

    transition:var(--transition);

}

#menu-button.active span:nth-child(1){

    transform:rotate(45deg) translate(5px,5px);

}

#menu-button.active span:nth-child(2){

    opacity:0;

}

#menu-button.active span:nth-child(3){

    transform:rotate(-45deg) translate(5px,-5px);

}

}

@media (prefers-color-scheme: dark) and (max-width:900px) {
    #menu {
        background: rgba(15, 15, 15, .95);
    }
}

@keyframes float{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-15px);

    }

    100%{

        transform:translateY(0);

    }

}

.php{

    animation:float 6s infinite ease-in-out;

}

.laravel{

    animation:float 7s infinite ease-in-out;

}

.node{

    animation:float 8s infinite ease-in-out;

}

.api{

    animation:float 5s infinite ease-in-out;

}

.postgres{

    animation:float 9s infinite ease-in-out;

}

.docker{

    animation:float 6.5s infinite ease-in-out;

}

.git{

    animation:float 7.5s infinite ease-in-out;

}

/* ABOUT SECTION */
#about {
  padding: 4rem 0;
  background:transparent;
}

#about .section-title {
  margin-bottom: 3rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0em auto 3em;
  text-align: center;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 2rem 0;
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#about.is-visible .about-text {
  opacity: 1;
  /* transform: translateY(0); */
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: clamp(150px, 30%, 250px);
  box-shadow: 0 4px 6px -1px var(--color-shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

#about.is-visible .highlight-card {
  opacity: 1;
  /* transform: translateY(0); */
}

.highlight-card:hover {
  transform: translateY(-1px);
  box-shadow:0 30px 70px var(--color-shadow-hover);
}

.highlight-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .about-highlights {
    gap: 1rem;
  }
  .highlight-card {
    width: clamp(120px, 40%, 200px);
  }
}

/* ===== EXPERIENCE SECTION ===== */
#experience {
  padding: 4rem 0;
  background:transparent;
  position: relative;
}

#experience .section-title {
  margin-bottom: 3rem;
  text-align: center;
}

/* Timeline structure */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #E5E7EB;
}

/* Timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#experience.is-visible .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

/* Delay animation for each item (staggered effect) */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }

/* Timeline marker (circle) */
.timeline-marker {
  position: absolute;
  left: -12px; /* Center on the line */
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2563EB;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px #E5E7EB;
}

/* Timeline content */
.timeline-content {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-left: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.timeline-title {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  color: #6B7280;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.timeline-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-details li {
  color: #111827;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.timeline-details li::before {
  content: "•";
  color: #2563EB;
  position: absolute;
  left: 0;
}

/* Year label (optional, if you want to display the year) */
.timeline-item::after {
  content: attr(data-year);
  position: absolute;
  left: -60px;
  top: 0;
  color: #6B7280;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  /* .timeline {
    padding-left: 1.5rem;
  } */

  .timeline::before {
    left: 15px;
  }

  .timeline-marker {
    left: -22px;
  }

  .timeline-content {
    margin-left: 1rem;
    padding: 1rem;
  }

  .timeline-item::after {
    left: -50px;
    font-size: 0.75rem;
  }
}

/* @media (max-width: 480px) {
  .timeline-item::after {
    display: none;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: 3px;
  }

  .timeline-content {
    margin-left: 0.75rem;
  }
} */

.oclock-icon {
  width: 30px;
  height: 30px;
  margin-right: 0.4rem;
  vertical-align: middle;
  display: inline;
}

/* ===== SKILLS SECTION ===== */
#skills {
  padding: 4rem 0;
  background:transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.skills-category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.category-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #2563EB;
  border-radius: 3px;
}

/* Skills Grid (Hard Skills) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#skills.is-visible .skill-card {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for cards */
.skill-card:nth-child(1) { transition-delay: 0.1s; }
.skill-card:nth-child(2) { transition-delay: 0.2s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.4s; }

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.skill-icon {
  font-size: 1.5rem;
}

.skill-header h4 {
  margin: 0;
  color: #111827;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.25rem;
  color: #111827;
}

.skill-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2563EB;
}

/* Skill levels (visual indicator) */
.skill-item[data-level="expert"]::before {
  background-color: #2563EB;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #2563EB;
}

.skill-item[data-level="advanced"]::before {
  background-color: #3B82F6;
}

.skill-item[data-level="intermediate"]::before {
  background-color: #6B7280;
}

/* Soft Skills Badges */
.soft-skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.soft-skill-badge {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#skills.is-visible .soft-skill-badge {
  opacity: 1;
  transform: scale(1);
}

/* Staggered animation for badges */
.soft-skill-badge:nth-child(1) { transition-delay: 0.5s; }
.soft-skill-badge:nth-child(2) { transition-delay: 0.6s; }
.soft-skill-badge:nth-child(3) { transition-delay: 0.7s; }
.soft-skill-badge:nth-child(4) { transition-delay: 0.8s; }
.soft-skill-badge:nth-child(5) { transition-delay: 0.9s; }

.soft-skill-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.badge-icon {
  font-size: 1.25rem;
}

.badge-text {
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .soft-skills-container {
    gap: 0.75rem;
  }

  .soft-skill-badge {
    padding: 0.5rem 1rem;
  }

  .badge-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-card {
    padding: 1rem;
  }
}

/* ===== PROJECTS SECTION ===== */
#projects {
  padding: 4rem 0;
  background:transparent;
}

#projects .section-title {
  margin-bottom: 3rem;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    box-shadow 0.3s ease;
}

#projects.is-visible .project-card {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-logo {
  width: 40px;
  height: 40px;
  background: #F8F9FB;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.5rem;
}

.project-info h3 {
  margin: 0;
  color: #111827;
  font-size: 1.25rem;
}

.project-subtitle {
  margin: 0.25rem 0 0;
  color: #6B7280;
  font-size: 0.875rem;
}

.project-description {
  color: #111827;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: #F8F9FB;
  color: #2563EB;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #2563EB;
  color: #FFFFFF;
  border: 1px solid #2563EB;
}

.btn-primary:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #2563EB;
  border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
  background-color: #F8F9FB;
  border-color: #D1D5DB;
}

.btn-icon {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-logo {
    width: 32px;
    height: 32px;
  }

  .logo-icon {
    font-size: 1.25rem;
  }
}

.project-image {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #F8F9FB;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTACT SECTION ===== */
#contact {
  padding: 4rem 0;
  background:transparent;
}

#contact .section-title {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #6B7280;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F9FB;
  border-radius: 0.5rem;
  color: #2563EB;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info {
  flex: 1;
}

.contact-title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: #6B7280;
  font-weight: 500;
}

.contact-link {
  color: #2563EB;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #1D4ED8;
}

.contact-text {
  margin: 0;
  color: #111827;
  font-size: 1rem;
}

/* Formulaire */
.contact-form {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#contact.is-visible .contact-form {
  opacity: 1;
  transform: translateY(0);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 500;
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111827;
  background: #FFFFFF;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9CA3AF;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Bouton */
.contact-form .btn {
  align-self: flex-start;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .contact-item {
    padding: 0.75rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-icon {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #F8F9FB;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    radial-gradient(
      to right,
      rgba(37, 99, 235, 0.2),
      rgba(59, 130, 246, 0.1),
      transparent
    );
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  font-size: 1.5rem;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: #6B7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.footer-link:hover {
  color: #2563EB;
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #6B7280;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-link:hover {
  color: #2563EB;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #E5E7EB;
  margin-top: 2rem;
}

.copyright {
  margin: 0;
  color: #6B7280;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-link {
  color: #6B7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: #2563EB;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .footer-content {
    gap: 1.5rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .footer-social {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}