/*
Theme Name: Villa Agadir — Bientôt disponible
Theme URI: https://www.villaagadir.com
Author: Villa Agadir
Author URI: https://www.villaagadir.com
Description: Thème « Coming Soon » premium pour Villa Agadir, plateforme immobilière dédiée aux villas et propriétés d'Agadir. Page unique élégante, compte à rebours, formulaire de préinscription, entièrement en français.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: villa-agadir-cs
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --white:      #FFFFFF;
  --sand:       #EFE7D6;
  --sand-deep:  #E3D6BB;
  --green:      #16332B;
  --green-deep: #0F241D;
  --green-soft: #24473C;
  --gold:       #B08D4F;
  --gold-soft:  #CBB07C;
  --ink:        #171614;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --panel-width: 46%;
  --gutter: clamp(28px, 6vw, 88px);
}

*, *::before, *::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2{
  font-family: var(--font-display);
  font-weight: 500;
  margin:0;
  color: var(--white);
}
p{ margin:0; }
button{ font-family: var(--font-body); }
:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

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

/* =========================================================
   LAYOUT — split screen
   ========================================================= */
.cs-wrap{
  min-height:100vh;
  display:flex;
  flex-wrap: wrap;
}

.cs-panel{
  width: var(--panel-width);
  min-height:100vh;
  background: var(--green);
  padding: clamp(32px, 5vw, 64px) var(--gutter);
  display:flex;
  flex-direction:column;
  justify-content:center;
  position:relative;
  z-index:2;
}

.cs-media{
  width: calc(100% - var(--panel-width));
  min-height:100vh;
  position:relative;
  background: var(--green-deep);
  overflow:hidden;
}
.cs-media img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
}
.cs-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(15,36,29,.85) 0%, rgba(15,36,29,.25) 42%, rgba(15,36,29,.05) 100%);
}
.cs-media .arc{
  position:absolute;
  right: -18%;
  bottom: -22%;
  width: 70%;
  aspect-ratio:1;
  border-radius:50%;
  border: 1px solid rgba(203,176,124,.35);
  z-index:1;
}
.cs-media .arc.arc-2{
  right: -6%; bottom: -38%; width: 46%;
  border-color: rgba(203,176,124,.55);
}

/* Entrance: one orchestrated reveal on the content column only */
.cs-reveal{
  opacity:0;
  transform: translateY(16px);
  animation: cs-rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.cs-reveal.d1{ animation-delay:.05s; }
.cs-reveal.d2{ animation-delay:.18s; }
.cs-reveal.d3{ animation-delay:.32s; }
.cs-reveal.d4{ animation-delay:.48s; }
.cs-reveal.d5{ animation-delay:.62s; }
@keyframes cs-rise{ to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .cs-reveal{ opacity:1; transform:none; animation:none; } }

/* =========================================================
   BRAND / LOGO
   ========================================================= */
.cs-logo{
  display:flex; align-items:center; gap:.7rem;
  margin-bottom: clamp(2.4rem, 6vw, 4.2rem);
}
.cs-logo img{ max-height:44px; width:auto; }
.cs-logo .mark{
  font-family: var(--font-display);
  font-size:1.5rem;
  letter-spacing:.04em;
  color: var(--white);
}
.cs-logo .mark b{ color: var(--gold-soft); font-weight:600; }
.cs-logo .rule{
  width:34px; height:1px; background: var(--gold);
}

/* =========================================================
   HEADLINE / COPY
   ========================================================= */
.cs-lede{
  font-size: .98rem;
  color: var(--sand-deep);
  max-width: 40ch;
  margin-bottom: .9rem;
}
.cs-title{
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height:1.08;
  max-width: 15ch;
  margin-bottom: 1.1rem;
}
.cs-subtitle{
  font-size: 1.15rem;
  color: var(--sand);
  max-width: 46ch;
  margin-bottom: .9rem;
}
.cs-message{
  font-size: .98rem;
  color: rgba(239,231,214,.75);
  max-width: 48ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* =========================================================
   COUNTDOWN
   ========================================================= */
.cs-countdown{
  display:flex;
  gap: clamp(.9rem, 2.4vw, 1.6rem);
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
  flex-wrap:wrap;
}
.cs-countdown .unit{
  min-width: 74px;
  padding: .9rem .4rem 1rem;
  text-align:center;
  border: 1px solid rgba(203,176,124,.4);
  border-radius: 2px;
  background: rgba(239,231,214,.03);
}
.cs-countdown .unit b{
  display:block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  line-height:1;
}
.cs-countdown .unit span{
  display:block;
  margin-top:.5rem;
  font-size:.72rem;
  color: rgba(239,231,214,.65);
}

/* =========================================================
   FORM
   ========================================================= */
.cs-form{
  max-width: 460px;
  margin-bottom: clamp(2.4rem, 6vw, 3.6rem);
}
.cs-form-row{
  display:flex;
  gap:.7rem;
  flex-wrap:wrap;
  margin-bottom: .8rem;
}
.cs-form-row .field{ flex:1 1 180px; }
.cs-form label{
  display:block;
  font-size:.78rem;
  color: rgba(239,231,214,.7);
  margin-bottom:.35rem;
}
.cs-form input[type="text"],
.cs-form input[type="email"]{
  width:100%;
  padding: .85em 1em;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(239,231,214,.28);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-body);
  font-size:.95rem;
}
.cs-form input::placeholder{ color: rgba(239,231,214,.4); }
.cs-form input:focus{ outline:2px solid var(--gold); outline-offset:1px; background: rgba(255,255,255,.08); }

.cs-submit{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  padding: .95em 2em;
  background: var(--gold);
  color: var(--green-deep);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-weight:600;
  font-size:.92rem;
  cursor:pointer;
  transition: background-color .25s ease, color .25s ease, transform .15s ease;
}
.cs-submit:hover{ background: var(--gold-soft); }
.cs-submit:active{ transform: translateY(1px); }

.cs-form-note{
  margin-top:.7rem;
  font-size:.82rem;
}
.cs-form-note.success{ color: #B7D8C6; }
.cs-form-note.error{ color: #E5B4A0; }

/* honeypot */
.cs-hp{ position:absolute !important; left:-9999px !important; top:-9999px !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.cs-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.2rem;
  flex-wrap:wrap;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(239,231,214,.16);
}
.cs-copy{ font-size:.82rem; color: rgba(239,231,214,.55); }
.cs-social{ display:flex; gap:.9rem; }
.cs-social a{
  width:36px; height:36px;
  border: 1px solid rgba(239,231,214,.28);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition: border-color .2s ease, background-color .2s ease;
}
.cs-social a:hover{ border-color: var(--gold); background: rgba(176,141,79,.12); }
.cs-social svg{ width:16px; height:16px; fill: var(--sand); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px){
  :root{ --panel-width: 52%; }
}

@media (max-width: 880px){
  .cs-wrap{ flex-direction:column-reverse; }
  .cs-panel, .cs-media{ width:100%; min-height:auto; }
  .cs-media{ height: 38vh; min-height: 260px; }
  .cs-panel{ min-height: auto; padding-top: clamp(40px,8vw,56px); padding-bottom: clamp(40px,8vw,56px); }
  .cs-title{ max-width: none; }
  .cs-subtitle, .cs-message{ max-width:none; }
}

@media (max-width: 460px){
  .cs-countdown .unit{ min-width: 64px; padding:.7rem .3rem .8rem; }
  .cs-form-row{ flex-direction:column; }
}
