@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');
@import url('style.css');


/* --- SECTION HERO --- */
#hero {
  position: relative;
  min-height: 85dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 8%;
  
  /* Image de fond principale */
  background-image: url('../img/bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  overflow: hidden;
}

/* --- VOILE BLANC SEMI-TRANSPARENT (DEGRADÉ) --- */
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  background: linear-gradient(
    to right, 
    var(--white) 0%, 
    var(--white) 30%, 
    rgb(from var(--white) r g b / 0.8) 60%, 
    rgb(from var(--white) r g b / 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Assure que tout le contenu du Hero passe AU-DESSUS du dégradé */
#hero > * {
  position: relative;
  z-index: 2;
}

/* Sur-titre / Badge d'accroche */
#hero::before {
  /* content: "DÉVELOPPEUR WEB FULL-STACK"; */
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Titre principal (H1) */
#hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
  max-width: 580px;
  margin: 0 0 1.5rem 0;
}

/* Paragraphe descriptif */
#hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Container du double CTA */
#hero div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* Bouton principal (Bouton Doré) */
#hero button {
  background: linear-gradient(
    135deg, 
    var(--yellow) 0%, 
    color-mix(in srgb, var(--yellow) 80%, var(--text)) 100%
  );
  color: var(--navy);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(from var(--yellow) r g b / 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#hero button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgb(from var(--yellow) r g b / 0.45);
  background: linear-gradient(
    135deg, 
    color-mix(in srgb, var(--yellow) 90%, var(--white)) 0%, 
    color-mix(in srgb, var(--yellow) 70%, var(--text)) 100%
  );
}

/* Lien secondaire */
#hero a {
  text-decoration: none;
}

#hero div > a:last-child {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  margin-top: 0.2rem;
}

#hero div > a:last-child:hover {
  color: color-mix(in srgb, var(--blue) 80%, var(--navy));
  text-decoration: underline 2px;
}

/* --- RESPONSIVE (MOBILE & TABLETTE) --- */
@media (max-width: 900px) {
  #hero {
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
  }

  /* Sur mobile : Le dégradé prend TOUT l'écran verticalement et horizontalement */
  #hero::after {
    width: 100%;
    background: linear-gradient(
      180deg, 
      rgb(from var(--white) r g b / 0.85) 0%, 
      rgb(from var(--white) r g b / 0.90) 100%
    );
  }

  #hero h1, 
  #hero p {
    max-width: 100%;
  }
}

/* --- SECTIONS BIENTÔT DUPLIQUÉES (SPLIT 2 COLONNES) --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 5rem 8%;
  background-color: var(--white);
  max-width: 1400px;
  margin: 0 auto;
}

/* Colonne Image */
.split-img {
  width: 100%;
}

.split-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgb(from var(--navy) r g b / 0.08);
  display: block;
}

/* Colonne Contenu */
.split-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Titre H2 commun */
.split-section h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 1.2rem 0;
}

/* Paragraphes communs */
.split-section p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--text) 80%, var(--white));
  margin: 0 0 1.8rem 0;
}

/* Element de Tag/Sur-titre commun */
.section-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

/* Lien d'action commun */
.link-more {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-more:hover {
  color: color-mix(in srgb, var(--blue) 80%, var(--navy));
  transform: translateX(4px);
}

/* --- RESPONSIVE MOBILE UNIFIÉ --- */
@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }

  /* Force l'image à se placer au-dessus du texte sur mobile, quel que soit l'ordre HTML */
  .split-img {
    order: -1;
  }
}

/* --- SECTION 3 : TYPES DE PROJETS --- */
#projets {
  padding: 5rem 8%;
  background-color: color-mix(in srgb, var(--sky) 30%, var(--white));
  max-width: 1400px;
  margin: 0 auto;
}

#projets h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-top: 0;
}

/* Grille 2 colonnes */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

/* Carte individuelle */
.projet-card {
  background-color: var(--white);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgb(from var(--navy) r g b / 0.04);
  border: 1px solid rgb(from var(--navy) r g b / 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgb(from var(--navy) r g b / 0.08);
}

/* Carte 5 (extension sur la largeur complète) */
.projet-card-full {
  grid-column: span 2;
}

/* Bloc Image / Icône à gauche */
.projet-icon {
  width: 90px;
  height: 90px;
  min-width: 90px;
  background-color: color-mix(in srgb, var(--sky) 50%, var(--white));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projet-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* Informations textuelles */
.projet-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projet-info h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.6rem 0;
}

.projet-info p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 75%, var(--white));
  margin: 0 0 1.2rem 0;
}

/* Badges / Tech Tags sous forme de pilules */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background-color: color-mix(in srgb, var(--sky) 70%, var(--white));
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgb(from var(--blue) r g b / 0.15);
}

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media (max-width: 900px) {
  #projets {
    padding: 3rem 1.5rem;
  }

  .projets-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .projet-card-full {
    grid-column: span 1;
  }

  .projet-card {
    flex-direction: column;
    padding: 1.4rem;
    gap: 1rem;
  }

  .projet-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
  }
}

/* --- SECTION 4 : MODÈLES DE COLLABORATION --- */
#collaborations {
  position: relative;
  padding: 6rem 8%;
  
  /* Image de fond map_toulon.png */
  background-image: url('../img/map_toulon.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

/* Voile blanc semi-transparent sur toute la section */
#collaborations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(from var(--white) r g b / 0.88);
  z-index: 1;
}

#collaborations > * {
  position: relative;
  z-index: 2;
}

#collaborations h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  margin-top: 0;
}

/* Grille des 2 cartes */
.collaborations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Style de base des cartes */
.collab-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(from var(--navy) r g b / 0.08);
  box-shadow: 0 10px 30px rgb(from var(--navy) r g b / 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgb(from var(--navy) r g b / 0.1);
}

/* Carte mise en avant (Co-conception) */
.collab-card-featured {
  border: 2px solid var(--blue);
  background: linear-gradient(
    180deg, 
    var(--white) 0%, 
    color-mix(in srgb, var(--sky) 20%, var(--white)) 100%
  );
}

/* Badges en haut de carte */
.collab-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background-color: color-mix(in srgb, var(--sky) 70%, var(--white));
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.collab-badge.badge-gold {
  background-color: color-mix(in srgb, var(--yellow) 40%, var(--white));
  color: var(--navy);
}

.collab-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.collab-card p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 80%, var(--white));
  margin: 0 0 1.5rem 0;
}

/* Liste des points clés */
.collab-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.collab-features li {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
}

/* Boutons d'action */
.collab-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background-color: color-mix(in srgb, var(--sky) 60%, var(--white));
  border: 1px solid rgb(from var(--blue) r g b / 0.3);
  transition: all 0.25s ease;
}

.collab-btn:hover {
  background-color: var(--blue);
  color: var(--white);
}

.collab-btn.btn-gold {
  background: linear-gradient(
    135deg, 
    var(--yellow) 0%, 
    color-mix(in srgb, var(--yellow) 80%, var(--text)) 100%
  );
  border: none;
  box-shadow: 0 4px 15px rgb(from var(--yellow) r g b / 0.3);
}

.collab-btn.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(from var(--yellow) r g b / 0.45);
  color: var(--navy);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
  #collaborations {
    padding: 4rem 1.5rem;
  }

  .collaborations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .collab-card {
    padding: 1.8rem;
  }
}
