/*
Theme Name: Portfolio Nicolas Heim
Theme URI:
Author: Nicolas Heim
Description: Thème portfolio personnalisé
Version: 1.0
*/



/*Police */

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/Cinzel-VariableFont.woff2") format("woff2-variations"),
       url("assets/fonts/Cinzel-VariableFont.woff2") format("woff2");
  font-weight: 100 900;  
  font-style: normal;
  font-display: swap;
}


/* Réglages de base */
* { box-sizing: border-box; }
html, body { 
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}

body { margin: 0; background:#000; color:#fff; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }


body > * {
  width: min(90vw, 1200px);  /* largeur unifiée sur tout le site */
  margin-left: auto;
  margin-right: auto;
}

/* Section hero */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  isolation: isolate;
  background:#000; /* sécurité si l'image tarde */
}

/* Fond noir (optionnel, déjà noir) */
.hero__bg {
  position: absolute;
  inset: 0;
  background: #030303;
  z-index: 0;
}

/* Image qui descend */
.hero__image-wrap {
  position: absolute;
  top: -100%;           /* départ hors écran */
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 1200px);
  aspect-ratio: 16/9;   /* évite le reflow pendant le chargement */
  z-index: 1;
  animation: slideDown 1s ease-out forwards;
  animation-delay: 200ms;
}

/* L'image occupe le conteneur, sans crop */
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* toujours entièrement visible */
}

/* Titre mot par mot */
.hero__text {
  position: absolute;
  font-family: "Cinzel", cursive;
  color: #ffffff;
  top: 32%;
  left: 68%;
  transform: translateX(-50%);
  margin: 0;
  text-align: left;
  display: inline-block;

  line-height: 1.15;
  font-weight: 400;
  font-size: clamp(2px, 4vw, 26px);
  white-space: pre-line;
  letter-spacing: 0;
  z-index: 2;

  padding: 0;            
  border: none;          
  transition: border 0.4s ease, padding 0.4s ease;
}

.hero__text strong {
  font-weight: 800; 
}

/* La bordure apparaît uniquement après le mot par mot */
.hero__text.show-border {
  padding: 8px 12px;                  
  border: 1px solid #E3AB53;          
}



/* Animation descente */
@keyframes slideDown {
  to { top: 8vh; } /* ajuste la position finale ici */
}

/* Accessibilité: réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  .hero__image-wrap { animation: none; top: 8vh; }
}

/* Responsive fin: sécurités */
@media (max-width: 480px) {
  .hero__image-wrap { width: 94vw; }
  .hero__text { bottom: 8vh; }
}

.hero__subtext {
   position: relative;
   font-family: "Cinzel", cursive;
    color: #E3AB53;
  z-index: 10;
  margin-top: calc(min(90vw, 1200px) * 9/16 + -60px);
  font-size: 2rem;
  opacity: 1;
  text-align: center;
  width: 100%;
  
}


/* HEADER */
.site-header {
  position:fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  padding: 0px 25px;
  background: #030303;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 80px;
  width: auto;
}

.site-header-text {
  color: #E3AB53;
  font-family: "Cinzel", cursive;
  font-size: 30px;
  margin-right: 20px;
  letter-spacing: 0.05em;
}

/* HAMBURGER */
.hamburger {
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100000;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #E3AB53;
  transition: 0.3s;
}

/* MENU PLEIN ÉCRAN */
.menu-overlay {
  position: fixed;
  inset: 0;
  display: none;                /* masqué */
  justify-content: center;
   background: #000;
  align-items: center;
  z-index: 99990;
  overflow: hidden;
}

/* Image plein écran */
.menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

/* Liens */
.menu-links {
  position: relative;
  z-index: 2;
  margin-top: -144px;
}

.primary-menu-overlay {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

.primary-menu-overlay li {
  margin: 20px 0;
}

.primary-menu-overlay a {
  font-family: "Cinzel", cursive;
  color: #E3AB53;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none; 
}

/* OUVERTURE */
body.menu-open .menu-overlay {
  display: flex;
}

/* Effet hamburger → croix */
body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* décale le hero vers le bas pour ne pas être caché par le header */

.hero {
  padding-top: 60px;
}

.page-main {
  max-width: 900px;
  margin: 80px auto 60px;
  padding: 0 20px;
  color: #fff;
}

.page-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.presentation {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.presentation.show {
  opacity: 1;
  transform: translateY(0);
  background: #111;
  padding: 30px 20px 30px 30px;
}

.presentation__title {
  font-family: "Cinzel", cursive;
    color: #E3AB53;
}

.presentation__text {
  text-align: justify;
}

.presentation__icon {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.presentation__icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  overflow: visible;     
}

.presentation__icon-text {
  font-family: "Cinzel", cursive;
  color: #E3AB53;
  font-size: 1.2rem;
}

/* Lien vers /contact */
.presentation__icon-link {
  display: inline-block;
}

/* SVG animé */
.presentation__icon-svg {
  width: 40px;        
  height: auto;
  fill: #ffffff;
   display: block;
  animation: vibrate 3.2s ease-in-out 2s infinite;
  stroke: #E3AB53;
  stroke-width: 10;   /* diminue l’épaisseur */
  fill: none;         /* retire le remplissage */
}

@keyframes vibrate {
  0%   { transform: translate(0); }
  20%  { transform: translate(-2px, 2px); }
  40%  { transform: translate(2px, -2px); }
  60%  { transform: translate(-2px, -1px); }
  80%  { transform: translate(1px, 2px); }
  100% { transform: translate(0); }
}
/* Mes Services */
.mes_services {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  font-family: "Cinzel", cursive;
    color: #E3AB53;
    margin-top: 6%;
    text-align: center;
    font-size: 2.4rem;
}

.mes_services.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.second-bg {
  position: relative;
  width: min(90vw, 1200px);
  margin: 0px auto;
}

.second-bg-img {
   position: relative;          
  width: min(90vw, 1200px);
  margin: 80px auto;
  display: block;
  width: 100%;
  height: auto;
}

.services-scroll {
  position: absolute;
  bottom: 140px;              
  left: 52%;
  transform: translateX(-50%);
  width: 90%;                  /* plus cohérent dans ta maquette */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 387px;
  z-index: 2;
}

/* Bloc de service */
.service-block {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.service-block h3 {
  font-family: "Cinzel", cursive;
    color: #ffffff;
  font-size: 2rem;
  margin-bottom: 20px;
  margin-bottom: 40px;
}

.service-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-block ul li {
  font-family: "Cinzel", cursive;
    color: #E3AB53;
    font-size: 1.4rem;
  border-bottom: none;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

/* Arrivée gauche / droite */
.from-left {
  transform: translateX(-50px);
}

.from-right {
  transform: translateX(50px);
}

/* Quand visible */
.service-block.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .services-scroll {
    grid-template-columns: 1fr;
  }
}


/* ============================
   SECTION PROJETS
============================ */

.projects-section {
  padding: 80px 0;
  background: #111;
  color: #fff;
}

.projects-title {
  text-align: center;
  font-family: "Cinzel", cursive;
  font-size: 2.4rem;
  margin-bottom: 70px;
  color: #E3AB53;
}


/* ============================
   GRID UNIFIÉE (front, archive, suggestions)
============================ */

#projects-grid,
.projects-grid,
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 10px;
}

.load-more-container {
  margin-top: 30px;
  text-align: center;
}

#load-more-projets {
  padding: 12px 20px;
  border: 1px solid #E3AB53;
  background: transparent;
  color: #E3AB53;
  font-family: "Cinzel", cursive;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 40px;

}

#load-more-projets:hover {
  background: #E3AB53;
  color: #000;
}


/* ============================
   CARD UNIFIÉE
============================ */

.project-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden; 
  background: transparent;
  position: relative;
  transition: transform .3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Wrapper image */
.project-card__imgwrap {
  width: 100%;
  aspect-ratio: auto; 
  overflow: hidden;
  border-radius: 12px;
}

/* Image */
.project-card__imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;  
  object-position: center;
  display: block;
  border-radius: inherit;
}

/* Titre overlay */
.project-card__title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  color: #E3AB53;
  font-family: "Cinzel", cursive;
  font-size: 1.15rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.project-card:hover .project-card__title {
  opacity: 1;
  transform: translateY(0);
}


/* ============================
   ARCHIVE (si nécessaire)
   ============================ */

.project-year,
.single-projet-year,
.project-description,
.single-projet-description,
.project-link span,
.single-projet-link a {
  color: #ccc;
}

.project-card--single {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
}

/* ===========================
   SINGLE PROJET
=========================== */

.single-projet {
  padding: 150px 40px 40px; 
  max-width: 1200px;
  margin: 0 auto;
  color: #fff;
}

/* Partie haute : infos + image */
.projet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Colonne gauche */
.projet-info {
  flex: 0 0 40%; 
}

/* Titre du projet */
.projet-info .projet-titre {
  color: #E3AB53;
  font-family: "Cinzel", cursive;
  font-size: 35px;
}

/* Labels SCF (Année, Description, Site…) */
/* Labels SCF (Année, Description, Site…) */
.project-year span,
.project-description span,
.project-link span {
  color: #E3AB53;
  font-family: "Cinzel", cursive;
}

/* Valeurs SCF */
.project-year,
.project-description,
.project-link a {
  color: #fff;
}

/* Labels en or */
.project-link span {
  color: #E3AB53;
  font-family: "Cinzel", cursive;
}

/* Style des liens */
.project-link a,
.project-link-value a {
  font-family: inherit !important;
  font-weight: normal;
  color: #fff;
  text-decoration: none;
}

.project-link-value {
  font-family: inherit !important;
}

/* Style du lien */
.project-link-value a {
  font-family: inherit !important;
  font-weight: normal;
  text-transform: lowercase !important;
  color: #fff;
  text-decoration: none;
}

.project-link-value a:hover {
  color: #E3AB53;   
  text-decoration: none;
}
/* ===== SECTION CONTACT SINGLE ===== */

/* SECTION CONTACT – commune single + archive */
.single-contact-section {
    width: 100%;
    padding: 90px 0;
    background: #000;
    text-align: center;
}

/* Traits pleine largeur de la section */
.single-contact-section::before,
.single-contact-section::after {
    content: "";
    display: block;
    width: 100%;          /* prend toute la largeur de la section */
    height: 1px;
    background: #E3AB53;
    margin: 0 auto;
}

.single-contact-section::before {
    margin-bottom: 35px;  /* espace entre trait haut et contenu */
}

.single-contact-section::after {
    margin-top: 35px;     /* espace entre contenu et trait bas */
}

/* Wrapper qui limite seulement le CONTENU, pas les traits */
.single-contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Alignement horizontal du texte + icône */
.single-contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Textes */
.single-contact-text {
    font-family: "Cinzel", serif;
    font-weight: 400;
    font-size: clamp(18px, 2vw, 24px);
    color: #E3AB53;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Icône */
.single-contact-icon {
    width: 48px;
    height: 48px;
    stroke: #E3AB53;
    stroke-width: 0.7;
    opacity: 0.9;
    transition: 0.3s ease;
}

.single-contact-link:hover .single-contact-icon {
    opacity: 1;
    stroke-width: 1.3;
}

.archive-contact::before,
.archive-contact::after {
    max-width: 1200px;    /* même largeur que le contenu */
    margin-left: auto;
    margin-right: auto;
    display: block;
}



/* Colonne droite (image) */
.projet-image {
  width: 100%;        
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ⚠️ même rendu que les cards */
  object-position: center;
  display: block;
  border-radius: 12px;
}


/* Trait */
.projet-separateur {
  margin: 60px 0 40px;
  border: none;
  height: 1px;
  background: #E3AB53;
  opacity: .5;
}

/* ===========================
   AUTRES PROJETS
=========================== */

.projets-suggestions h2 {
  margin-bottom: 40px;
  margin-top: 40px;
  color: #E3AB53;
}

/* Grille centrée */
.suggestions-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* Cards suggestions */
.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.suggestion-card {
  border: 1px solid #E3AB53;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
  height: 430px;
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}

.suggestion-card:hover {
  transform: translateY(-5px);
}

.suggestion-image {
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.suggestion-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.suggestion-card h3 {
  margin: 15px;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

/* Titre */
.suggestion-card h3 {
  margin: 10px;
  text-align: center;
  font-size: 20px;
}

/* Pagination */
.single-projet-pagination {
  margin: 60px auto 40px;
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  padding: 0 20px;
}

.single-projet-pagination a {
  color: #E3AB53;
  font-family: "Cinzel", serif;
  font-size: 18px;
  text-decoration: none;
  transition: opacity .3s ease;
}

.single-projet-pagination a:hover {
  opacity: 0.7;
}


#no-more-projets {
    display: none;
    margin-top: 20px;
    color: #E3AB53;
    font-family: "Cinzel", serif;
    text-align: center;
}

/* FORMATION */

.experience-section {
  padding: 80px 40px;
  color: #fff;
}

.experience-title {
  text-align: center;
  font-family: "Cinzel", cursive;
  font-size: 2rem;
  margin-bottom: 60px;
  margin-top: -10px;
  color: #E3AB53;
}

.experience-block h3 {
  color: #E3AB53;
  font-family: "Cinzel", cursive;
  margin-bottom: 10px;
}

.experience-container {
  display: grid;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.experience-block {
  background: #0e0e0e;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #E3AB53;
}

/* ===== MODALE CONTACT ===== */

body.modal-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.contact-modal.active {
    display: flex;
}

/* Overlay */
.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999998
}

.contact-modal-content {
    position: relative;
    width: 90%;
    max-width: 650px;   
    min-height: 70vh;
    padding: 40px;
    border: 1px solid #E3AB53;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    color: #fff;
    overflow: hidden;
    z-index: 1000000 

}

.contact-modal-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; 
    z-index: 0;
    opacity: 1;
}


/* Bouton fermer */
.contact-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    font-size: 32px;
    background: none;
    border: none;
    color: #E3AB53;
    cursor: pointer;
    z-index: 5;
    float: none !important;
    display: block !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Formulaire */
.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-modal-form h2 {
    margin-top: -15px;        
    font-size: 34px;          
    letter-spacing: 0.5px;    
    color: #E3AB53;
    font-family: "Cinzel", serif;
    text-align: center;  
    width: 100%; 
}

.contact-modal-form,
.contact-modal-close,
.modal-submit {
    position: relative;
    z-index: 2;
}
/* Ligne nom/prenom */
.modal-row {
    display: flex;
    gap: 15px;
}

.contact-modal-form input,
.contact-modal-form textarea {
    width: 100%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #E3AB53;
    color: #fff;
    font-size: 16px;
}

/* Btn envoyer */

.modal-submit {
    display: inline-block;
    width: auto;
    padding: 10px 26px;
    margin-top: 30px;

    font-family: "Cinzel", serif;
    font-size: 16px;
    font-weight: 600;              /* texte un peu plus gras */
    text-transform: uppercase;

    color: #E3AB53;                /* texte or */
    background: transparent;       /* fond transparent */
    border: 1px solid #E3AB53;     /* fin et élégant */
    
    cursor: pointer;
    transition: 0.3s ease;
    align-self: center;
}

.modal-submit:hover {
    background: #E3AB53;           /* fond or */
    color: #000;                   /* texte noir */
    border-color: #E3AB53;
}

/* Bouton ouvrir */
.contact-modal-open {
    padding: 10px 20px;
    background: transparent;
    color: #E3AB53;
    border: 1px solid #E3AB53;
    cursor: pointer;
    transition: 0.3s;
}

.contact-modal-open:hover {
    background: #E3AB53;
    color: #000;
}


/* A PROPOS */

.apropos {
  background: #000;
  padding: 100px 0 0;
}

/* CONTAINER DE L'IMAGE */
.apropos__image-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
}

/* IMAGE AFFICHEE ENTIERE */
.apropos__image {
  display: block;
  width: 100%;
  height: auto;
}

/* TITRE DANS L'IMAGE */
.apropos__title {
  position: absolute;
  top: 70px;
  left: 40px;
  margin: 0;
  font-size: 2.6rem;
  font-family: "Cinzel", serif;
  color: #E3AB53;
}

/* PORTRAIT DANS L'IMAGE (EN HAUT A DROITE) */
.apropos__photo-wrap {
  position: absolute;
  top: 400px;
  right: 55px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E3AB53;
}

.apropos__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Conteneur portrait */
.apropos__photo-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

/* Portrait */
.apropos__photo {
  width: 240px;
  border-radius: 8px;
}

/* Signature */
.apropos__signature {
  font-family: "Cinzel", cursive;
  font-size: 1.4rem;
  color: #E3AB53;
  margin-top: 0.6rem;
  letter-spacing: 0.5px;
  display: block;
  position: relative;
  left:82%;
  top: -100px;
}

/* TEXTE SOUS L'IMAGE */

.apropos__text {
  position: absolute;
  bottom: -23px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 95%;                 
  padding: 47px 25px;             
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #fff;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6); 
  border-radius: 8px;            
  backdrop-filter: blur(2px);     
}

.apropos__image-container {
    overflow: visible !important;

}

.apropos__text {
    overflow: visible !important;
    max-height: none !important;
}


/* FOOTER */

.site-footer {
  background: #050505;
  color: #f5f5f5;
  padding: 0rem 1.5rem 1.5rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 0;
}

.footer-name {
  font-size: 1.3rem;
  margin: 1 0 0.3rem;
  color: #E3AB53;
  font-family: "Cinzel", serif;
}

.footer-tagline,
.footer-location {
  margin: 0;
  opacity: 0.8;
}

.footer-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1 0 0.8rem;
  color: #E3AB53;
  font-family: "Cinzel", serif;
}

.footer-links,
.footer-social,
.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-social li,
.footer-legal li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-social a,
.footer-legal a,
.footer-email a,
.footer-cv a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-legal a:hover,
.footer-email a:hover,
.footer-cv a:hover {
 color: #E3AB53;
}

.footer-email {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
   border-top: none;
}

.footer-copy {
  margin: 0;
  opacity: 0.7;
  color: #E3AB53;
}

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

/* ===== PAGE MENTIONS LÉGALES ===== */
.page-mentions-legales {
  padding: 6rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  line-height: 1.8;
}

/* Titre */
.page-mentions-legales h1 {
  font-family: "Cinzel", serif;
  font-size: 2.5rem;
  color: #E3AB53;
  margin-bottom: 2rem;
  text-align: left;
}

/* Sous-titres */
.page-mentions-legales h2,
.page-mentions-legales h3 {
  font-family: "Cinzel", serif;
  color: #E3AB53;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Paragraphes */
.page-mentions-legales p {
  margin-bottom: 1.2rem;
  opacity: 0.95;
  font-size: 1.05rem;
}

/* Listes */
.page-mentions-legales ul,
.page-mentions-legales ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-mentions-legales li {
  margin-bottom: .6rem;
}

/* Liens */
.page-mentions-legales a {
  color: #E3AB53;
  text-decoration: none;
  border-bottom: 1px solid #E3AB53;
  transition: 0.3s ease;
}

.page-mentions-legales a:hover {
  opacity: 0.7;
}

/* Mise en forme générale */
.page-mentions-legales section {
  margin-bottom: 2.5rem;
}

.page-mentions-legales hr {
  border: none;
  height: 2px;
  background: #E3AB53;
  width: 60%;
  margin: 3rem auto;
  opacity: 0.7;
}

/****** RESPONSIVE *****/


/* ===========================
   1) MOBILE — max-width: 480px
   ===========================*/
@media (max-width: 480px) {

  body > * {
    width: 94vw;
  }

  /* Header */
  .site-logo img {
    height: 60px;
  }

  .site-header-text {
    font-size: 20px;
  }

  /* Hero */
  .hero__image-wrap {
    width: 100%;
  }

  .hero__text {
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    text-align: center;
  }

  .hero__subtext {
    font-size: 1.2rem;
    margin-top: 20px;
  }

  /* Services */
  .services-scroll {
    top: 130%;
    left: 50%;
    width: 90%;
    grid-template-columns: 1fr;
  }

  .service-block h3 {
    text-align: center;
  }

  /* Section projets */
  #projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Single projet — bloc haut */
  .projet-top {
    flex-direction: column;
  }

  .projet-info {
    width: 100%;
    text-align: center;
  }

  .projet-image img {
    max-height: 300px;
    object-fit: contain;
  }

  /* Contact */
  .single-contact-container {
    flex-direction: column;
    gap: 20px;
  }

  .single-contact-icon {
    width: 40px;
    height: 40px;
  }

  /* À propos */
  .apropos__title {
    font-size: 1.8rem;
    left: 20px;
    top: 30px;
  }

  .apropos__photo-wrap {
    position: static;
    margin: 20px auto;
    width: 130px;
    height: 130px;
  }

  .apropos__signature {
    position: static;
    margin: 10px auto 30px;
    display: block;
    text-align: center;
    font-size: 1.6rem;
  }

  .apropos__text {
    position: static;
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }
}


/* ============================
   BANNIÈRE COOKIES FIXE
============================ */

.cookie-banner {
    position: fixed;           /* FIXÉ en bas de l'écran */
    bottom: 0;
    left: 0;
    right: 0;

    background: rgba(0, 0, 0, 0.88);
    border-top: 1px solid #E3AB53;

    color: #fff;
    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: "Cinzel", serif;
    z-index: 999999;
}

/* Texte */
.cookie-text {
    margin: 0;
    padding-right: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Lien */
.cookie-link {
    color: #E3AB53;
    text-decoration: none;
    border-bottom: 1px solid rgba(227,171,83,0.4);
}

.cookie-link:hover {
    opacity: 0.7;
}

/* Boutons */
.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    font-family: "Cinzel", serif;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 0.9rem;
}

/* Accepter */
.cookie-btn-accept {
    border: 1px solid #E3AB53;
    background: transparent;
    color: #E3AB53;
}

.cookie-btn-accept:hover {
    background: #E3AB53;
    color: #000;
}

/* Refuser */
.cookie-btn-refuse {
    border: 1px solid #666;
    background: transparent;
    color: #999;
}

.cookie-btn-refuse:hover {
    background: #666;
    color: #000;
}

.cookie-banner {
    transform: translateY(100%);
    transition: transform 0.45s ease-out;
}

.cookie-banner.visible {
    transform: translateY(0);
}

/* ======================================================
   PAGE 404
   ====================================================== */

/* ======================================================
   PAGE 404 (version centrée + pleine largeur)
   ====================================================== */

.error404 {
  width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.error404__inner {
  max-width: 600px;
  margin: 0 auto;
}

.error404__title {
  font-family: "Cinzel", serif;
  font-size: clamp(4rem, 18vw, 10rem);
  font-weight: 700;
  margin: 0;
  color: #E3AB53;
  line-height: 1;
}

.error404__text {
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  color: #f5f5f5;
  opacity: .85;
}

.error404__btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border: 2px solid #E3AB53;
  color: #E3AB53;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: 0.3s ease;
}

.error404__btn:hover {
  background: #E3AB53;
  color: #000;
}

/* Responsive */
@media (max-width: 480px) {
  .error404__title {
    font-size: 22vw;
  }
}


/* Mobile */
@media (max-width: 480px) {
  .error404__title {
    font-size: 22vw;
  }
}


/* Responsive */
@media (max-width: 480px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

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



/* ===========================
   2) TABLETTE — max-width: 768px
   ===========================*/
@media (max-width: 768px) {

  /* Global */
  body > * {
    width: 94vw;
  }

  /* Header */
  .site-header-text {
    font-size: 24px;
  }

  /* Hero */
  .hero__text {
    left: 55%;
    font-size: 1.4rem;
  }

  /* Services */
  .services-scroll {
    grid-template-columns: 1fr;
    left: 50%;
    width: 90%;
  }

  .service-block {
    text-align: center;
  }

  /* Grilles projets */
  #projects-grid,
  .projects-grid,
  .suggestions-grid {
    grid-template-columns: 1fr;
  }

  /* Single projet */
  .projet-top {
    flex-direction: column;
  }

  .projet-info {
    width: 100%;
  }

  /* À propos */
  .apropos__photo-wrap {
    right: 20px;
    top: 320px;
  }

  .apropos__signature {
    left: 65%;
    top: -70px;
  }
}


/* ===========================
   3) PETIT LAPTOP — max-width: 1024px
   ===========================*/
@media (max-width: 1024px) {

  /* Hero */
  .hero__text {
    font-size: 1.6rem;
  }

  /* Services */
  .services-scroll {
    gap: 40px;
  }

  /* Projets — grille plus large */
  #projects-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* À propos */
  .apropos__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {

  .hero__text {
    position: absolute;
    top: 15%;                 /* monte encore le H1 */
    left: 72%;                /* pousse plus à droite */
    transform: translateX(-50%);

    width: 135px;             /* cadre plus étroit */
    max-width: 135px;
    padding: 6px 10px;

    font-size: 0.9rem;
    line-height: 1.25;
    text-align: left;
  }

  .hero__subtext {
    position: absolute;
    top: 40%;                 /* descend sous le cadre */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    font-size: 0.95rem;
    text-align: center;
  }

   .hero__text {
    border: none;
    padding: 0;
  }

  .hero__text.show-border {
    border: none ;
    padding: 0 ;
}
}

/* ==== Correction du scroll horizontal mobile ==== */

html, body {
    overflow-x: hidden !important;
}

/* 1. Conteneurs principaux */
@media (max-width: 480px) {
  body > * {
    width: 100% !important;
  }
}

/* 2. Sections pouvant déborder via absolute */
.hero,
.site-header,
.single-contact-section,
.second-bg,
.apropos__image-container {
    overflow-x: hidden;
}

@media (max-width: 480px) {

  .experience-title {
    font-size: 1.5rem ;
    line-height: 1.2 ;
    text-align: center ;
    white-space: normal ;
    overflow-wrap: break-word ;
    word-break: break-word ;
  }
}

@media (max-width: 480px) {

  .from-left,
  .from-right {
    transform: translateX(0) ;
  }

  .service-block.visible {
    transform: translateX(0) ;
    opacity: 1 ;
  }
}

@media (max-width: 480px) {

  /* Remonter la section À propos de moi */
  .presentation {
    margin-top: -270px;
    padding-top: 20px;   
    padding-bottom: 20px;
  }

  .presentation.show {
    margin-top: -270x; 
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ============================
   RESPONSIVE MES SERVICES
   ============================ */

   @media (max-width: 768px) {

  /* On supprime l’image du flux proprement */
  .second-bg-img {
    display: none;
    height: 0;
    padding: 0;
    margin: 0;
     background: #111;             
    padding-top: 3rem;            
    padding-bottom: 3rem;
  }

  /* Le conteneur reprend une hauteur naturelle  */
  .second-bg {
    width: 100%;
    height: auto;
    margin: 170px 0;
    padding-bottom: 40px; /* espace propre sous la section */
    overflow: visible;
  }

  /* Structure interne correcte */
  .services-scroll {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 1.2rem;
    position: relative;
    z-index: 1;
    background: #111;  
  }

  /* Bloc service */
  .service-block {
    position: relative;
    width: 100%;
    text-align: center;
  }

  /* Titres */
  .service-block h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  /* Listes */
  .service-block ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
  }

  .service-block li {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: .6rem;
  }

  /* Désactivation clean des animations en mobile */
  .from-left,
  .from-right {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .presentation__icon-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    text-align: center;
  }

  .presentation__icon-text {
    text-align: center;
  }

  .presentation__icon-link {
    display: flex;
    justify-content: center;
  }
}

/* Desktop : justification */
@media (min-width: 769px) {
  .presentation__text {
    text-align: justify;
  }
}

/* Mobile : pas de justification */
@media (max-width: 768px) {
  .presentation__text {
    text-align: left;
  }
}

/* ---- Mobile : carrousel horizontal ---- */
@media (max-width: 768px) {

  .projects-grid {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem;
    -webkit-overflow-scrolling: touch; /* iPhone smooth */
  }

  .projects-grid::-webkit-scrollbar {
    display: none; /* enlève la barre de scroll */
  }

  .project-card {
    flex: 0 0 80%;      /* largeur de chaque carte */
    scroll-snap-align: center;
  }

  .single-projet-pagination {
    display: none;
}
}



/* ===============================
     A PROPOS — RESPONSIVE
   =============================== */
@media (max-width: 768px) {

  
  .apropos__image {
    display: none;
  }

  .apropos__image-container {
    position: static;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
  }

  .apropos__title,
  .apropos__text,
  .apropos__signature,
  .apropos__photo-wrap {
    position: static;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto;
  }

 
  .apropos__title {
    position: static;  
    top: auto;         
    left: auto;        
    transform: none;   
    margin-top: 2.5rem;  
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
  }
  
  .apropos__text {
    background: none; 
    padding: 0;
    max-width: 90%;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
  }


  .apropos__signature {
    text-align: center;
    margin: 0 auto 1.5rem;
    left: auto;
    top: auto;
  }

  .apropos__photo-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E3AB53;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    order: 10;
  }

  .apropos__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .apropos {
    padding: 2rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  }


  /* MONDAL */

 @media (max-width: 768px) {

  /* ===== CROIX ===== */
  .contact-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.8rem;
    color: #E3AB53;
    cursor: pointer;
    line-height: 1;
  }

  /* ===== FORMULAIRE EN MODE MOBILE ===== */
  .contact-modal-form {
    width: 100%;
    padding: 1rem;
  }

  /* Nom & Prénom l’un SOUS l’autre */
  .modal-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  /* Tous les champs 100% largeur */
  .contact-modal-form input,
  .contact-modal-form textarea {
    width: 100%;
    box-sizing: border-box;
  }

  /* Texte plus lisible en mobile */
  .contact-modal-form input,
  .contact-modal-form textarea {
    font-size: 1rem;
    padding: 0.8rem;
  }

  /* Bouton centré */
  .modal-submit {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    text-align: center;
  }
}

.honeypot {
  position: absolute ;
  width: 1px ;
  height: 1px ;
  padding: 0 ;
  margin: 0 ;
  overflow: hidden ;
  clip: rect(0, 0, 0, 0) ;
  white-space: nowrap ;
  border: 0 ;
}

@media (max-width: 768px) {
  section:first-of-type { /* la section du titre Mes Services */
      padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .services-scroll {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 90%;
    margin: -140px auto;
    position: static;
    transform: none;
  }
}

@media (max-width: 768px) {
    #projects-grid {
        display: grid;
        grid-template-columns: 1fr; /* 1 card = 1 ligne */
        gap: 30px; /* optionnel */
    }

    .project-card {
        width: 100%;
    }
}