/*
Theme Name: FCA Projets final (Editable Pages)
Theme URI: https://fcaprojets.fr
Author: FCA Projets
Description: Thème FCA Projets : header bois noyer arrondi, logo battement or, menu premium centré, pages éditables dans WordPress + SEO/meta.
Version: 3.2.5
Text Domain: fca-projets-final
*/

@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Handlee&display=swap");

/* =========================
   VARIABLES
   ========================= */
:root{
  --fca-font-titles: "Cinzel Decorative", serif;
  --fca-font-text: "Handlee", cursive;

  --fca-color-text: #3b1f0a;
  --fca-color-title: #4b2e05;
  --fca-color-cuivre: #c38a42;
  --fca-color-dore:  #ffd28c;

  --fca-bg-body: #ffffff;

  /* Fond de l'entête */
  --fca-header-bg: url("https://fcaprojets.fr/wp-content/uploads/2025/12/entete-fcaprojets-seine-et-marne.png");

  /* Soulignement calligraphique (PNG) */
  --fca-orn-url: url("https://fcaprojets.fr/wp-content/uploads/2025/12/background_removalTUFHN1RaWFByckkjMSM2Y2FmMjhhNTNhMzRiYzBiNTFlMTQ3ZGQxNmEyZTRmMCMxMzQ0IyNUUkFOU0ZPUk1BVElPTl9SRVFVRVNU.png");

  /* Header layout */
  --fca-header-side: 210px;         /* largeur zone gauche/droite (centrage menu parfait) */
  --fca-logo-left-nudge: -42px;     /* pousse le logo dans l'arrondi */
  --fca-header-inner-pad-x: 40px;   /* bords */
  --fca-header-inner-pad-y: 12px;
}

/* =========================
   RESET & BASE
   ========================= */
*,
*::before,
*::after{ box-sizing:border-box; }

html,body{ margin:0; padding:0; }

body{
  background:var(--fca-bg-body);
  font-family:var(--fca-font-text);
  font-size:18px;
  line-height:1.7;
  color:var(--fca-color-text);
}

a{ color:var(--fca-color-text); text-decoration:none; }
a:hover{ color:var(--fca-color-dore); }

h1,h2,h3,h4,h5,h6,
.entry-title,
.wp-block-heading{
  font-family:var(--fca-font-titles);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.16em;
  color:var(--fca-color-cuivre);
  margin-top:0.2em;
  margin-bottom:0.5em;
}

/* =========================
   STRUCTURE
   ========================= */
.site{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.site-main{
  flex:1 0 auto;
}
.site-footer{
  flex-shrink:0;
  text-align:center;
  padding:20px 10px;
  font-size:14px;
  border-top:1px solid rgba(0,0,0,0.06);
  color:#7a5a3b;
}
.site-footer a{ color:inherit; }
.site-footer a:hover{ text-decoration:underline; }

/* Zone contenu standard */
.page-wrapper,
.entry-content{
  max-width:1200px;
  margin:40px auto 60px;
  padding:0 20px;
}

/* =========================
   HEADER (PROPRE)
   ========================= */
.site-header,
#masthead{
  background-image:var(--fca-header-bg);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;

  min-height:120px;
  padding:0 !important; /* géré par .header-inner */

  border-bottom-left-radius:40px;
  border-bottom-right-radius:40px;

  box-shadow:0 10px 26px rgba(0,0,0,0.45);
  position:relative;
  z-index:20;

  overflow:visible;
}

/* header inner full width + grille */
.site-header .header-inner,
#masthead .header-inner{
  max-width:100% !important;
  width:100% !important;
  margin:0 !important;

  padding: var(--fca-header-inner-pad-y) var(--fca-header-inner-pad-x) !important;

  display:grid !important;
  grid-template-columns: var(--fca-header-side) 1fr var(--fca-header-side);
  align-items:center;

  position:relative;
  overflow:visible;
}
.site-header .header-inner::after,
#masthead .header-inner::after{
  content:"";
  grid-column:3;
  width: var(--fca-header-side);
  height: 1px;
  display:block;
}

/* =========================
   LOGO
   ========================= */
.site-branding{
  grid-column:1;
  justify-self:start;
  align-self:center;

  display:flex;
  align-items:center;
  gap:16px;

  margin-left: var(--fca-logo-left-nudge) !important;
  margin-top:6px;

  position:relative;
  z-index:5;
  overflow:visible;
}

.custom-logo-link::before,
.custom-logo-link::after,
.site-branding a::before,
.site-branding a::after,
.wp-block-site-logo::before,
.wp-block-site-logo::after{
  content:none !important;
  display:none !important;
}

.site-branding img,
.custom-logo,
.custom-logo-link img,
.wp-block-site-logo img{
  height:82px;
  width:auto;
  display:block;

  border-radius:18px;
  background:none;
  box-shadow:none;

  filter:
    drop-shadow(0 0 10px rgba(255,210,140,.55))
    drop-shadow(0 0 26px rgba(195,138,66,.45))
    drop-shadow(0 0 46px rgba(255,235,190,.35));

  animation:fca-logo-heartbeat 1.4s ease-in-out infinite;
}

@keyframes fca-logo-heartbeat{
  0%{
    transform:scale(1);
    filter:
      drop-shadow(0 0 8px rgba(255,210,140,.45))
      drop-shadow(0 0 18px rgba(195,138,66,.35));
  }
  12%{
    transform:scale(1.045);
    filter:
      drop-shadow(0 0 14px rgba(255,210,140,.75))
      drop-shadow(0 0 32px rgba(195,138,66,.65));
  }
  25%{ transform:scale(1.01); }
  40%{
    transform:scale(1.06);
    filter:
      drop-shadow(0 0 18px rgba(255,210,140,.9))
      drop-shadow(0 0 46px rgba(195,138,66,.75));
  }
  100%{ transform:scale(1); }
}

/* =========================
   MENU
   ========================= */
.main-nav{
  grid-column:2;
  justify-self:center;
  align-self:center;

  display:flex;
  justify-content:center;
  overflow:visible;
  position:relative;
  z-index:6;
}
.main-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:52px;
  overflow:visible;
}
.main-nav li{ overflow:visible; }

.site-header .main-nav > ul > li > a{
  font-family:var(--fca-font-titles);
  font-size:22px;
  font-weight:900;
  letter-spacing:.48em;
  text-transform:uppercase;

  color:#2f2114;
  -webkit-text-stroke:1px rgba(70,45,20,0.75);

  text-shadow:
    0 1px 1px rgba(0,0,0,.55),
    0 3px 6px rgba(0,0,0,.35);

  position:relative;
  display:inline-block;
  padding-bottom:18px;

  border:0;
  text-decoration:none;

  transition:all .25s ease;
}

.site-header .main-nav > ul > li > a::after{
  content:none !important;
  display:none !important;
}

.site-header .main-nav > ul > li > a:hover,
.site-header .main-nav .current-menu-item > a,
.site-header .main-nav .current_page_item > a{
  background: linear-gradient(
    180deg,
    #fff2c2 0%,
    #ffd98a 22%,
    #e6b65c 48%,
    #c8922e 62%,
    #ffd98a 80%,
    #fff2c2 100%
  );
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  text-shadow:
    0 1px 1px rgba(255,255,255,.40),
    0 3px 6px rgba(0,0,0,.45),
    0 0 14px rgba(255,214,140,.75),
    0 0 28px rgba(212,166,90,.55);

  -webkit-text-stroke:.6px rgba(120,75,20,0.55);
  transform:translateY(-1px);
}

.site-header .main-nav > ul > li > a::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-22px;
  transform:translateX(-50%) scaleY(1.22);

  width:160px;
  height:52px;

  background:var(--fca-orn-url) no-repeat center;
  background-size:contain;

  opacity:0;
  transition:opacity .2s ease;
  pointer-events:none;
  z-index:9999;
}
.site-header .main-nav > ul > li > a:hover::before,
.site-header .main-nav .current-menu-item > a::before,
.site-header .main-nav .current_page_item > a::before{
  opacity:1;
}

/* =========================
   BURGER MOBILE
   ========================= */
.menu-toggle{
  grid-column:3;
  justify-self:end;
  align-self:center;

  display:none;
  cursor:pointer;
  flex-direction:column;
  gap:4px;

  position:relative;
  z-index:30;

  border:0;
  background:transparent;
  padding:8px;
}
.menu-toggle span{
  width:24px;
  height:3px;
  background:#ffd28c;
  border-radius:2px;
}

@media (max-width:900px){
  :root{
    --fca-header-side: 120px;
    --fca-header-inner-pad-x: 18px;
    --fca-logo-left-nudge: -10px;
  }

  .site-header .header-inner,
  #masthead .header-inner{
    grid-template-columns: auto 1fr auto;
    column-gap: 14px;
  }

  .site-branding img,
  .custom-logo,
  .custom-logo-link img,
  .wp-block-site-logo img{ height:64px; }

  .main-nav{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    padding:16px 0 10px;
    background:rgba(40,16,4,0.98);
    border-bottom-left-radius:40px;
    border-bottom-right-radius:40px;
    box-shadow:0 14px 30px rgba(0,0,0,0.7);
    display:none;
    justify-content:center;
    z-index:25;
  }

  .main-nav ul{
    flex-direction:column;
    gap:24px;
    text-align:center;
  }

  .menu-toggle{ display:flex; }
  .main-nav.open{ display:flex; }

  .site-header .main-nav > ul > li > a{
    font-size:18px;
    letter-spacing:.28em;
    -webkit-text-stroke:.5px rgba(0,0,0,.6);
    text-shadow:0 0 6px rgba(0,0,0,.9);
  }

  .site-header .main-nav > ul > li > a::before{
    width:130px;
    height:44px;
    bottom:-20px;
    transform:translateX(-50%) scaleY(1.18);
  }
}
