/**
 * Refonte "S'installer en Espagne" — styles propres à la page 01 · Accueil.
 * Chargée en plus de refonte-common.css. Ne pas réutiliser sur d'autres pages
 * sans revérifier leur maquette (cf. CLAUDE.md : une page à la fois).
 */

.hero {
    position: relative;
    height: 600px;
    background: url('../images/accueil-hero.webp') center 60%/cover;
}
.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 42%, rgba(255, 255, 255, 0) 66%);
}
.hero .wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 48px;
}
.hero .txt {
    width: 660px;
    padding-top: 14px;
}
.hero h1 {
    white-space: nowrap;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -.5px;
}
.hero .txt p {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--navy);
    margin-top: 22px;
    max-width: 560px;
}
.hero .ic2 {
    display: flex;
    gap: 44px;
    margin-top: 30px;
}
.hero .ic2 > div {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.form {
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(20, 33, 91, .18);
    padding: 26px 24px;
}
.form .form-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 0;
}
.form .intro {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 6px;
}
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.tile {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    font-size: 11px;
    line-height: 1.3;
    color: var(--navy);
    background: none;
    width: 100%;
    font-family: inherit;
}
.tile img,
.tile svg {
    display: block;
    margin: 0 auto 6px;
}
.tile b {
    font-weight: 600;
    white-space: nowrap;
    font-size: 10.5px;
}
.input {
    border: 1px solid var(--line);
    border-radius: 10px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    margin-top: 14px;
    color: #8a93ad;
    font-size: 14px;
}
.input input {
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--navy);
    width: 100%;
    font-family: inherit;
}
.input img {
    flex: none;
}
.consent {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--muted);
}
.consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 2px;
    accent-color: var(--red);
}
.consent a {
    color: var(--navy);
    text-decoration: underline;
}
.form .btn-red {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 14px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.proj {
    padding: 56px 0 0;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 34px;
}
.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(20, 33, 91, .05);
}
.ph {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
}
.ph img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 14px rgba(20, 33, 91, .15);
}
.ph .bdg {
    position: absolute;
    right: -6px;
    bottom: 6px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph .bdg img {
    width: 24px;
    height: 24px;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 22px;
}
.card .st {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}
.card .in {
    font-size: 15px;
    color: var(--navy);
    line-height: 1.5;
    margin-top: 8px;
}
.card ul {
    list-style: none;
    margin-top: 16px;
    flex: 1;
}
.card li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 9px;
}
.card li img {
    flex: none;
    margin-top: 1px;
}
.btn-o {
    border: 1.5px solid;
    border-radius: 40px;
    padding: 11px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.band {
    margin-top: 40px;
}
.avis-sec {
    margin-top: 80px;
}
.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 34px;
}
.avis-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.avis-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 24px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 33, 91, .05);
    display: flex;
    flex-direction: column;
}
.avis-stars {
    display: flex;
    gap: 3px;
}
.avis-star {
    width: 15px;
    height: 15px;
}
.avis-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
    margin-top: 14px;
    flex: 1;
}
.avis-author {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.avis-name {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--navy);
}
.avis-profil {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

@media (max-width: 980px) {
    .hero {
        height: auto;
    }
    .hero .wrap {
        flex-direction: column;
        gap: 26px;
        padding-top: 36px;
        padding-bottom: 36px;
    }
    .hero .txt {
        width: auto;
    }
    .hero h1 {
        white-space: normal;
    }
    .form {
        width: 100%;
        max-width: 520px;
    }
    .cards {
        grid-template-columns: 1fr 1fr;
    }
    .avis-grid,
    .avis-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .hero:before {
        background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .8) 55%, rgba(255, 255, 255, .35) 100%);
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero .txt p {
        font-size: 15px;
    }
    .hero .ic2 {
        flex-direction: column;
        gap: 14px;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .avis-grid,
    .avis-grid-4 {
        grid-template-columns: 1fr;
    }
    .tiles {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tile {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        padding: 10px 12px;
    }
    .tile img,
    .tile svg {
        margin: 0;
    }
    .proj {
        padding-top: 40px;
    }
}

/* ---- classes extraites du HTML inline ---- */
.hero .ic2 .hero-ic {
    width: 54px;
    height: 54px;
    flex: none;
}
.ph .bdg.bdg-blue {
    background: #2456c9;
}
.ph .bdg.bdg-green {
    background: #1f8a4c;
}
.ph .bdg.bdg-purple {
    background: #7b3fbf;
}
.ph .bdg .bdg-ico {
    filter: invert(1);
    width: 24px;
    height: 24px;
}
.card li .check-ico {
    width: 17px;
    height: 17px;
}
.card .btn-o.btn-o-blue {
    color: #2456c9;
    border-color: #2456c9;
}
.card .btn-o.btn-o-green {
    color: #1f8a4c;
    border-color: #1f8a4c;
}
.card .btn-o.btn-o-purple {
    color: #7b3fbf;
    border-color: #7b3fbf;
}
.card .st.st-purple {
    color: #7b3fbf;
}
