/* ============================================================
   North & South — Academy
   VERSION RED — PREMIUM — FINAL (clean + stable)
   ============================================================ */

:root{
  --bg:#ffffff;
  --line: rgba(0,0,0,.08);
  --text:#141414;
  --muted: rgba(20,20,20,.42);
  --red:#c40016;
  --max: 1080px;
}

*{box-sizing:border-box;}
html,body{height:100%;}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  color:var(--text);
  background: var(--bg);

  /* fond très léger + texture grain papier premium */
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.02) 0%,
      rgba(0,0,0,0.00) 45%,
      rgba(0,0,0,0.015) 100%
    ),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.008) 2px, rgba(0,0,0,0.008) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.008) 2px, rgba(0,0,0,0.008) 4px);
}

/* Ombre abstraite (signature) — haut de page */
body::before{
  content:"";
  position:fixed;
  inset:-20vh -10vw auto -10vw;
  height:60vh;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(closest-side at 25% 35%,
      rgba(196,0,22,0.06) 0%,
      rgba(196,0,22,0.00) 70%
    ),
    radial-gradient(closest-side at 75% 20%,
      rgba(0,0,0,0.04) 0%,
      rgba(0,0,0,0.00) 70%
    );
  filter: blur(30px);
  opacity:0.9;
}

/* s'assurer que le contenu reste au-dessus */
.nav, .page, .wrap{
  position:relative;
  z-index:1;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap{max-width:var(--max); margin:0 auto; padding:0 28px;}

.page{
  min-height: calc(100vh - 72px);
  display:flex;
  flex-direction:column;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:120px;
}

/* LOGO IMAGE */
.brand-logo{
  display:flex;
  align-items:center;
  height:100%;
}

.brand{
  text-decoration:none;
  display:flex;
  align-items:center;
  height:100%;
}

.logo-img{
  height:100px;
  max-height:100%;
  width:auto;
  display:block;
}

/* Menu silencieux (aucun hover/active visible) */
.menu{
  display:flex;
  gap:22px;
  align-items:center;
  font-size:17px;
}

.menu a{
  text-decoration:none;
  color: rgba(20,20,20,.56);
  font-weight:400;
  transition: color 0.2s ease;
}

.menu a:hover{
  color: rgba(20,20,20,.75);
}

/* sécurité anti "brillance" */
.menu a,
.menu a:visited,
.menu a:hover,
.menu a:focus,
.menu a:active,
.menu a.active{
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* Liens globaux */
a{
  color: var(--red);
  text-decoration:none;
}

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

.hero{
  text-align:center;
  padding-top:200px;
  padding-bottom:80px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1{
  margin:0;
  font-family: Georgia,"Times New Roman",Times,serif;
  font-weight:500;
  font-size:56px;
  line-height:1.06;
  color: var(--red);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.lead{
  margin:34px auto 0;
  font-size:18px;
  letter-spacing:.2px;
  color: rgba(20,20,20,.34);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ============================================================
   BOUTONS (texte toujours visible)
   ============================================================ */

.btns{
  display:flex;
  gap:22px;
  justify-content:center;
  margin-top:56px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:18px 32px;
  border-radius:999px;
  border:1px solid rgba(196,0,22,.35);
  font-size:16px;
  text-decoration:none;
  cursor:pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* bouton principal */
.btn.primary{
  background: var(--red);
  color:#ffffff;
  border-color: var(--red);
}

.btn.primary:hover{
  background: #a80013;
  border-color: #a80013;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196,0,22,0.3);
}

.btn.primary:active{
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196,0,22,0.2);
}

/* État loading */
.btn.loading{
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.loading::after{
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* bouton secondaire */
.btn.ghost{
  background: transparent;
  color: var(--red);
}

.btn.ghost:hover{
  background: rgba(196,0,22,0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196,0,22,0.15);
}

.btn.ghost:active{
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(196,0,22,0.1);
}

/* ============================================================
   FORMULAIRES LUXE
   ============================================================ */

.form{
  display:grid;
  gap:24px;
  margin-top:32px;
}

.field{
  display:grid;
  gap:10px;
}

.label{
  font-size:13px;
  font-weight:500;
  letter-spacing:0.3px;
  color: rgba(20,20,20,.65);
  text-transform:uppercase;
}

.input, .textarea, .select{
  width:100%;
  border-radius:16px;
  border:1.5px solid rgba(0,0,0,.10);
  background:#fff;
  padding:16px 18px;
  font-size:16px;
  font-family:inherit;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.input:focus, 
.textarea:focus, 
.select:focus{
  outline:none;
  border-color: var(--red);
  box-shadow: 
    0 0 0 3px rgba(196,0,22,0.08),
    0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.input:hover, 
.textarea:hover, 
.select:hover{
  border-color: rgba(0,0,0,.18);
}

.textarea{
  min-height:130px;
  resize:vertical;
  line-height:1.6;
}

.select{
  cursor:pointer;
  appearance:none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23141414' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position: right 16px center;
  padding-right:44px;
}

.notice{
  border:1px solid rgba(196,0,22,.15);
  background: rgba(196,0,22,.03);
  border-radius:20px;
  padding:18px 20px;
  font-size:14px;
  line-height:1.6;
  color: rgba(20,20,20,.7);
}

/* ============================================================
   ACCEDI — NETTOYAGE + TEXTE
   ============================================================ */

/* supprime définitivement "Area riservata" */
.kicker,
.section-title,
.area-riservata{
  display:none !important;
}

/* Texte des pages internes : même gris que le menu */
body.inner .lead,
body.inner h2,
body.inner h2 + p{
  color: rgba(20,20,20,.56);
}

/* ============================================================
   GRID / CARD — COMPACT CHIC
   (Richiedi accesso + pages internes)
   ============================================================ */

.grid{
  display:flex;
  justify-content:center;
  margin-bottom:80px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.grid .card{
  width:100%;
  max-width:680px;
  padding:48px 40px !important;
  border-radius:28px;
  background:#fff;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.05),
    0 20px 60px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}

.grid .card:hover{
  box-shadow: 
    0 2px 5px rgba(0,0,0,0.06),
    0 25px 70px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* ============================================================
   RICHIEDI ACCESSO — boutons centrés + équilibre vertical
   ============================================================ */

body.inner .grid form{
  display:flex;
  flex-direction:column;
}

body.inner .grid form .notice{
  margin-bottom:0 !important;
}

body.inner .grid form .btns{
  display:flex !important;
  justify-content:center !important;
  gap:18px !important;
  margin-top:32px !important;
  margin-bottom:0 !important;
  padding:0 !important;
}

body.inner .grid form hr,
body.inner .grid form .sep,
body.inner .grid form .separator{
  margin-top:0 !important;
}

/* note sous formulaire */
.access-note{
  margin: 28px auto 0 auto;
  max-width: 460px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(20,20,20,.45);
  text-align: center;
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer{
  margin-top:auto;
  border-top:1px solid rgba(0,0,0,0.06);
  padding:32px 0;
  font-size:11px;
  color: rgba(20,20,20,.35);
  text-align: center;
  letter-spacing: 1px;
}

.footer .row{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

@media (max-width: 900px){
  h1{
    font-size:38px;
    line-height:1.12;
  }
  
  .lead{
    font-size:16px;
    margin-top:24px;
  }
  
  .hero{
    padding-top:120px;
    padding-bottom:60px;
  }
  
  .nav-inner{
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 20px 0;
    gap: 20px;
  }
  
  .logo-img{
    height:60px;
  }
  
  .menu{
    font-size:13px;
    gap:14px;
    justify-content: center;
  }
  
  .wrap{
    padding:0 20px;
  }
  
  .grid{
    margin-bottom:60px;
  }
  
  .grid .card{
    padding:32px 24px !important;
    border-radius:24px;
    box-shadow: 
      0 1px 3px rgba(0,0,0,0.05),
      0 12px 40px rgba(0,0,0,0.08);
  }
  
  .form{
    gap:20px;
    margin-top:24px;
  }
  
  .field{
    gap:8px;
  }
  
  .label{
    font-size:12px;
  }
  
  .input, .textarea, .select{
    padding:14px 16px;
    font-size:16px;
    border-radius:14px;
  }
  
  .textarea{
    min-height:110px;
  }
  
  .btns{
    flex-direction:column;
    gap:14px !important;
    margin-top:28px !important;
  }
  
  .btn{
    width:100%;
    padding:16px 28px;
  }
  
  .access-note{
    margin-top:24px;
    font-size:12px;
  }
  
  .notice{
    padding:16px 18px;
    font-size:13px;
    border-radius:18px;
  }
  
  .footer .row{
    flex-direction:column;
    gap:8px;
    text-align:center;
  }
  
  .footer .small{
    text-align:center;
  }
}

@media (max-width: 480px){
  h1{
    font-size:32px;
  }
  
  .hero{
    padding-top:100px;
    padding-bottom:50px;
  }
  
  .wrap{
    padding:0 16px;
  }
  
  .grid .card{
    padding:28px 20px !important;
    border-radius:20px;
  }
  
  .nav-inner{
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 18px 0;
    gap: 18px;
  }
  
  .logo-img{
    height:55px;
  }
  
  .menu{
    font-size:12px;
    gap:12px;
    justify-content: center;
  }
}