/* ---------- Variables de thème ---------- */
:root {

  /* Couleur : Couleur des éléments*/
  --color-bg: rgba(0, 0, 0, 1);                 /* vert T - fond principal */
  --color-bg-alt: rgba(26, 38, 8, 1);           /* vert foncé - header, footer */
  --color-primary: #e79804;
  /*--color-primary: rgba(214, 150, 30, 1);       /* or ambre - boutons, liens */
  --color-primary-dark: rgba(185, 124, 20, 1);  /* or profond - hover */
  --color-text: #FDF8B2;
  --color-h2: #46a03a;
  /* rgba(98, 144, 19, 1);           /* vert anis - fond principal */
  --color-muted: #9ca3af;                       /* gris neutre - texte secondaire */
  --color-border: #56320d;                      /* marron ecorce - text principal */
  --color-surface: rgba(41, 60, 8, 1);          /* noir */
  --color-pannel: #233307;

  /* Polices : corps de texte vs boutons/encadrés */
  --font-main: "Amarante", serif;
  --font-accent: "Fredericka the Great", serif;
  --header-height: 85px;
  --font-size-global : 1.5rem;
  --font-size-footer : 1.5rem;
  --font-size-lien : 1.3rem;

  /* Scale des boutons */
  --btn-scale: 1.06;
  --btn-scale-speed: 0.15s;

  /* contrôle du halo */
  --halo-color: rgba(31, 170, 54, 0.55);        /* couleur du halo */
  --halo-color-2: rgba(214, 150, 29, 0.25);     /* optionnel: seconde teinte */
  --halo-size: 22px;                              /* rayon du halo autour */
  --halo-blur: 20px;                              /* flou du halo */
  --halo-spread: 55%;                             /* où le dégradé commence à s’estomper */

  /* Motion: durées */
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-slow: 320ms;
  --motion-ok: 1;                                 /* réduction de mouvement */
  /* courbes easing */
  --ease-pop: cubic-bezier(0.2, 1.2, 0.2, 1);     /* “petit rebond” contrôlé */
  /* fixer largeur */
  --content-width: clamp(1100px, 65vw, 3000px);
  --content-pad: 1.5rem;
}

.fredericka-the-great-regular {
  font-family: "Fredericka the Great", serif;
  font-weight: 400;
  font-style: normal;
}

.amarante-regular {
  font-family: "Amarante", serif;
  font-weight: 600;
  font-style: normal;
}

/* ---------- Reset simple ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.logo a {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-header {
  position: sticky;      
  left: 0;
  right: auto;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-inline: 0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

/* Le nav doit occuper toute la largeur du header */
.site-header .main-nav {
  width: min(var(--content-width), calc(100% - (2 * var(--content-pad))));
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* Le UL doit aussi prendre toute la largeur => sinon pas de "vide" possible */
.site-header .main-nav > ul {
  list-style: none;
  margin: 0 ;
  padding: 0 ;
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.nav-right-wrap{
  margin-left: auto;
  list-style: none;
  padding: 0;
}

/* Le groupe de droite est poussé complètement à droite */
.site-header .main-nav .nav-right-start {
  margin-left: auto;
  list-style: none;
}

/* groupement de droit de la navbar */
.site-header .main-nav .nav-right-group{
  display: flex;
  gap: 1rem;
  align-items: center;
  position: absolute;
  padding: 0;
  margin: 0;
  list-style: none;
  /* bord droit du UL = bord droit du hero (si header est déjà “conteneur”) */
  right: 0;
  top: 50%;
  transform: translate(50%, -50%); 
  /* translateX(50%) = le centre du groupe tombe sur le bord droit */
}

.nav-right-wrap{
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.site-header .main-nav .nav-left-group{
  display: flex;
  gap: 1rem;
  align-items: center;

  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%); /* centre du groupe sur le bord gauche */

  list-style: none;
  margin: 0;
  padding: 0;
}

/* Affichage horizontal 
.main-nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-inline: auto;
  display: flex;               
  gap: 1rem;                  
  align-items: center;
  width: 100%;
  position: relative;
}*/



/* Overlay global du bandeau */
#header-paint {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;               
  height: var(--header-height);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;                 
  pointer-events: none;
  transform: translateZ(0);     
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100dvh;       /* taille réelle de l'écran */
  display: flex;
  flex-direction: column;
}

/* Layout principal */
.page-content {
  flex: 1;                  /* absorbe l'espace */
  max-width: var(--content-width);        /* largeur de lecture, sans étirement sur tout l'écran */
  margin: 0 auto;
  padding: 2rem var(--content-pad) 4rem;
  width: min(var(--content-width), calc(100% - (2 * var(--content-pad))));
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* =========================
   FOOTER 
   ========================= */

.site-footer{
  width: 100%;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 0.25rem;
  color: var(--color-text);
}

.site-footer-line{
  font-size: 0.1rem;
}

/* Grille 3 colonnes comme la maquette */
.site-footer .footer-top{
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);

  display: grid;
  grid-template-columns: 1fr auto 1fr; /* gauche - centre - droite */
  align-items: start;
  gap: 2rem;
}

/* Colonnes */
.footer-col{
  min-width: 0;
  margin-bottom: 2rem;
}

.footer-title{
  font-family: var(--font-size-global);
  font-size: var(--font-size-global);
  margin: 0 0 1rem;
  color: var(--color-text);
}

/* Liens en liste verticale (gauche & droite) */
.footer-links{
  display: grid;
  font-size: var(--font-size-lien);
  gap: 0.6rem;
}

.footer-links__lien{
  display: grid;
  margin: 1rem;
  font-size: var(--font-size-lien);
  gap: 0.6rem;
}

.footer-links a{
  color: var(--color-text);
  text-decoration: none;
  opacity: 0.9;
}

.footer-links a:hover{
  color: var(--color-primary);
  opacity: 1;
}

/* Alignements spécifiques */
.footer-social{
  display: grid;
  gap: 1.5rem; 
  margin-top: 0.7rem;
  justify-self: start;
  text-align: left;
}

.footer-nav{
  justify-self: end;
  text-align: right;
  margin-top: 0.7rem;
}

/* Centre */
.footer-center{
  justify-self: center;
  text-align: center;
  margin-top: -0.5rem;
  display: grid;
  align-content: start;
  justify-items: center;
}

/* Logo au centre (un peu plus grand que ton actuel) */
.footer-center .logoE{
  width: 10rem;
  height: 10rem;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
}

.footer-center .logoE-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Infos contact */
.footer-contact{
  display: grid;

  margin-top: 1rem;
}
.footer-contact p{

  font-size: 1.3rem;

}

.footer-line{
  margin: 0;
  opacity: 0.95;
  font-size: 1.5rem;
}

/* Bouton au centre */
.footer-cta{
  margin-top: 0.8rem;
}

/* Mentions légales en bas du centre */
.footer-legal{
  justify-self: center;
  text-align: center;
  opacity: 0.85;
  font-size: var(--font-size-footer);
  margin-top: -2rem;
}

/* Responsive : empilement comme il faut */
@media (max-width: 720px){
  .site-footer .footer-top{
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-social,
  .footer-nav{
    justify-self: center;
    text-align: center;
  }
}

/* cadre du logo */
.logoE{
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: none;
  border: none;
  background: transparent;
  text-decoration: none;
}

.logoE-img{
  object-fit: contain;
  display: block;
}

/* colonne de droite */
.footer-sitemap{
  justify-self: end;
  display: grid;
  gap: 0.4rem;
  text-align: right;
}

.footer-sitemap a{
  color: var(--color-muted);
  text-decoration: none; 
  opacity: 0.9;
}

.footer-sitemap a:hover{
  color: var(--color-primary);
  opacity: 1;
}

/* Copyright en dessous */
.footer-bottom{
  margin-top: 1rem;
  opacity: 0.85;
  font-size: 0.9rem;
}

/* Brand */
.main-nav .nav-brand a {
  background: transparent;      /* pas de fond */
  border: none;                 /* pas de bordure */
  font-size: 1.5rem;           /* un peu plus présent */
  letter-spacing: 0.04em;       /* identité */
}

/* Boutons arrondis */
.main-nav a {
  position: relative;                       /* nécessaire pour ::before */
  z-index: 0;                               /* le texte au-dessus du halo */
  isolation: isolate;                       /* fixe la profondeur */
  overflow: visible;                        /* on autorise le halo à dépasser */
  display: inline-block;
  padding: calc(0.15 * var(--header-height)) 0.6rem;                   /* Taille du bouton */
  /*border-style: double;                   Double bordure */
  border-radius: 10px;
  background: var(--color-bg-alt);          /* vert foncé */
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-accent);          /* La police spéciale pour les boutons */
  font-weight: 700;
  font-size: 1.2rem;
  border-style: solid;                      /* pleine bordure */
  /* border-color: rgba(255, 255, 255, 0.2);  Liseré discret, à surement affiner */
  border-color: var(--color-border);        /* Liseré orange */
  transition: 
    transform var(--motion-fast) ease-out, 
    background var(--motion-base) ease-in-out, 
    color var(--motion-base) ease-in-out;
}

/* Halo */
.main-nav a::before,
.btn-primary::before,
.btn-secondary::before,
.dropdown a::before {
  content:"";
  position:absolute;
  inset: calc(-1.5 * var(--halo-size));
  border-radius: inherit;
  z-index: -2;
  pointer-events:none;

  background: radial-gradient(
    circle at center,
    var(--halo-color) 0%,
    var(--halo-color-2) 35%,
    transparent var(--halo-spread)
  );

  filter: blur(var(--halo-blur));
  opacity: 0;
  transform: scale(var(--btn-scale));
  transition: 
  opacity var(--motion-slow) ease-out,
  transform var(--motion-slow) ease-out,
  filter var(--motion-slow) ease-out;
}

/* halo derrière la bulle */
.main-nav a::after,
.btn-primary::after,
.btn-secondary::after,
.dropdown a::after {
  content:"";
  position:absolute;
  inset: 0;                             /* pile la taille du bouton */
  border-radius: inherit;
  background: inherit;                  /* reprend le background du bouton */
  z-index: -1;                          /* au-dessus du halo, sous le texte */
  pointer-events:none;
}

/* déclenchement du halo au hover */
.main-nav a:hover::before,
.btn-primary:hover::before,
.btn-secondary:hover::before,
.dropdown a:hover::before{
  opacity: 1;
  transform: scale(var(--btn-scale));
}

/* Le logo se comporte comme un encadré du menu */
.main-nav .nav-logo {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.6rem;               /* juste l’alignement, pas un bouton complet */
  background: transparent;
  border: none;
}

/* Le lien du logo différent des liens du menu */
.main-nav .nav-logo a{
display: inline-flex;
align-items: center;
padding: 0;
margin: 0;
background: none;
text-decoration: none;
border: none;
}

.main-nav .nav-logo img {
  height: calc(0.8*var(--header-height));
  width: auto;
  display: block;
}

/* Crée un espace vide entre les deux groupes */
.main-nav .nav-right-start {
  margin-left: auto;
}

/* contrôle du style du dropdown */
.main-nav .dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .dropdown li {
  list-style: none;
}

.main-nav .dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

/* Bouton actif (page courante) 
.main-nav a.active {
  background: var(--color-primary);
  color: #0f172a;
  border-color: var(--color-primary);
}
*/

/* Position sous le dropdown du bouton */
.has-dropdown {
  position: relative;
}

/* Pont entre le bouton parent et sous-bouton */
.has-dropdown::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;      
}

.has-dropdown > .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  z-index: 50;
}

.has-dropdown:hover > .dropdown {
  display: block;
}

/* Dropdown caché par défaut */
.dropdown {
  position: absolute;
  top: 140%;                /* juste sous le bouton */
  left: 0;                  /* aligné à gauche */
  right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* colle à gauche */
  gap: 1rem;                /* espace entre les sous boutons */
  width: max-content;       /* la bulle s’ajuste au plus large sous-bouton */
  min-width: 100%;            
  padding: 0;               /* évite l’impression de centrage */
  background: transparent;
  border: none;
  border-radius: 10px;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 
  opacity var(--motion-fast) ease-out,
  transform var(--motion-base) ease-out,
  visibility 0s linear var(--motion-base);
}

/* Style des sous-boutons */
.dropdown a {
  position: relative;
  z-index: 1;
  overflow: visible;
  display: block;
  width: auto;                          /* bouton compact */
  box-sizing: border-box;
  padding: 0.2rem 1rem;
  border-radius: 10px;
  background: var(--color-bg-alt);
  text-decoration: none;
  text-align: left;                     /* la dernière lettre alignée */
  color: var(--color-text);
  font-family: var(--font-accent);      /* La police spéciale pour les boutons */
  font-size: 0.95rem;
  font-weight: 700;
  /*border-style: double;  Double bordure */
  /* border-color: rgba(255, 255, 255, 0.2);  Liseré discret à surement affiner */
  border-color: var(--color-border);    /* Liseré orange */
  transition: var(--motion-slow) ease-in-out;
}

/* Apparition du dropdown au survol */
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
  opacity var(--motion-fast) ease-out,
  transform var(--motion-fast) ease-in-out,
  visibility 0s;
}

/* Petite flèche à côté de Portfolio */
.nav-arrow{
  display: inline-block;        /* transforme uniquement la flèche*/
  margin-left: 0.35rem;         /* espace entre texte et flèche */
  font-size: 0.75rem;           /* taille plus petite */
  line-height: 1;               /* évite d'embarquer la hauteur de ligne */
  opacity: 0.7;                 /* légèrement discrète */

  transform-origin: 50% 50%;    /* pivot centrale */
  transition: var(--motion-fast) ease-in-out;
}

/* Effet d'ouverture de la flèche */
.has-dropdown:hover .nav-arrow{
  transform: rotate(180deg);
}

/* évite que tout bouge */
.has-dropdown > a{
  display: inline-flex;
  align-items: center;
}

/* Titres : base (site entier) */
h1,
h2,
h3,
h4 {
  font-family: var(--font-accent);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  white-space: pre-line;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-h2);
}

.h1-home {
  font-size: 3rem;
  color: var(--color-h2);
}

h2 {
  /*font-size: clamp(1.3rem, 2vw, 1.9rem);*/
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  color: var(--color-h2);
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1.05rem;
}

/* ---------- Sections / Encadrés ---------- */
.hero {
  padding: 3rem 3rem;
  margin-bottom: 2rem;
  background: var(--color-bg-alt);
  border-radius: 1.5rem;
  border: 3.5px solid var(--color-border);

  min-height: 70vh;
}

.hero h1 {
  margin-bottom: 0.8rem;
}

.hero h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.7rem;
  opacity: 0.95;
}

.panel {
  padding: 2.5rem 2.2rem;
  margin-bottom: 2rem;
  background: var(--color-bg-alt);
  border-radius: 1.5rem;
  border: 2.5px solid var(--color-border);
}

.hero p {
  max-width: 45rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

p {
  font-size: var(--font-size-global);
  white-space: pre-line;
  margin: 0 0 1rem;
}

/* Espacement standard : un titre après du texte */
p + h2,
p + h3,
p + h4 {
  margin-top: 1.6rem;
}

/* Espacement standard : un titre avant du texte */
h2 + p,
h3 + p,
h4 + p {
  margin-top: 0.2rem;
}

/* lien hypertexte */
a {
  color: var(--color-text);   /* or - cohérent avec ton thème */
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark); /* or profond */
}

/* encadré avec seconde police */
.card {
  background: var(--color-bg-alt);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-family: var(--font-main);
}

/* ---------- Boutons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-accent);
  font-weight: 700;
  text-decoration: none;
  background: var(--color-primary);
  color: #000000;
  font-size: 1.2rem;
  transition: 
    transform var(--motion-fast) ease-out, 
    background var(--motion-base) ease-in-out, 
    color var(--motion-base) ease-in-out;
}

.btn-primary:hover {
  opacity: 1;
  filter: none;
  color: #000000;
  background: var(--color-primary);
  transform: translateY(0px);
}

/* liens-boutons ( dropdown + CTA) */
.dropdown a,
.btn-primary{
  transform-origin: center;
  transition: transform var(--motion-fast) var(--ease-pop);
  will-change: transform;
}

/* Hover commun */
.main-nav a:hover,
.dropdown a:hover,
.btn-primary:hover{
  transform: scale(var(--btn-scale));
}

/* responsiv sous css */
@media (max-width: 720px){
  .footer-top{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-social{
    justify-self: center;
    justify-content: center;
  }

  .footer-sitemap{
    justify-self: center;
    text-align: center;
  }
}

@media (min-width: 1100px){
  .site-header .main-nav > ul{
    padding-inline: calc((100vw - var(--content-width)) / 2 + var(--content-pad));
  }
}

/* Annulation du style hypertexte pour le menu */
.main-nav a,
.main-nav a:visited,
.main-nav a:hover,
.main-nav a:active {
  text-decoration: none !important;
}

/* Brand : aucun effet de hover 
.main-nav .nav-brand a:hover {
  background: transparent;
  color: inherit;
}*/

/* pour désactiver le halo pour le brand */
.main-nav .nav-brand a::before {
  content: none;
}

/* pas de halo sur le logo 
.main-nav .nav-logo a::before{
  content: none;
}*/

/* annule halo sur bulle des sousboutons*/
.dropdown::before,
.dropdown::after {
  content: none !important;
}

/* =========================
   SERVICES PANELS (layout)
   ========================= */

.service-panel .service-header{
  text-align: center;
  max-width: 52rem;
  margin: 0 auto 1.4rem;
}

.service-panel .service-header p{
  margin-bottom: 0; /* évite un gros vide avant la grille */
}

.service-panel .service-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.4rem;
}

/* zone texte */
.service-panel .service-types h3{
  margin-bottom: 0.6rem;
}

/* liste style "– ..." */
.dash-list{
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.dash-list li{
  position: relative;
  padding-left: 1.2rem;
  margin: 0.45rem 0;
}

.dash-list li::before{
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.9;
}

/* zone média (placeholder / vidéo / image) */
.service-panel .service-media{
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.15);
}

.service-media-label{
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  opacity: 0.35;
}

/* si tu mets une vraie vidéo / image */
.service-panel .service-media video,
.service-panel .service-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* boutons en bas */
.service-panel .service-cta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* bouton secondaire (outline) */
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-accent);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  transition: transform var(--motion-fast) var(--ease-pop);
}

.btn-secondary:hover{
  transform: scale(var(--btn-scale));
}

/* responsive: empilement */
@media (max-width: 768px){
  .service-panel .service-grid{
    grid-template-columns: 1fr;
  }
}

/* ===== Panel services : 2 colonnes + boutons sous chaque bloc ===== */

.service-panel .panel-header-centered p{
  max-width: 60rem;      /* optionnel : évite une ligne trop longue */
  margin: 0 auto;
}

.service-two-cols{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;  /* texte un peu plus large */
  gap: 2.5rem;
  align-items: start;                  /* IMPORTANT : même niveau que la vidéo */
  margin-top: 1.8rem;
}

.service-col-text{
  text-align: left;
}

.service-col-media{
  text-align: center;
}

/* Liste style “– …” */
.dash-list{
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.dash-list li{
  position: relative;
  padding-left: 1.2rem;
  margin: 0.45rem 0;
}

.dash-list li::before{
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.9;
}

/* Zone vidéo (placeholder) */
.service-media{
  border: 2.5px solid var(--color-border);
  border-radius: 1.2rem;
  min-height: 220px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.15);
}

.service-media-label{
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  opacity: 0.35;
}

/* Bouton sous chaque colonne : centré */
.service-col-cta{
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

/* Bouton secondaire (outline) */
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-accent);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 2.5px solid var(--color-primary);
  color: var(--color-primary);
  transition: transform var(--motion-fast) var(--ease-pop);
}

.btn-secondary:hover{
  transform: scale(var(--btn-scale));
}

/* Responsive : empilement */
@media (max-width: 768px){
  .service-two-cols{
    grid-template-columns: 1fr;
  }
}

/* ===== FIX PANEL "Donner vie à vos idées" : centrage + alignements ===== */

/* 1) Header centré */
.service-panel .panel-header-centered{
  text-align: center;
  max-width: 60rem;
  margin: 0 auto 1.6rem;
}
.service-panel .panel-header-centered p{
  margin: 0.6rem auto 0;
  max-width: 60rem;
}

/* 2) Les 2 colonnes doivent avoir la même hauteur */
.service-two-cols{
  align-items: stretch;   /* au lieu de start */
}

/* 3) Colonne = layout vertical */
.service-col{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 4) Zone "body" prend la place, et on centre verticalement dedans */
.service-body{
  flex: 1;
  display: flex;
  align-items: center;     /* centre verticalement */
}

/* la liste reste alignée à gauche */
.service-text-body{
  justify-content: flex-start;
  padding-top: 0.6rem;     /* petit "un peu plus bas" comme tu veux */
}

/* la vidéo est centrée dans sa colonne */
.service-media-wrap{
  justify-content: center;
}

/* 5) Les boutons : même niveau car ils sont en bas des colonnes */
.service-col-cta{
  margin-top: 0;           /* pas de décalage */
  padding-top: 1.4rem;
  display: flex;
  justify-content: center;
}

/* ===== OVERRIDE : box vidéo pas étroite (format 16:9) ===== */
.service-two-cols{
  /* donne un peu plus de place à la colonne vidéo */
  grid-template-columns: 1fr 1.25fr;
  align-items: stretch;
}

.service-media{
  width: 100%;
  max-width: 310px;      /* ajuste si tu veux + grand */
  aspect-ratio: 16 / 9;  /* IMPORTANT : format vidéo */
  min-height: 0 !important;  /* écrase le min-height 220px */
  height: auto;
  justify-self: center;
}

/* Centrage du texte d’intro (haut de page Services) */
.hero{
  text-align: center;
}

/* Optionnel : rendre les paragraphes plus lisibles (évite des lignes trop longues) */
.hero > p,
.hero .panel-header-centered p{
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   PORTFOLIO LAYOUT
   ========================= */


/* Panel portfolio */
.portfolio-panel{
  margin-top: 2rem;
}

.portfolio-header{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.2rem;
}


/* Grilles */
.portfolio-grid{
  display: grid;
  gap: 1.4rem;
}

.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* “Mosaic” pour Jeux vidéo (1 gros + 2 petits + 1 large) */
.grid-mosaic{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
}

.media-card--big{ grid-column: 1 / 2; grid-row: 1 / 3; }
.media-card--wide{ grid-column: 1 / 3; }

/* Feature + thumbs */
.media-card--feature{ margin-bottom: 1.4rem; }

.grid-thumbs{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards + boxes */
.media-card, .thumb-card{
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.media-box, .thumb-box{
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,0.12);
}

/* Vidéo : format horizontal agréable */
.media-box{
  aspect-ratio: 16 / 9;
  width: 100%;
}

/* La “grosse” feature */
.media-box--feature{
  aspect-ratio: 21 / 9;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-family: var(--font-accent);
  font-weight: 700;
}

/* Descriptions */
.media-desc{
  margin: 0;
  opacity: .9;
}

/* Responsive */
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-thumbs{ grid-template-columns: 1fr; }
  .grid-mosaic{ grid-template-columns: 1fr; }
  .media-card--big, .media-card--wide{ grid-column: auto; grid-row: auto; }
}

/* ===== Portfolio > Jeux-Vidéos : disposition "2 / 2 / 1 centré" ===== */
.grid-games{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* gauche - centre - droite */
  gap: 1.6rem 2.2rem;
  justify-items: stretch;
  align-items: start;
}

/* placements */
.grid-games .game-a{ grid-column: 1; grid-row: 1; }
.grid-games .game-b{ grid-column: 3; grid-row: 1; }
.grid-games .game-c{ grid-column: 1; grid-row: 2; }
.grid-games .game-d{ grid-column: 3; grid-row: 2; }

/* carte du bas centrée */
.grid-games .game-e{
  grid-column: 2;
  grid-row: 3;
}

#demo2 .media-desc{
  text-align: center;
}

/* Responsive: empilement */
@media (max-width: 900px){
  .grid-games{
    grid-template-columns: 1fr;
  }
  .grid-games .game-a,
  .grid-games .game-b,
  .grid-games .game-c,
  .grid-games .game-d,
  .grid-games .game-e{
    grid-column: auto;
    grid-row: auto;
  }
}

/* ===== Le Studio  ===== */


.hero-studio{
  display: block;
  justify-items: center;
  gap: 2rem;
}

/* 4/5 (texte) + 1/5 (photo) */
.hero-studio .studio-split{
  display: grid;
  grid-template-columns: 1.3fr 0.7fr; /* ≈ 80% / 20% */
  align-items: center;
  justify-items: center;

}

.hero-studio .studio-intro{
  width: 100%;
  height: 100%;
}

/* le texte prend bien la largeur dispo */
.hero-studio .studio-bio{
  min-width: 0;
  justify-self: right;
  text-align: left;
}

/* carte photo */
.hero-studio .studio-card{
  display: flex;
  justify-self: start;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 55%;
  height: 55%;
  gap: 1rem;
}

.hero-studio .studio-photo{
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  aspect-ratio: 1 / 1;     /* carré propre */
  overflow: hidden;
  justify-content: center;
  gap: 1rem;

}

.hero-studio .studio-photo .photoprofil-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-studio .studio-photo .social-icon-lestudio{
  display: flex;
  gap: 0.8rem;
  justify-self: center;
}

.hero-studio .social-icon-lestudio .logoLinkedinLestudio-img{
  width: 140px;
  height: 35px;
  border-radius: 12px;
  justify-self: center;
}

.hero-studio .studio-conlusion {
  width: 85%;
  text-align: center;

}

.hero-studio .studio-conlusion > p{
  width: 100%;

  padding: 0;
  margin: 0;
  max-width: none; 
}


.hero-studio .studio-conlusion2 {
  width: 85%;
  text-align: left;

}

.hero-studio .studio-conlusion2 > p{
  width: 100%;
  text-indent: 1rem;
  padding: 0;
  margin: 0;
  max-width: none; 
}




/* responsive */
@media (max-width: 900px){
  .studio-split{
    grid-template-columns: 1fr;
  }
  .studio-card{
    max-width: 420px;
    margin: 0 auto;
  }
}

/* =========================
   CONTACT FORM (mise en page)
   ========================= */

.hero-contact{
  display: grid;
  gap: 5rem;
  grid-template-columns: 1fr 1fr;
}

.contact-infos-mail{
  display: flex;
  justify-self: end;
  gap: 1rem;
  text-align: left; /* infos lisibles */
 
}


.contact-infos-adresse{
  display: flex;
  justify-self: start;
  gap: 1rem;
  text-align: left; /* infos lisibles */
 
}


/* Le formulaire dans un “panel” intérieur */
.contact-form{
  max-width: 900px;
  margin: 0 auto;
  padding: 1.6rem 1.6rem 1.2rem;
  border: 2px solid var(--color-border);
  border-radius: 1.2rem;
  background: rgba(0,0,0,0.10);
  text-align: left;
}

/* grille des champs */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
}

.field{
  display: grid;
  gap: 0.4rem;
}

.field-full{
  grid-column: 1 / -1;
}

/* labels */
.field label{
  font-family: var(--font-accent);
  font-weight: 700;
}

/* astérisque */
.req{
  margin-left: .25rem;
  color: var(--color-primary);
}

/* inputs */
.field input,
.field textarea{
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: rgba(0,0,0,0.12);
  color: var(--color-text);
  font-family: var(--font-main);
  outline: none;
}

.field textarea{
  resize: vertical;
  min-height: 220px; /* gros champ message comme ton croquis */
}

/* focus simple */
.field input:focus,
.field textarea:focus{
  border-color: var(--color-primary);
}

/* bouton envoyer en bas à droite */
.form-actions{
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
}

/* état disabled : on garde ton style btn-primary mais visuellement “inactif” */
.form-actions .btn-primary:disabled{
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* responsive */
@media (max-width: 800px){
  .contact-infos{
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .contact-form{
    padding: 1.2rem;
  }
  .form-grid{
    grid-template-columns: 1fr;
  }
  .form-actions{
    justify-content: center;
  }
}

/* ===== Validation visuelle ===== */
.field.is-valid input,
.field.is-valid textarea{
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.15);
}

.field.is-invalid input,
.field.is-invalid textarea{
  border-color: #d9534f;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.18);
}

.field-msg{
  min-height: 1.1em;
  margin: 0.1rem 0 0;
  font-size: 0.9em;
  opacity: 0.95;
}

.field.is-invalid .field-msg{
  color: #d9534f;
}

.field.is-valid .field-msg{
  color: var(--color-primary);
}

/* ===== Téléphone : indicatif + menu ===== */
.phone-row{
  position: relative;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.dial-btn{
  border: 2px solid var(--color-border);
  border-radius: 0.8rem;
  padding: 0.65rem 0.8rem;
  background: rgba(0,0,0,0.12);
  color: var(--color-text);
  font-family: var(--font-main);
  cursor: pointer;
  min-width: 72px;
  text-align: center;
}

.dial-menu{
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 72px;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  border: 2px solid var(--color-border);
  border-radius: 0.8rem;
  background: var(--color-bg-alt);
  z-index: 50;
  max-height: 180px;
  overflow: auto;
}

.dial-menu li{
  padding: 0.35rem 0.4rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.dial-menu li:hover{
  background: rgba(0,0,0,0.18);
}

/* =========================
   CONTACT - ETATS CHAMPS (HARMONISÉS)
   Focus = jaune / Valid = vert / Invalid = rouge
   + neutralisation autofill chrome
   ========================= */

:root{
  --color-valid: #3fb950;
  --color-invalid: #d9534f;
}

/* Transition douce */
.field input,
.field textarea,
.dial-btn{
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* 1) Neutralise le style auto-fill (Chrome met parfois un fond clair) */
input:-webkit-autofill,
textarea:-webkit-autofill{
  -webkit-text-fill-color: var(--color-text) !important;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0,0,0,0.12) inset !important;
  box-shadow: 0 0 0px 1000px rgba(0,0,0,0.12) inset !important;
  border: 2px solid var(--color-border) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* 2) FOCUS : jaune UNIQUEMENT quand on est dans le champ */
.field input:focus,
.field textarea:focus{
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.18) !important;
  background: rgba(255, 180, 0, 0.06);
}

/* Pour le bloc téléphone : quand on saisit dans l’input, le bouton +33 suit aussi */
.phone-row:focus-within .dial-btn{
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.18) !important;
  background: rgba(255, 180, 0, 0.06);
}

/* 3) VALIDE : vert (mais PAS pendant le focus) */
.field.is-valid input:not(:focus),
.field.is-valid textarea:not(:focus){
  border-color: var(--color-valid) !important;
  box-shadow: 0 0 0 2px rgba(63, 185, 80, 0.14) !important;
  background: rgba(63, 185, 80, 0.06);
}

/* Le bouton indicatif suit l'état du téléphone quand on n'est pas en focus */
.field.is-valid .dial-btn{
  border-color: var(--color-valid) !important;
}

/* 4) INVALIDE : rouge (mais PAS pendant le focus) */
.field.is-invalid input:not(:focus),
.field.is-invalid textarea:not(:focus){
  border-color: var(--color-invalid) !important;
  box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.16) !important;
  background: rgba(217, 83, 79, 0.06);
}

.field.is-invalid .dial-btn{
  border-color: var(--color-invalid) !important;
}

/* Messages */
.field.is-valid .field-msg{ color: var(--color-valid); }
.field.is-invalid .field-msg{ color: var(--color-invalid); }

.dial-menu{ width: 260px; }

/* ===== Dial button : couleur constante (ne suit pas focus/valid/invalid) ===== */
.dial-btn{
  border-color: var(--color-border) !important;
  box-shadow: none !important;
  background: rgba(0,0,0,0.12) !important;
}

/* Même si le phone-row est focus, on ne change pas le dial */
.phone-row:focus-within .dial-btn{
  border-color: var(--color-border) !important;
  box-shadow: none !important;
  background: rgba(0,0,0,0.12) !important;
}

/* Même si le field est valid/invalid, on ne change pas le dial */
.field.is-valid .dial-btn,
.field.is-invalid .dial-btn{
  border-color: var(--color-border) !important;
  box-shadow: none !important;
  background: rgba(0,0,0,0.12) !important;
}

/* =========================
   ACCUEIL – Mise en page
   ========================= */

.home-hero{
  position: relative;
  overflow: hidden;

  width: calc(100% + 6rem);
  margin-left: -3rem;
  margin-right: -3rem;
  margin-top: -3rem;


  aspect-ratio: 16 / 9; 

  border-radius: 1.3rem;
  border: 3.5px transparent var(--color-border);
  
  background: transparent;
  display:flex;
  justify-items: center;
  align-items: stretch;

}

.home-hero__video{
  position: absolute;
  align-items: center;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.55);
}

.home-hero__content{
  position: relative;
  z-index: 2;

  height: 100%;
  width: 100%;

  display: grid; 
  background: transparent;
}

.home-hero__top{
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.home-hero__title{
align-self: end;
margin-left: 17rem;
margin-bottom: 7rem;
}

.home-hero__cta{
  align-self: center;
  justify-self: start;
  margin-top: 17rem;
  margin-left: 7rem;
}

/* Panels accueil */
.home-panel{
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  padding: 2rem 2.2rem;
  border-radius: 26px;
  border: 2px solid var(--color-border);
  
}

.home-panel__grid{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-content: center;
}

.home-panel__text{
  display: grid;
  justify-items: center;
  text-align: left;  
  gap: 2rem;  
}

.home-panel__text p{
  margin-top: -2rem;
  max-width: 100%;
  width: fit-content;
}

.home-panel__liste ul{
  margin-top: -1rem;
  width: 100%;
  padding-left: 1.2rem;
  font-size: var(--font-size-global);
}

.home-panel__liste li{
  margin: 0.35rem 0;
}

.home-panel__actions{
  display: flex;
  flex-direction: column;
  gap: 8rem;
  align-items: center;
  justify-content: center;
}

.home-panel__actions .btn-primary{
  width: min(200px, 100%);
}

.home-panel__actions--left{
  margin-top: -1rem; 
  align-items: center;
}

.home-panel__right{
  display: flex;
  flex-direction: column;
  margin-top : 2rem;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

/* Icônes réseaux (carrés) */
.social-icons{
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icon svg{
  width: 22px;
  height: 22px;
  fill: var(--color-text);
}


.hero-studio .studio-conlusion2 p{
 text-indent: 30%;
}

/* Responsive */
@media (max-width: 820px){
  .home-hero__top,
  .home-panel__grid{
    grid-template-columns: 1fr;
  }
  .home-panel__actions,
  .home-panel__right{
    align-items: flex-start;
  }
  .social-icons{
    justify-content: flex-start;
  }
}

