/* GENERAL */

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

* {
  margin: 0;
  padding: 0;
}
#desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
body {
  font-family: "Poppins", sans-serif;

}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 13vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  color: #30BA73;
  font-weight: bold;

}
.logo img {
  max-width: 200px;
  height: auto;
  margin-top: 20px;

}
.offre-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.offre-card ul li {
  list-style: none; /* safe fallback */
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav { position: relative; z-index: 30; }


.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  width: 48px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 6px;
  border-radius: 10px;
  transition: background 160ms ease;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}
.hamburger-icon:active { background: rgba(0,0,0,0.06); }

.hamburger-icon span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #111; /* change to your color */
  transition: transform 300ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease, width 220ms ease;
  transform-origin: center;
  width: 28px;
}

/* Slight variation for first/third line for better x-shape */
.hamburger-icon span:nth-child(1) { transform-origin: left center; }
.hamburger-icon span:nth-child(3) { transform-origin: left center; }

/* Open state: morph into X */
.hamburger-icon.open span:nth-child(1) {
  transform: translateX(3px) rotate(45deg);
  width: 28px;
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
  width: 18px;
}
.hamburger-icon.open span:nth-child(3) {
  transform: translateX(3px) rotate(-45deg);
  width: 28px;
}

/* Slide-in menu panel */
.menu-links {
  position: fixed;
  top: 0;
  right: -110%;
  width: min(84%, 360px);
  height: 100vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,250,0.9));
  backdrop-filter: blur(8px);
  box-shadow: -18px 24px 48px rgba(0,0,0,0.25);
  padding: 72px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(0);
  transition: right 360ms cubic-bezier(.2,.9,.3,1);
  z-index: 40;
  -webkit-tap-highlight-color: transparent;
}

/* When open */
.menu-links.open { right: 0; }

/* Menu links styling */
.menu-links li {
  list-style: none;
}
.menu-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #0b0b0b;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.menu-links a:active,
.menu-links a:hover {
  background: rgba(0,0,0,0.04);
  transform: translateX(6px);
}

/* Add a larger CTA */
.menu-links .cta {
  margin-top: 12px;
  background: linear-gradient(90deg,#2b7cff,#6bd1ff);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
}

/* Overlay that dims the page behind menu */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 35;
  pointer-events: none;
}
#menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile specific sizing (optional) */
@media (min-width: 720px) {
  /* hide hamburger on desktop if needed */
  #hamburger-nav { display: none; }
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
  background-image: url('./assets/fait.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
section#profile {
  padding-top: 0;
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
}
.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #f3f4f6;
}

.title {
  font-size: 3rem;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;

}
.title1 {
  font-size: 3rem;
  text-align: center;
  color: #f3f4f6;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 11rem;
  border-radius: 2rem;
  font-size: 1.03rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(48, 186, 115) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(48, 186, 115);
  color: white;
}

.btn-color-1:hover {
  background: rgb(25, 117, 70);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}
#about .section__pic-container {
  display: flex;
  flex-direction: column;    /* stack images vertically */
  align-items: center;
  gap: 1rem;
  width: 950px;              /* reduced width to "retrecir" the photos */
  margin: auto 0;
  height: auto;              /* let images determine height */
}

#about .section__pic-container img.about-pic {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* Optional: slightly different style for the second image */
#about .section__pic-container img.about-pic--second {
  opacity: 0.98;
  transform: scale(0.98);
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  margin: 0 10rem; /* Restore your section margin for content */
  box-sizing: border-box;
  z-index: 1;
}

#experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  background: #f3f4f6;
  transform: translateX(-50%);
  z-index: -1;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  justify-content: center;
  flex-direction: column;
  height: 70vh;
  background-color: #f3f4f6;
  margin: 0; /* Remove side margins */
  width: 100vw; /* Full viewport width */
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  margin: 1rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}
.contact-form {
  max-width: 500px;
  margin: 1rem auto;
  padding: 2rem;

  background: rgb(250, 250, 250);
  border-radius: 2rem;
  border: rgb(163, 163, 163) 0.1rem solid;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  color: rgb(85, 85, 85);
}

.contact-form input,
.contact-form textarea {
  width: 95%;
  padding: 0.75rem;
  border-radius: 1rem;
  border: rgb(163, 163, 163) 0.1rem solid;
  font-size: 1rem;
  background: white;
  margin-top: 0.25rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgb(48, 186, 115);
}

.contact-form button {
  align-self: center;
  margin-top: 1rem;
}

#offres {
  position: relative;
  margin: 0 10rem;
  box-sizing: border-box;
  z-index: 1;
}

#offres::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  background: #f5f5f5;
  transform: translateX(-50%);
  z-index: -1;
}
.offres-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.offre-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem;
  min-width: 260px;
  flex: 1 1 220px;
  max-width: 300px;
  transition: box-shadow 0.2s;
  text-align: center;
  margin-bottom: 20px;

}

.offre-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.offre-card h2 {
  margin: 0;
  font-size: 1.3rem;
  color: #333;
}

.offre-card ul,
.offre-card ul li

{
  font-size: 0.90rem;
  text-align: left;
  line-height: 2.1;
}
.offre-card h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.project-title span {
  display: inline-block;
  margin-right: 0.5rem; /* space between words */
  font-weight: 700;      /* optional: make text bold */
  font-size: 1.50rem;    /* optional: match parent size */
}

:root{
  --gold:#30ba73; /* or: #D8B637 */
  --text:#0b0b0b;
}

/* HAMBURGER MENU (version off-canvas) */

/* conteneur mobile visible, caché en desktop */
#hamburger-nav { position: relative; z-index: 30; display:flex; align-items:center; justify-content:space-between; height:74px; padding:0 20px; }
@media (min-width: 920px){
  #hamburger-nav{ display:none; }
  /* tes liens .nav-links desktop restent visibles */
}

/* bouton hamburger */
.hamburger-icon{
  width:48px; height:40px; display:inline-flex; flex-direction:column; justify-content:center; gap:6px;
  cursor:pointer; -webkit-tap-highlight-color:transparent; padding:6px; border-radius:10px; transition:background .16s;
}
.hamburger-icon:active{ background:rgba(0,0,0,.06); }
.hamburger-icon span{
  display:block; height:3px; border-radius:3px; background:#111; width:28px;
  transition:transform 300ms cubic-bezier(.2,.9,.3,1), opacity 220ms ease, width 220ms ease; transform-origin:left center;
}
.hamburger-icon.open span:nth-child(1){ transform: translateX(3px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2){ opacity:0; transform: translateX(-10px); width:18px; }
.hamburger-icon.open span:nth-child(3){ transform: translateX(3px) rotate(-45deg); }

/* overlay */
#menu-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.38); backdrop-filter:blur(2px);
  opacity:0; transition:opacity .22s ease; z-index:40; pointer-events:none;
}
#menu-overlay.visible{ opacity:1; pointer-events:auto; }

/* panneau latéral */
.menu-links{
  position:fixed; top:0; right:-110%;
  width:min(84%, 360px); height:100dvh;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,250,250,.9));
  backdrop-filter: blur(8px);
  box-shadow:-18px 24px 48px rgba(0,0,0,.25);
  padding:28px 22px 110px;   /* espace pour le CTA bas */
  display:flex; flex-direction:column; gap:10px;
  transition:right 360ms cubic-bezier(.2,.9,.3,1);
  z-index:50;
}
.menu-links.open{ right:0; }

/* bouton X rond */
.menu-links .close-round{
  position:absolute; top:16px; right:16px;
  width:56px; height:56px; border:none; border-radius:999px;
  background:#fff; box-shadow:0 6px 18px rgba(0,0,0,.12);
  display:grid; place-items:center; cursor:pointer; color:#111;
}

/* logo de marque dans le panneau (optionnel) */
.menu-links .menu-logo{
  display:block; margin:26px 6px 24px; font-size:1.9rem; font-weight:800; color:#111; text-decoration:none;
}
.menu-links .menu-logo .brand-gold{ color:var(--gold); }

/* liens */
.menu-links ul{ list-style:none; margin:6px 0; padding:0; }
.menu-links li{ border-bottom:1px solid rgba(0,0,0,.06); }
.menu-links a{
  display:block; padding:18px 8px; border-radius:10px; color:var(--text);
  font-size:1.6rem; font-weight:700; text-decoration:none; transition:background .16s, transform .16s;
}
.menu-links a:hover{ background:rgba(0,0,0,.04); transform:translateX(6px); }

/* CTA bas style “grosse pastille” */
.menu-links .cta-bottom{
  position:absolute; left:16px; right:16px; bottom:18px;
  background:var(--gold); color:#fff; text-align:center;
  padding:18px 16px; border-radius:999px; font-weight:800; font-size:1.05rem;
  box-shadow:0 8px 24px rgba(48,	186,	115,.32);
}
/* 📱 Mode tablette : deux photos côte à côte et plus petites */
@media screen and (max-width: 1200px) and (min-width: 601px) {
  #about .section__pic-container {
    display: flex;
    flex-direction: row;       /* côte à côte */
    justify-content: center;
    align-items: center;
    gap: 2rem;                 /* espace entre les deux */
    width: 100%;
    margin: 2rem auto;
  }

  #about .section__pic-container img.about-pic {
    width: 40%;                /* plus petites */
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
  }
}
