/*
Theme Name: Le Digital Theme Child
Theme URI: https://le-digital.ch
Description: Child theme Astra pour FC Grandson-Tuileries.
Author: Le Digital
Author URI: https://le-digital.ch
Template: astra
Version: 1.0.0
Text Domain: le-digital-theme-child
*/

/* =========================================================
   Le Digital Theme Child — CSS global
   Base propre pour Astra + FC Grandson-Tuileries
========================================================= */

:root{
  --ld-blue:#123b78;
  --ld-blue-dark:#08234d;
  --ld-gold:#c8a74b;
  --ld-gold-light:#f2d36b;
  --ld-text:#0f172a;
  --ld-muted:#64748b;
  --ld-border:#e5e7eb;
  --ld-soft:#f6f8fc;
}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ld-text);
}

a{
  transition:color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

img{
  max-width:100%;
  height:auto;
}

/* =========================================================
   LE DIGITAL THEME CHILD — FC Grandson-Tuileries
   Base design globale Astra
   ========================================================= */

:root{
  --fcgt-blue:#0f2f66;
  --fcgt-blue-dark:#061a3d;
  --fcgt-gold:#e4c15b;
  --fcgt-gold-light:#f6d87a;
  --fcgt-red:#f9423a;
  --fcgt-text:#0f172a;
  --fcgt-muted:#64748b;
  --fcgt-soft:#f5f7fb;
  --fcgt-border:#e5e7eb;
  --fcgt-white:#ffffff;

  --fcgt-radius-sm:12px;
  --fcgt-radius:22px;
  --fcgt-radius-lg:32px;

  --fcgt-shadow:0 14px 40px rgba(15,23,42,.08);
  --fcgt-shadow-strong:0 24px 70px rgba(6,26,61,.20);
}

/* =========================
   BASE ASTRA
========================= */

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--fcgt-text);
  background:#fff;
}

a{
  transition:all .2s ease;
}

.site-content{
  overflow:hidden;
}

.ast-container,
.site-content .ast-container{
  max-width:100%;
  padding-left:0;
  padding-right:0;
}

/* Supprime les marges inutiles Astra sur pages Elementor */
.elementor-page .site-content,
.elementor-page .entry-content{
  margin:0;
}

/* =========================
   HEADER ASTRA
========================= */

.main-header-bar,
.ast-primary-header-bar{
  background:rgba(6,26,61,.96);
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 12px 35px rgba(0,0,0,.12);
}

.site-title a,
.site-description,
.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link{
  color:#fff;
}

.main-header-menu .menu-link:hover,
.ast-builder-menu-1 .menu-item > .menu-link:hover{
  color:var(--fcgt-gold-light);
}

/* Bouton calendrier dans le menu */
.main-header-menu .menu-item a[href*="calendrier"],
.ast-builder-menu-1 .menu-item a[href*="calendrier"]{
  background:linear-gradient(135deg,var(--fcgt-gold-light),var(--fcgt-gold));
  color:var(--fcgt-blue-dark)!important;
  border-radius:999px;
  padding:10px 16px!important;
  font-weight:900;
  box-shadow:0 10px 24px rgba(228,193,91,.25);
}

.main-header-menu .menu-item a[href*="calendrier"]:hover,
.ast-builder-menu-1 .menu-item a[href*="calendrier"]:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(228,193,91,.35);
}

/* =========================
   OUTILS GLOBAUX
========================= */

.fcgt-wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

.fcgt-section{
  padding:84px 0;
}

.fcgt-section-soft{
  background:var(--fcgt-soft);
}

.fcgt-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:var(--fcgt-gold);
  font-size:13px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.fcgt-title{
  margin:0;
  color:var(--fcgt-blue-dark);
  font-size:clamp(32px,4vw,54px);
  line-height:1.04;
  letter-spacing:-.05em;
  font-weight:950;
}

.fcgt-text{
  color:var(--fcgt-muted);
  font-size:17px;
  line-height:1.75;
}

.fcgt-intro{
  max-width:720px;
  margin:14px 0 0;
  color:var(--fcgt-muted);
  font-size:17px;
  line-height:1.7;
}

/* =========================
   BOUTONS
========================= */

.fcgt-btn,
a.fcgt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  font-weight:900;
  font-size:15px;
  line-height:1;
  text-decoration:none!important;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .22s ease;
}

.fcgt-btn:hover{
  transform:translateY(-2px);
}

.fcgt-btn-primary{
  background:linear-gradient(135deg,var(--fcgt-gold-light),var(--fcgt-gold));
  color:var(--fcgt-blue-dark)!important;
  box-shadow:0 16px 36px rgba(228,193,91,.28);
}

.fcgt-btn-secondary{
  background:rgba(255,255,255,.12);
  color:#fff!important;
  border-color:rgba(255,255,255,.35);
}

.fcgt-btn-blue{
  background:linear-gradient(135deg,var(--fcgt-blue),var(--fcgt-blue-dark));
  color:#fff!important;
  box-shadow:0 16px 36px rgba(6,26,61,.22);
}

.fcgt-btn-light{
  background:#eef4ff;
  color:var(--fcgt-blue)!important;
  border-color:#dbeafe;
}

/* =========================
   HOMEPAGE HERO
========================= */

.fcgt-home{
  width:100%;
  overflow:hidden;
}

.fcgt-home-hero{
  position:relative;
  min-height:82vh;
  display:flex;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(105deg,rgba(6,26,61,.96),rgba(15,47,102,.82),rgba(6,26,61,.35)),
    url("https://fc-grandson.ch/wp-content/uploads/2026/05/fc-grandson-football.jpg") center/cover no-repeat;
  padding:140px 0 90px;
}

.fcgt-home-hero:after{
  content:"";
  position:absolute;
  inset:auto -120px -180px auto;
  width:420px;
  height:420px;
  border-radius:999px;
  border:70px solid rgba(255,255,255,.055);
}

.fcgt-home-hero-inner{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:44px;
  align-items:center;
}

.fcgt-hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  margin-bottom:18px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  color:var(--fcgt-gold-light);
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.fcgt-home-hero h1{
  margin:0;
  max-width:820px;
  color:#fff;
  font-size:clamp(46px,6.5vw,86px);
  line-height:.94;
  letter-spacing:-.07em;
  font-weight:950;
}

.fcgt-home-hero h1 span{
  color:var(--fcgt-gold-light);
}

.fcgt-home-hero p{
  max-width:700px;
  margin:24px 0 0;
  color:rgba(255,255,255,.88);
  font-size:clamp(17px,2vw,21px);
  line-height:1.65;
  font-weight:500;
}

.fcgt-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:34px;
}

/* Carte logo dans le hero */
.fcgt-hero-card{
  position:relative;
  padding:28px;
  border-radius:var(--fcgt-radius-lg);
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(14px);
  box-shadow:var(--fcgt-shadow-strong);
}

.fcgt-hero-card img{
  width:96px;
  height:auto;
  display:block;
  margin-bottom:18px;
}

.fcgt-hero-card h2{
  margin:0 0 12px;
  color:#fff;
  font-size:28px;
  line-height:1.12;
  font-weight:950;
  letter-spacing:-.03em;
}

.fcgt-hero-card p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:15px;
  line-height:1.6;
}

.fcgt-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:22px;
}

.fcgt-stat{
  padding:14px 10px;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  text-align:center;
}

.fcgt-stat strong{
  display:block;
  color:var(--fcgt-gold-light);
  font-size:24px;
  line-height:1;
  font-weight:950;
}

.fcgt-stat span{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:750;
}

/* =========================
   BLOCS HOME
========================= */

.fcgt-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:32px;
}

.fcgt-life-grid{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:36px;
  align-items:center;
}

.fcgt-image-panel{
  min-height:440px;
  border-radius:var(--fcgt-radius-lg);
  background:url("https://fc-grandson.ch/wp-content/uploads/2026/05/fc-grandson-football.jpg") center/cover no-repeat;
  box-shadow:var(--fcgt-shadow-strong);
}

.fcgt-content-panel{
  padding:38px;
  border-radius:var(--fcgt-radius-lg);
  background:#fff;
  border:1px solid var(--fcgt-border);
  box-shadow:var(--fcgt-shadow);
}

/* =========================
   CARTES ACCÈS RAPIDES
========================= */

.fcgt-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.fcgt-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:220px;
  padding:26px;
  border-radius:26px;
  background:#fff;
  border:1px solid var(--fcgt-border);
  color:var(--fcgt-text)!important;
  text-decoration:none!important;
  box-shadow:var(--fcgt-shadow);
  overflow:hidden;
}

.fcgt-card:after{
  content:"";
  position:absolute;
  right:-38px;
  bottom:-38px;
  width:120px;
  height:120px;
  border-radius:999px;
  background:rgba(228,193,91,.13);
}

.fcgt-card:hover{
  transform:translateY(-4px);
  border-color:rgba(15,47,102,.28);
  box-shadow:0 24px 60px rgba(15,23,42,.12);
}

.fcgt-icon{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:18px;
  border-radius:18px;
  background:linear-gradient(135deg,#eef4ff,#fff7db);
  color:var(--fcgt-blue);
  font-size:24px;
}

.fcgt-card h3{
  margin:0 0 10px;
  color:var(--fcgt-blue-dark);
  font-size:23px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.025em;
}

.fcgt-card p{
  margin:0;
  color:var(--fcgt-muted);
  font-size:15px;
  line-height:1.6;
}

.fcgt-card-link{
  margin-top:auto;
  padding-top:22px;
  color:var(--fcgt-blue);
  font-weight:950;
  font-size:14px;
}

/* =========================
   MINI CALENDRIER HOME
========================= */

.fcgt-match-box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.fcgt-match-feature{
  min-height:270px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:30px;
  border-radius:var(--fcgt-radius-lg);
  background:
    radial-gradient(circle at 20% 20%,rgba(228,193,91,.25),transparent 35%),
    linear-gradient(135deg,var(--fcgt-blue-dark),var(--fcgt-blue));
  color:#fff;
  box-shadow:var(--fcgt-shadow-strong);
}

.fcgt-match-date{
  display:inline-flex;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  color:var(--fcgt-gold-light);
  font-weight:900;
  font-size:13px;
}

.fcgt-match-feature h3{
  margin:22px 0 10px;
  color:#fff;
  font-size:32px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.035em;
}

.fcgt-place{
  color:rgba(255,255,255,.86);
  font-size:15px;
  line-height:1.55;
  font-weight:650;
}

.fcgt-match-list{
  display:grid;
  gap:12px;
}

.fcgt-match-small{
  display:grid;
  grid-template-columns:82px 1fr;
  gap:15px;
  align-items:center;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--fcgt-border);
  box-shadow:var(--fcgt-shadow);
}

.fcgt-hour{
  background:#eef4ff;
  color:var(--fcgt-blue);
  border-radius:16px;
  padding:13px 8px;
  text-align:center;
  font-weight:950;
}

.fcgt-match-small strong{
  display:block;
  color:var(--fcgt-blue-dark);
  font-size:16px;
  line-height:1.25;
}

.fcgt-match-small span{
  display:block;
  margin-top:5px;
  color:var(--fcgt-muted);
  font-size:13px;
  line-height:1.35;
}

/* =========================
   SPONSORS
========================= */

.fcgt-sponsors{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  align-items:center;
}

.fcgt-sponsor{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--fcgt-border);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}

.fcgt-sponsor img{
  max-width:150px;
  max-height:56px;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* =========================
   CTA FINAL
========================= */

.fcgt-final{
  padding:54px 28px;
  border-radius:34px;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(circle at 15% 20%,rgba(246,216,122,.25),transparent 32%),
    linear-gradient(135deg,var(--fcgt-blue-dark),var(--fcgt-blue));
  box-shadow:var(--fcgt-shadow-strong);
}

.fcgt-final h2{
  margin:0 0 14px;
  color:#fff;
  font-size:clamp(32px,4vw,52px);
  line-height:1.05;
  letter-spacing:-.05em;
  font-weight:950;
}

.fcgt-final p{
  max-width:740px;
  margin:0 auto 28px;
  color:rgba(255,255,255,.84);
  font-size:17px;
  line-height:1.65;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1024px){
  .fcgt-home-hero-inner,
  .fcgt-life-grid,
  .fcgt-match-box{
    grid-template-columns:1fr;
  }

  .fcgt-hero-card{
    max-width:540px;
  }

  .fcgt-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .fcgt-sponsors{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:760px){
  .fcgt-section{
    padding:58px 0;
  }

  .fcgt-wrap{
    padding:0 14px;
  }

  .fcgt-home-hero{
    min-height:auto;
    padding:105px 0 54px;
  }

  .fcgt-home-hero-inner{
    padding:0 14px;
    gap:28px;
  }

  .fcgt-home-hero h1{
    font-size:42px;
  }

  .fcgt-home-hero p{
    font-size:16px;
  }

  .fcgt-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .fcgt-btn,
  a.fcgt-btn{
    width:100%;
    min-height:50px;
  }

  .fcgt-hero-card{
    padding:22px;
    border-radius:24px;
  }

  .fcgt-stats{
    grid-template-columns:1fr;
  }

  .fcgt-section-head{
    display:block;
  }

  .fcgt-title{
    font-size:34px;
  }

  .fcgt-grid{
    grid-template-columns:1fr;
  }

  .fcgt-content-panel{
    padding:24px;
    border-radius:24px;
  }

  .fcgt-image-panel{
    min-height:300px;
    border-radius:24px;
  }

  .fcgt-match-feature{
    padding:24px;
    border-radius:24px;
  }

  .fcgt-match-small{
    grid-template-columns:70px 1fr;
    padding:14px;
  }

  .fcgt-sponsors{
    grid-template-columns:1fr;
  }

  .fcgt-final{
    padding:38px 20px;
    border-radius:26px;
  }
}

/* =========================================================
   FCGT — Ajustements Homepage v2
   ========================================================= */

/* Hero moins massif + meilleur padding */
.fcgt-home-hero{
  min-height:74vh;
  padding:120px 0 78px;
}

.fcgt-home-hero-inner{
  max-width:1240px;
  padding:0 34px;
  grid-template-columns:1.05fr .95fr;
}

.fcgt-home-hero h1{
  font-size:clamp(38px,5.2vw,68px);
  line-height:1;
  letter-spacing:-.055em;
}

.fcgt-home-hero p{
  max-width:620px;
  font-size:18px;
  line-height:1.65;
}

.fcgt-hero-card{
  max-width:520px;
  margin-left:auto;
}

/* Bloc calendrier avec image à droite */
.fcgt-match-box-v2{
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  gap:24px;
  align-items:stretch;
}

.fcgt-match-image{
  min-height:330px;
  border-radius:32px;
  background:
    linear-gradient(135deg,rgba(6,26,61,.12),rgba(6,26,61,.02)),
    url("https://fc-grandson.ch/wp-content/uploads/2025/07/banner13.jpg") center/cover no-repeat;
  box-shadow:0 24px 70px rgba(6,26,61,.16);
  border:1px solid rgba(15,47,102,.12);
}

/* Accès rapides sans pictos */
.fcgt-card{
  min-height:205px;
}

.fcgt-card .fcgt-icon{
  display:none;
}

/* Demi-cercle plus premium bleu/or */
.fcgt-card:after{
  right:-42px;
  bottom:-42px;
  width:132px;
  height:132px;
  background:
    radial-gradient(circle at 35% 35%, rgba(246,216,122,.70), rgba(228,193,91,.22) 45%, rgba(15,47,102,.10) 72%);
  border:1px solid rgba(228,193,91,.25);
}

.fcgt-card:before{
  content:"";
  position:absolute;
  right:18px;
  top:18px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--fcgt-gold);
  box-shadow:0 0 0 6px rgba(228,193,91,.16);
}

/* CTA dans hero : un seul bouton */
.fcgt-home-hero .fcgt-actions{
  margin-top:30px;
}

/* Responsive */
@media(max-width:1024px){
  .fcgt-home-hero-inner,
  .fcgt-match-box-v2{
    grid-template-columns:1fr;
  }

  .fcgt-hero-card{
    margin-left:0;
  }
}

@media(max-width:760px){
  .fcgt-home-hero{
    padding:96px 0 48px;
  }

  .fcgt-home-hero-inner{
    padding:0 18px;
  }

  .fcgt-home-hero h1{
    font-size:39px;
  }

  .fcgt-home-hero p{
    font-size:16px;
  }

  .fcgt-match-image{
    min-height:230px;
    border-radius:24px;
  }
}

/* =========================================================
   FCGT — Homepage v3 corrections
   ========================================================= */

/* Réduit l’espace entre calendrier et accès rapides */
.fcgt-section{
  padding:64px 0;
}

.fcgt-section + .fcgt-section{
  padding-top:56px;
}

/* Bloc calendrier plus compact */
.fcgt-match-box-v2{
  margin-top:22px;
}

.fcgt-match-feature{
  min-height:300px;
}

.fcgt-match-image{
  min-height:300px;
}

/* Supprime les anciens effets jaunes */
.fcgt-card:after,
.fcgt-card:before{
  display:none!important;
}

/* Cartes accès rapides plus premium */
.fcgt-card{
  min-height:190px;
  padding:28px;
  border-radius:24px;
  border:1px solid rgba(15,47,102,.12);
  box-shadow:0 16px 42px rgba(15,23,42,.055);
}

.fcgt-card::before{
  content:"";
  display:block!important;
  position:absolute;
  left:28px;
  top:0;
  width:64px;
  height:4px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,var(--fcgt-gold),var(--fcgt-blue));
  box-shadow:none;
}

.fcgt-card:hover{
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}

/* Nouveau bloc Instagram */
.fcgt-instagram{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:stretch;
  padding:42px;
  border-radius:34px;
  background:
    radial-gradient(circle at 10% 15%,rgba(228,193,91,.25),transparent 28%),
    linear-gradient(135deg,var(--fcgt-blue-dark),var(--fcgt-blue));
  color:#fff;
  box-shadow:var(--fcgt-shadow-strong);
  overflow:hidden;
}

.fcgt-instagram h2{
  margin:0;
  color:#fff;
  font-size:clamp(32px,4vw,52px);
  line-height:1.04;
  letter-spacing:-.05em;
  font-weight:950;
}

.fcgt-instagram p{
  max-width:660px;
  margin:16px 0 0;
  color:rgba(255,255,255,.84);
  font-size:17px;
  line-height:1.65;
}

.fcgt-instagram-media{
  min-height:300px;
  border-radius:28px;
  background:
    linear-gradient(180deg,rgba(6,26,61,.08),rgba(6,26,61,.38)),
    url("https://fc-grandson.ch/wp-content/uploads/2025/07/banner13.jpg") center/cover no-repeat;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}

.fcgt-instagram-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  color:var(--fcgt-gold-light);
  font-size:13px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

/* Mobile */
@media(max-width:900px){
  .fcgt-instagram{
    grid-template-columns:1fr;
    padding:28px;
  }
}

@media(max-width:760px){
  .fcgt-section{
    padding:48px 0;
  }

  .fcgt-section + .fcgt-section{
    padding-top:42px;
  }

  .fcgt-card{
    min-height:auto;
  }

  .fcgt-instagram{
    border-radius:26px;
    padding:24px;
  }

  .fcgt-instagram-media{
    min-height:220px;
    border-radius:22px;
  }
}
