/* Gestiup — page publique
   Palette et rayons repris du thème DaisyUI "light" de l'application
   (assets/css/app.css du projet verde_ash) : fond crème chaud, texte brun
   très foncé, vert Verde #2D6A4F comme couleur d'action.
   Police : la pile système, celle qu'utilise déjà l'application (aucune
   fonte distante n'est chargée, donc aucune requête vers un tiers). */

:root {
    --cream:      #f8f6f2; /* base-100 */
    --cream-2:    #efebe5; /* base-200 */
    --line:       #e3ded6; /* base-300 */
    --ink:        #2b2723; /* base-content */
    --ink-soft:   rgba(43, 39, 35, 0.66);
    --ink-faint:  rgba(43, 39, 35, 0.42);

    /* Couleur d'action. Le vert "Verde" de l'application ; passer cette
       variable a #3880ff pour retrouver le bleu "Gestiup" du staging. */
    --accent:      #2d6a4f;
    --accent-dark: #245840;
    --accent-wash: rgba(45, 106, 79, 0.08);

    --radius-box:   0.5rem;
    --radius-field: 0.25rem;
    --border:       1.5px;

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }

h1, h2, h3 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 600;
    /* Evite le mot orphelin en fin de titre sur les navigateurs qui le
       supportent ; ailleurs, la coupure reste celle par defaut. */
    text-wrap: balance;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow { max-width: 700px; }

/* ---------- En-tete ---------- */

.site-header {
    padding: 22px 0;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo { height: 30px; width: auto; }

.header-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
}

.header-link:hover { color: var(--accent-dark); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 640px;
    /* La marge laterale du hero vit ICI, pas sur la carte : une carte en
       width:100% PLUS une marge horizontale deborde de son conteneur flex, et
       toute la page se met alors a defiler lateralement sur telephone. */
    padding: 64px 24px 96px;
    overflow: hidden;
}

/* Empilement du hero : la photo au fond, les deux fondus par-dessus, la carte
   au premier plan. Sans ces z-index, le fondu du haut (::before) est le
   premier enfant de .hero et se retrouve peint SOUS la photo, donc invisible :
   seul celui du bas (::after, dernier enfant) apparaissait. */
/* <picture> introduit un conteneur inline entre .hero et l'image : sans mise
   en forme, il occuperait une place dans le flux du hero. */
.hero picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fondu du haut uniquement : il raccorde la photo a la bande creme de
   l'en-tete, ou la moindre arete se voit. Le bas de la photo, lui, s'arrete
   net sur la section suivante. */
.hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--cream) 0%,
        rgba(248, 246, 242, 0.92) 18%,
        rgba(248, 246, 242, 0.6) 45%,
        rgba(248, 246, 242, 0) 100%
    );
}

.hero-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    padding: 44px 44px 40px;
    text-align: center;
    background: rgba(248, 246, 242, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: var(--border) solid rgba(227, 222, 214, 0.9);
    border-radius: var(--radius-box);
    box-shadow: 0 24px 60px -20px rgba(43, 39, 35, 0.35);
}

.hero-mark {
    height: 44px;
    width: auto;
    margin: 0 auto 10px;
}

.kicker {
    margin: 0 0 26px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.hero h1 {
    font-size: clamp(1.6rem, 4.2vw, 2.15rem);
    margin-bottom: 20px;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 1rem;
}

.hero p:last-of-type { margin-bottom: 30px; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: var(--border) solid transparent;
    border-radius: var(--radius-field);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink-faint); }

.btn-block { width: 100%; padding: 14px 22px; }

/* ---------- Sections ---------- */

section { padding: 68px 0; }

.section-label {
    margin: 0 0 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    margin-bottom: 14px;
}

.section-intro {
    margin: 0 0 40px;
    color: var(--ink-soft);
}

/* ---------- Les cartes de fonctionnalites ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 26px 26px 28px;
    background: #fff;
    border: var(--border) solid var(--line);
    border-radius: var(--radius-box);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: var(--radius-field);
    background: var(--accent-wash);
    color: var(--accent);
}

.card-icon svg { width: 20px; height: 20px; }

.card h3 {
    margin-bottom: 16px;
    padding-bottom: 14px;
    font-size: 1.05rem;
    border-bottom: var(--border) solid var(--line);
}

.card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.card li {
    position: relative;
    margin-bottom: 13px;
    padding-left: 18px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.card li:last-child { margin-bottom: 0; }

/* Puce dessinee en CSS : elle reste calee sur la premiere ligne meme quand
   l'element en occupe trois. */
.card li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 1px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.55;
}

.card li b {
    font-weight: 600;
    color: var(--ink);
}

.note {
    margin: 34px 0 0;
    padding: 18px 22px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    background: var(--accent-wash);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-field);
}

/* ---------- Bande de reassurance ---------- */

.reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin: 30px 0 0;
    padding: 26px 0 0;
    list-style: none;
    border-top: var(--border) solid var(--line);
}

.reassurance li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.reassurance svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--accent);
}

/* ---------- Demarche (bande creme foncee) ---------- */

.band {
    background: var(--cream-2);
    border-top: var(--border) solid var(--line);
    border-bottom: var(--border) solid var(--line);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 32px;
    margin-top: 6px;
}

.step h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.step p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.step-num {
    display: block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
}

/* ---------- Formulaire ---------- */

.contact-card {
    padding: 40px;
    background: #fff;
    border: var(--border) solid var(--line);
    border-radius: var(--radius-box);
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.field .hint {
    font-weight: 400;
    color: var(--ink-faint);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 11px 13px;
    font: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    background: var(--cream);
    border: var(--border) solid var(--line);
    border-radius: var(--radius-field);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}

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

fieldset {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

legend {
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chip { position: relative; }

.chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip span {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    background: var(--cream);
    border: var(--border) solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip span:hover { border-color: var(--ink-faint); }

.chip input:checked + span {
    background: var(--accent-wash);
    border-color: var(--accent);
    color: var(--accent-dark);
    font-weight: 600;
}

.chip input:focus-visible + span {
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.privacy {
    margin: 18px 0 0;
    font-size: 0.82rem;
    color: var(--ink-faint);
    line-height: 1.55;
}

/* Piege a robots : jamais visible, jamais atteignable au clavier. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Pied de page ---------- */

.site-footer {
    padding: 44px 0 52px;
    border-top: var(--border) solid var(--line);
    font-size: 0.88rem;
    color: var(--ink-faint);
}

/* Le paragraphe de definition vient juste AVANT le filet du pied de page :
   c'est ce filet qui l'en separe, il n'a donc pas de bordure a lui. Il sert aux
   moteurs plus qu'au visiteur, qui a deja tout lu au-dessus. La largeur est
   bridee a 680 px — sur 1080, la ligne ferait pres de 150 signes, illisible. */
/* L'espace au-dessus est plus court que celui du dessous : l'oeil rattache un
   texte a ce dont il est le plus proche, et cette phrase prolonge la page, elle
   n'appartient pas au pied. La section de contact est resserree du meme coup. */
#contact { padding-bottom: 38px; }

.footer-about {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px 62px;
    font-size: 0.8rem;
    line-height: 1.7;
    text-align: center;
    text-wrap: pretty;
    color: var(--ink-faint);
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent-dark); }

.footer-links svg { width: 17px; height: 17px; }

.footer-logo { height: 22px; width: auto; opacity: 0.45; }

/* ---------- Pages courtes (merci, erreur, mentions) ---------- */

.page {
    max-width: 660px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

.page h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.page h2 {
    font-size: 1.05rem;
    margin: 34px 0 8px;
}

.page p { color: var(--ink-soft); }

.page .back { display: inline-block; margin-top: 26px; font-weight: 600; }

/* ---------- Mobile ---------- */

@media (max-width: 620px) {
    body { font-size: 16px; }
    .hero { min-height: 560px; padding: 40px 16px 72px; }
    .hero-card { padding: 32px 24px 30px; }
    .hero-actions .btn { width: 100%; }
    section { padding: 52px 0; }
    .contact-card { padding: 26px 20px 30px; }
    .card { padding: 22px 20px 24px; }
    .note { padding: 16px 18px; }
    .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
